Changeset 6953 for main/waeup.sirp/trunk/src/waeup/sirp/hostels
- Timestamp:
- 26 Oct 2011, 05:45:41 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/hostels
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/hostels/container.py
r6952 r6953 19 19 import grok 20 20 from grok import index 21 from waeup.sirp.hostels.interfaces import IHostelsContainer 21 from waeup.sirp.hostels.interfaces import IHostelsContainer, IHostel 22 22 from waeup.sirp.utils.helpers import attrs_to_fields 23 23 from waeup.sirp.utils.logger import Logger -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/hostel.py
r6952 r6953 30 30 grok.baseclass() 31 31 32 def __init__(self ):32 def __init__(self, **data): 33 33 super(Hostel, self).__init__() 34 self.hostel_id = None34 self.hostel_id = data['hostel_id'] 35 35 return 36 36 -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/interfaces.py
r6952 r6953 20 20 21 21 hostel_id = schema.TextLine( 22 title = u' StudentID',22 title = u'Hostel ID', 23 23 required = False, 24 24 )
Note: See TracChangeset for help on using the changeset viewer.