Changeset 13165 for main/waeup.kofa/trunk/src/waeup/kofa/hostels
- Timestamp:
- 13 Jul 2015, 07:53:26 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/hostels
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/hostels/container.py
r9197 r13165 35 35 super(HostelsContainer, self).__init__() 36 36 return 37 38 def archive(self, id=None):39 raise NotImplementedError()40 41 def clear(self, id=None, archive=True):42 raise NotImplementedError()43 37 44 38 def addHostel(self, hostel): -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/interfaces.py
r10683 r13165 31 31 class IHostelsContainer(IKofaObject): 32 32 """A container for all kind of hostel objects. 33 34 33 """ 34 35 expired = Attribute('True if current datetime is in application period.') 35 36 36 37 startdate = schema.Datetime( … … 66 67 """ 67 68 69 def addHostel(hostel): 70 """Add a hostel. 71 """ 72 73 def logger_info(ob_class, target, comment=None): 74 """Get the logger's info method. 75 """ 76 68 77 class IHostel(IKofaObject): 69 78 """A base representation of hostels. 70 71 79 """ 72 80 … … 205 213 class IBed(IKofaObject): 206 214 """A base representation of beds. 207 208 215 """ 209 216 -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py
r12981 r13165 87 87 container = HostelsContainer() 88 88 hostel = Hostel() 89 self.assertRaises(90 NotImplementedError, container.archive)91 self.assertRaises(92 NotImplementedError, container.clear)93 89 # We cannot add arbitrary objects 94 90 department = Department()
Note: See TracChangeset for help on using the changeset viewer.