Ignore:
Timestamp:
8 Jun 2009, 17:05:07 (16 years ago)
Author:
uli
Message:

Update importer interface/Add department iface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/interfaces.py

    r4164 r4226  
    8282        )
    8383
     84class IDepartment(IWAeUPObject):
     85    """Representation of a department.
     86    """
     87    title = schema.TextLine(
     88        title = u'Name of Department',
     89        default = u'Unnamed',
     90        required = True,
     91        )
     92
     93    title_prefix = schema.TextLine(
     94        title = u'Title prefix',
     95        default = u'department',
     96        required = True,
     97        )
     98   
     99    code = schema.TextLine(
     100        title = u'Code',
     101        description = u'Abbreviated code of the department',
     102        required = True,
     103        )
    84104
    85105       
     
    138158        required = True,)
    139159
    140     def doImport(filepath, clear_old_data=True, overwrite=True):
     160    def doImport(clear_old_data=True, overwrite=True):
    141161        """Read data from `filepath` and apply data.
    142162
Note: See TracChangeset for help on using the changeset viewer.