## ## interfaces.py ## Login : ## Started on Sun Jun 27 11:06:23 2010 Uli Fouquet ## $Id$ ## ## Copyright (C) 2010 Uli Fouquet ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## """Interfaces for JAMB data tables and related components. """ from waeup.sirp.interfaces import IWAeUPObject from zope.interface import Interface from zope import schema class IJAMBDataTable(IWAeUPObject): """A table containing JAMB data. """ import_datetime = schema.Datetime( title = u'Datetime of import of contained data.', required = False, ) importer_username = schema.TextLine( title = u'Name of user who initiated import.', required = False, ) def __iter__(): """An iterator over all data elements. """ def keys(): """Get iterator over all registration numbers of data. """ def items(): """Get iterator over tuples of registration numbers and datasets. """ def clear(): """Clear all data contained. This will also erase any import data. """ def importFromCSV(filepath): """Import data from filepath. """