Changes between Version 1 and Version 2 of FeddPluggingIn


Ignore:
Timestamp:
Dec 4, 2010 5:23:39 PM (14 years ago)
Author:
mikeryan
Comment:

fix links to source

Legend:

Unmodified
Added
Removed
Modified
  • FeddPluggingIn

    v1 v2  
    11= Plugging In =
    22
    3 The [source:fedd/trunk/federation/skeleton.py skeleton plugin] is not a real plug-in.  It is one of the standard access controllers that ships with the fedd install.  First we'll create a plug-in.  A plug in is just python code that defines a class called {{{access}}} that accepts the same parameters to its initializer as the [source:fedd/trunk/federation/skeleton.py skeleton plugin].  These are a configuration object and an authorizer object (and the [source:fedd/trunk/federation/access.py standard plug-in base class] will handle the authorizer for you.  It should also conform to the conventions in the skeleton with respect to setting up the {{{self.soap_services}}} and {{{self.xmlrpc_services}}} dicts, and handle the various [FeddPluginCalls plug-in calls].
     3The [source:fedd/federation/skeleton.py skeleton plugin] is not a real plug-in.  It is one of the standard access controllers that ships with the fedd install.  First we'll create a plug-in.  A plug in is just python code that defines a class called {{{access}}} that accepts the same parameters to its initializer as the [source:fedd/federation/skeleton.py skeleton plugin].  These are a configuration object and an authorizer object (and the [source:fedd/federation/access.py standard plug-in base class] will handle the authorizer for you.  It should also conform to the conventions in the skeleton with respect to setting up the {{{self.soap_services}}} and {{{self.xmlrpc_services}}} dicts, and handle the various [FeddPluginCalls plug-in calls].
    44
    55An easy way to do this is to simply copy the skeleton into a file in another directory with a different name.  Because you have moved this module relative to its current place in the hierarchy (it is no longer in the {{{federation}}} directory) you will have to modify the import paths at the beginning.  Specifically change the lines: