source: waeup/trunk/src/waeup/student.py @ 3521

Last change on this file since 3521 was 3521, checked in by adiwidjaja, 17 years ago

Initial checkin of workshop result.

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1import grok
2from grok import index
3from interfaces import IStudent
4
5class Student(grok.Model):
6    """This is a student record.
7    """
8    grok.implements(IStudent)
9
10    def __init__(self, a):
11        """
12                 entry_mode,
13                 end_level,
14                 name,
15                 jamb_reg_no,
16                 level,
17                 id,
18                 lga,
19                 entry_session,
20                 matric_no,
21                 sex,
22                 phone,
23                 session,
24                 course,
25                 mode,
26                 faculty,
27                 department,
28                 verdict,
29                 review_state,
30                 perm_address,
31                 email):
32        self.entry_mode = entry_mode,
33        self.end_level = end_level,
34        self.name = name,
35        self.jamb_reg_no = jamb_reg_no,
36        self.level = level,
37        self.id = id,
38        self.lga = lga,
39        self.entry_session = entry_session,
40        self.matric_no = matric_no,
41        self.sex = sex,
42        self.phone = phone,
43        self.session = session,
44        self.course = course,
45        self.mode = mode,
46        self.faculty = faculty,
47        self.department = department,
48        self.verdict = verdict,
49        self.review_state = review_state,
50        self.perm_address = perm_address,
51        self.email = email
52
53        """
54        self.entry_mode, self.end_level, self.name, self.jamb_reg_no, self.level, self.id, self.lga, self.entry_session, self.matric_no, self.sex, self.phone, self.session, self.course, self.mode, self.faculty, self.department, self.verdict, self.review_state,  self.perm_address, self.email = a
55
56    def getCsv(self):
57        return self.entry_mode, self.end_level, self.name, self.jamb_reg_no, self.level, self.id, self.lga, self.entry_session, self.matric_no, self.sex, self.phone, self.session, self.course, self.mode, self.faculty, self.department, self.verdict, self.review_state,  self.perm_address, self.email
Note: See TracBrowser for help on using the repository browser.