Changeset 154 for waeup_product
- Timestamp:
- 4 Nov 2005, 20:50:15 (19 years ago)
- Location:
- waeup_product/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Students.py
r153 r154 6 6 from Products.CMFCore.permissions import View 7 7 from Products.CMFCore.permissions import ModifyPortalContent 8 from Products.CPSCore.CPSBase import CPSBase_adder, CPSBaseFolder 9 #from Products.CPSCore.CPSBase import CPSBaseDocument as BaseDocument 10 from Products.CPSDocument.CPSDocument import CPSDocument 11 from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder 8 from Products.CPSCore.CPSBase import CPSBase_adder, CPSBaseFolder 9 #from Products.CPSCore.CPSBase import CPSBaseDocument as BaseDocument 10 from Products.CPSDocument.CPSDocument import CPSDocument 11 from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder 12 12 class StudentsFolder(BaseBTreeFolder): ###( 13 13 """ 14 WAeUP container for the various WAeUP containers data 14 WAeUP container for the various WAeUP containers data 15 15 """ 16 16 meta_type = 'Students Folder' 17 17 portal_type = meta_type 18 18 security = ClassSecurityInfo() 19 20 19 20 21 21 InitializeClass(StudentsFolder) 22 22 … … 44 44 class Student(CPSDocument): ###( 45 45 """ 46 WAeUP Student container for the various student data 46 WAeUP Student container for the various student data 47 47 """ 48 48 meta_type = 'Student' 49 49 portal_type = meta_type 50 50 security = ClassSecurityInfo() 51 51 52 52 security.declareProtected(View,"Title") 53 53 def Title(self): … … 61 61 return "%s %s" % (content.firstname,content.lastname) 62 62 return self.title 63 63 64 def Description(self): 65 """compose description""" 66 data = getattr(self,'JAMB',None) 67 if data: 68 content = data.getContent() 69 return "Faculty: %s, Course: %s" % (content.faculty,content.course) 70 return self.description 71 64 72 InitializeClass(Student) 65 73 … … 88 96 class StudentPersonal(CPSDocument): ###( 89 97 """ 90 WAeUP Student container for the various student data 98 WAeUP Student container for the various student data 91 99 """ 92 100 meta_type = 'StudentPersonal' … … 100 108 return "Personal Data for %s %s" % (content.firstname,content.lastname) 101 109 102 110 103 111 InitializeClass(StudentPersonal) 104 112 … … 131 139 portal_type = meta_type 132 140 security = ClassSecurityInfo() 133 141 134 142 security.declareProtected(View,"Title") 135 143 def Title(self): … … 174 182 portal_type = meta_type 175 183 security = ClassSecurityInfo() 176 184 177 185 InitializeClass(StudyLevel) 178 186 … … 204 212 portal_type = meta_type 205 213 security = ClassSecurityInfo() 206 214 207 215 InitializeClass(Semester) 208 216 -
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r153 r154 132 132 'action': 'folder_localrole_form', 133 133 'permissions': (ModifyPortalContent,UniversityManage), 134 'visible' : 1,134 'visible' : 0, 135 135 }, 136 136 ## {'id': 'contents', … … 871 871 types['StudentPersonal'] = student_personal_type 872 872 types['StudyLevel'] = study_level_folder 873 types['Semester'] = semester_folder 874 types['CourseTicket'] = course_ticket 873 types['Semester'] = semester_folder 874 types['CourseTicket'] = course_ticket 875 875 types['AccoFolder'] = acco_folder 876 876 types['Accommodation'] = accommodation
Note: See TracChangeset for help on using the changeset viewer.