Ignore:
Timestamp:
9 Feb 2009, 21:53:27 (16 years ago)
Author:
uli
Message:

Get rid of 'BaseItem?' dependency.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/students/student.py

    r3529 r3946  
    11import grok
    22from grok import index
    3 from interfaces import IStudent
    4 
    5 from waeup.baseitem import BaseItem
     3from waeup.students.interfaces import IStudent
    64
    75def fromCsv(a):
     
    119    return student
    1210
    13 class Student(BaseItem):
     11class Student(grok.Model):
    1412    """This is a student record.
    1513    """
     
    3937            ]
    4038
    41     def __init__(self, name):
     39    def __init__(self, name=None):
    4240        """
    4341        TODO: REFACTOR TO IMPORT METHOD
     
    7270        return [getattr(self, field, u"") for field in self.fields]
    7371
     72
     73grok.global_utility(Student, provides=IStudent)
Note: See TracChangeset for help on using the changeset viewer.