Changeset 3848 for waeup/branches/ulif-rewrite/src
- Timestamp:
- 16 Jan 2009, 12:22:52 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/interfaces.py
r3826 r3848 4 4 from zope import schema 5 5 6 class IUniversity(Interface): 6 class IWAeUPObject(Interface): 7 """A WAeUP object. 8 """ 9 10 class IUniversity(IWAeUPObject): 7 11 """Representation of a university. 8 12 """ … … 13 17 ) 14 18 15 class IStudentContainer(Interface): 19 class IWAeUPContainer(IWAeUPObject): 20 """A container for WAeUP objects. 21 """ 22 23 class IStudentContainer(IWAeUPContainer): 16 24 """A container for StudentObjects. 17 25 """ 18 26 19 class IHostelContainer(I nterface):27 class IHostelContainer(IWAeUPContainer): 20 28 """A container for hostels. 21 29 """ 22 30 23 class IFacultyContainer(I nterface):31 class IFacultyContainer(IWAeUPContainer): 24 32 """A container for faculties. 25 33 """ 34 class IWAeUPExporter(Interface): 35 """An exporter for objects. 36 """ 37 def export(obj, filepath=None): 38 """Export by pickling. 39 40 Returns a file-like object containing a representation of `obj`. 41 42 This is done using `pickle`. If `filepath` is ``None``, a 43 `cStringIO` object is returned, that contains the saved data. 44 """ 45 46 class IWAeUPXMLExporter(Interface): 47 """An XML exporter for objects. 48 """ 49 def export(obj, filepath=None): 50 """Export as XML. 51 52 Returns an XML representation of `obj`. 53 54 If `filepath` is ``None``, a StringIO` object is returned, 55 that contains the transformed data. 56 """
Note: See TracChangeset for help on using the changeset viewer.