Browsing French translation

16721681 of 2684 results
1672.
myapp_plugins.py
type: Content of: <html><body><ul><li><ul><li><ul><li><ul><li>
(no translation yet)
Located in howto/cred.xhtml:370
1673.
Once you have created this structure within your application, you can create the code for your cred plugin by building a factory class which implements <code class="API" base="twisted.cred.checkers">ICheckerFactory</code>. These factory classes should not consist of a tremendous amount of code. Most of the real application logic should reside in the cred checker itself. (For help on building those, scroll up.)
type: Content of: <html><body><p>
(no translation yet)
Located in howto/cred.xhtml:380
1674.
The core purpose of the CheckerFactory is to translate an <code class="python">argstring</code>, which is passed on the command line, into a suitable set of initialization parameters for a Checker class. In most cases this should be little more than constructing a dictionary or a tuple of arguments, then passing them along to a new checker instance.
type: Content of: <html><body><p>
(no translation yet)
Located in howto/cred.xhtml:389
1675.
from zope.interface import implements

from twisted import plugin
from twisted.cred import checkers
from myapp.cred import SpecialChecker

class SpecialCheckerFactory(object):
"""
A checker factory for a specialized (fictional) API.
"""
# The class needs to implement both of these interfaces
# for the plugin system to find our factory.
implements(checkers.ICheckerFactory, plugin.IPlugin)

# This tells AuthOptionsMixin how to find this factory.
authType = "special"

# This is a one-line explanation of what arguments, if any,
# your particular cred plugin requires at the command-line.
argStringFormat = "A colon-separated key=value list."

# This help text can be multiple lines. It will be displayed
# when someone uses the "--help-auth-type special" command.
authHelp = """Some help text goes here ..."""

# This will be called once per command-line.
def generateChecker(self, argstring=""):
argdict = dict((x.split('=') for x in argstring.split(':')))
return SpecialChecker(**dict)

# We need to instantiate our class for the plugin to work.
theSpecialCheckerFactory = SpecialCheckerFactory()
type: Content of: <html><body><pre>
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
(no translation yet)
Located in howto/cred.xhtml:398
1676.
For more information on how your plugin can be used in your application (and by other application developers), please see the <a href="tap.xhtml">Writing a twistd plugin</a> document.
type: Content of: <html><body><p>
(no translation yet)
Located in howto/cred.xhtml:432
1677.
After reading through this tutorial, you should be able to
type: Content of: <html><body><p>
(no translation yet)
Located in howto/cred.xhtml:438
1678.
Understand how the cred architecture applies to your application
type: Content of: <html><body><ul><li>
(no translation yet)
Located in howto/cred.xhtml:441
1679.
Integrate your application with cred's object model
type: Content of: <html><body><ul><li>
(no translation yet)
Located in howto/cred.xhtml:442
1680.
Deploy an application that uses cred for authentication
type: Content of: <html><body><ul><li>
(no translation yet)
Located in howto/cred.xhtml:443
1681.
Allow your users to use command-line authentication plugins
type: Content of: <html><body><ul><li>
(no translation yet)
Located in howto/cred.xhtml:444
16721681 of 2684 results

This translation is managed by translation group twisted.

You are not logged in. Please log in to work on translations.

Contributors to this translation: Anthony Granger, Jean-François Brouillette, Maijin, Patrick Fiquet, Thomas LAROCHE, Thomas LAROCHE, alienworkshop, caribou.