Ignore:
Timestamp:
27 Jun 2010, 09:29:08 (15 years ago)
Author:
uli
Message:

Extend JAMB data table interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/jambtables/interfaces.py

    r5247 r5251  
    2424from waeup.sirp.interfaces import IWAeUPObject
    2525from zope.interface import Interface
     26from zope import schema
    2627
    2728class IJAMBDataTable(IWAeUPObject):
    2829    """A table containing JAMB data.
    2930    """
     31    import_datetime = schema.Datetime(
     32        title = u'Datetime of import of contained data.',
     33        required = False,
     34        )
     35
     36    importer_username = schema.TextLine(
     37        title = u'Name of user who initiated import.',
     38        required = False,
     39        )
     40
     41    def __iter__():
     42        """An iterator over all data elements.
     43        """
     44
     45    def keys():
     46        """Get iterator over all registration numbers of data.
     47        """
     48
     49    def items():
     50        """Get iterator over tuples of registration numbers and datasets.
     51        """
     52
     53    def clear():
     54        """Clear all data contained.
     55
     56        This will also erase any import data.
     57        """
     58
     59    def importFromCSV(filepath):
     60        """Import data from filepath.
     61        """
Note: See TracChangeset for help on using the changeset viewer.