|
1662.
|
|
|
To build a plugin for cred, you should first define an <code class="python">authType</code>, a short one-word string that defines your plugin to the command-line. Once you have this, the convention is to create a file named <code>myapp_plugins.py</code> in the <code class="API">twisted.plugins</code> module path.
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/cred.xhtml:346
|
|
1663.
|
|
|
Below is an example file structure for an application that defines such a plugin:
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/cred.xhtml:352
|
|
1664.
|
|
|
MyApplication/
|
|
|
type: Content of: <html><body><ul><li>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/cred.xhtml:356
|
|
1665.
|
|
|
setup.py
|
|
|
type: Content of: <html><body><ul><li><ul><li>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/cred.xhtml:358
|
|
1666.
|
|
|
myapp/
|
|
|
type: Content of: <html><body><ul><li><ul><li>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/cred.xhtml:359
|
|
1667.
|
|
|
__init__.py
|
|
|
type: Content of: <html><body><ul><li><ul><li><ul><li>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/cred.xhtml:361
|
|
1668.
|
|
|
cred.py
|
|
|
type: Content of: <html><body><ul><li><ul><li><ul><li>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/cred.xhtml:362
|
|
1669.
|
|
|
server.py
|
|
|
type: Content of: <html><body><ul><li><ul><li><ul><li>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/cred.xhtml:363
|
|
1670.
|
|
|
twisted/
|
|
|
type: Content of: <html><body><ul><li><ul><li>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/cred.xhtml:366
|
|
1671.
|
|
|
plugins/
|
|
|
type: Content of: <html><body><ul><li><ul><li><ul><li>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/cred.xhtml:368
|