- Timestamp:
- 9 Feb 2009, 21:53:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/students/student.py
r3529 r3946 1 1 import grok 2 2 from grok import index 3 from interfaces import IStudent 4 5 from waeup.baseitem import BaseItem 3 from waeup.students.interfaces import IStudent 6 4 7 5 def fromCsv(a): … … 11 9 return student 12 10 13 class Student( BaseItem):11 class Student(grok.Model): 14 12 """This is a student record. 15 13 """ … … 39 37 ] 40 38 41 def __init__(self, name ):39 def __init__(self, name=None): 42 40 """ 43 41 TODO: REFACTOR TO IMPORT METHOD … … 72 70 return [getattr(self, field, u"") for field in self.fields] 73 71 72 73 grok.global_utility(Student, provides=IStudent)
Note: See TracChangeset for help on using the changeset viewer.