Ignore:
Timestamp:
23 Mar 2010, 14:30:20 (15 years ago)
Author:
uli
Message:

Change the plugin interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py

    r5056 r5069  
    220220    """A component that might be plugged into a WAeUP SIRP app.
    221221    """
    222     factory_name = schema.TextLine(
    223         title = u'Name of the factory to create an instance of the pluggble.',
    224         description = u'The given name should be usable for '
    225                       u'calls like createObject(factory_name).' )
    226 
    227     name = schema.TextLine(
    228         title = u'Name under which the pluggable should be created.')
     222    def setup(site, name, logger):
     223        """Create an instance of the plugin.
     224
     225        The method is meant to be called by the central app on startup.
     226        """
     227
     228    def update(site, name, logger):
     229        """Method to update an already existing plugin.
     230
     231        This might be called by a site when something serious
     232        changes. It is a poor-man replacement for Zope generations.
     233        """
Note: See TracChangeset for help on using the changeset viewer.