Back to index

plone3  3.1.7
events.py
Go to the documentation of this file.
00001 from zope.interface import implements
00002 from Products.GenericSetup.interfaces import IBeforeProfileImportEvent
00003 from Products.GenericSetup.interfaces import IProfileImportedEvent
00004 
00005 class BaseProfileImportEvent(object):
00006     def __init__(self, tool, profile_id, steps, full_import):
00007         self.tool=tool
00008         self.profile_id=profile_id
00009         self.steps=steps
00010         self.full_import=full_import
00011 
00012 
00013 class BeforeProfileImportEvent(BaseProfileImportEvent):
00014     implements(IBeforeProfileImportEvent)
00015 
00016 
00017 class ProfileImportedEvent(BaseProfileImportEvent):
00018     implements(IProfileImportedEvent)