Changeset 5070


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

Update faculty container plugin.

File:
1 edited

Legend:

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

    r5014 r5070  
    4444
    4545class AcademicsPlugin(grok.GlobalUtility):
    46     """A plugin that tells universities how to create a faculty container.
     46    """A plugin that creates a faculty container inside a university.
    4747    """
    4848    grok.implements(IWAeUPSIRPPluggable)
     49    grok.name('faculties')
    4950
    50     factory_name = u'waeup.FacultyContainer'
    51     name = 'faculties'
     51    def setup(self, site, name, logger):
     52        if 'faculties' in site.keys():
     53            logger.warn('Could not create faculty container in WAeUP SIRP.')
     54            return
     55        site['faculties'] = FacultyContainer()
     56        logger.info('Created faculty container for University')
     57        return
    5258
     59    def update(self, site, name, logger):
     60        pass
Note: See TracChangeset for help on using the changeset viewer.