Changeset 5669 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 25 Jan 2011, 01:09:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/jambtables/applicants.py
r5668 r5669 139 139 class ApplicantContainer(grok.Container): 140 140 grok.implements(IApplicantContainer) 141 142 class ApplicantsPlugin(grok.GlobalUtility):143 """A WAeUPSIRPPlugin that creates an applications folder in portal.144 """145 grok.name('applications')146 grok.implements(IWAeUPSIRPPluggable)147 148 def setup(self, site, name, logger):149 site['applications'] = ApplicantContainer()150 logger.info('Installed application container.')151 return152 153 def update(self, site, name, logger):154 if not 'applications' in site.keys():155 logger.info('Updating site at %s. Installing applications.' % (156 site,))157 self.setup(site, name, logger)158 else:159 logger.info(160 'ApplicantsPlugin: Updating site at %s: Nothing to do.' % (161 site, ))162 return
Note: See TracChangeset for help on using the changeset viewer.