Giter Site home page Giter Site logo

Comments (2)

leifj avatar leifj commented on June 30, 2024

On 10/23/2012 01:25 PM, Joachim Strömbergson wrote:

Aloha!

pyFF has a lot of good comments in the code that explains what the
function does. However, for the sign pipe (in builtins), the comment
is somewhat confusing:

"def sign(req,*opts):
"""
:param req: The request
:param opts: Options (unused)
:return: returns the signed working document

Sign the working document. The 'key' argument references either a
PKCS#11 uri or the filename containing a PEM-encoded non-password
protected private RSA key. The 'cert' argument may be empty in which
case the cert is looked up using the PKCS#11 token, or may point to a
file containing a PEM-encoded X.509 certificate."

What you might want to add is that req is a dictionary that is
expected to contain key:data pairs for key and cert. Just to make it
easier to understand.


Reply to this email directly or view it on GitHub
#1.

A very good point!

from pyff.

leifj avatar leifj commented on June 30, 2024

tried to clarify

from pyff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.