Ignore:
Timestamp:
18 May 2011, 21:34:29 (13 years ago)
Author:
uli
Message:

Add interface for new event type.

File:
1 edited

Legend:

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

    r6132 r6136  
    5454        required = True,
    5555        )
    56        
     56
    5757    frontpage = schema.Text(
    5858        title = u'Content in reST format',
    5959        required = False,
    6060        default = u'This is the SIRP frontpage.'
    61         )       
     61        )
    6262
    6363    faculties = Attribute("A container for faculties.")
    6464    students = Attribute("A container for students.")
    6565    hostels = Attribute("A container for hostels.")
    66    
     66
    6767class IWAeUPContainer(IWAeUPObject):
    6868    """A container for WAeUP objects.
     
    7272    """An item contained in an IWAeUPContainer.
    7373    """
    74    
     74
    7575class IStudentContainer(IWAeUPContainer):
    7676    """A container for StudentObjects.
     
    9696        )
    9797
    98        
     98
    9999class IWAeUPExporter(Interface):
    100100    """An exporter for objects.
     
    141141        values = ['create', 'update', 'remove']
    142142        )
    143    
     143
    144144    def doImport(path, headerfields, mode='create', user='Unknown',
    145145                 logger=None):
     
    165165        """
    166166
    167    
     167
    168168class IUserAccount(IWAeUPObject):
    169169    """A user account.
     
    186186        title = u'Roles',
    187187        value_type = schema.Choice(source=RoleSource()))
    188    
    189    
     188
     189
    190190class IUserContainer(IWAeUPObject):
    191191    """A container for users (principals).
     
    224224    lines = schema.Int(
    225225        title = u'Number of lines in file')
    226        
     226
    227227    def getDate():
    228228        """Get creation timestamp from file in human readable form.
     
    239239class IDataCenterStorageMovedEvent(IObjectEvent):
    240240    """Emitted, when the storage of a datacenter changes.
     241    """
     242
     243class IObjectUpgradeEvent(IObjectEvent):
     244    """Can be fired, when an object shall be upgraded.
    241245    """
    242246
     
    250254    description = schema.Text(
    251255        title = u'Longer description of the item found.')
    252      
     256
    253257class IWAeUPSIRPPluggable(Interface):
    254258    """A component that might be plugged into a WAeUP SIRP app.
Note: See TracChangeset for help on using the changeset viewer.