- Timestamp:
- 19 Mar 2007, 20:05:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r1577 r1594 81 81 portal_type = meta_type 82 82 security = ClassSecurityInfo() 83 84 85 83 86 84 security.declareProtected(ModifyPortalContent,"createDEStudents")###( … … 1114 1112 ###) 1115 1113 1116 1117 1118 security.declareProtected(View,"fixOwnership") 1114 security.declareProtected(View,"fixOwnership") ###( 1119 1115 def fixOwnership(self): 1120 1116 """fix Ownership""" … … 1125 1121 student.application.manage_setLocalRoles(sid, ['Owner',]) 1126 1122 student.personal.manage_setLocalRoles(sid, ['Owner',]) 1127 1128 security.declareProtected(View,"Title") 1123 ###) 1124 1125 security.declareProtected(View,"Title") ###( 1129 1126 def Title(self): 1130 1127 """compose title""" 1131 1128 return "Student Section" 1129 ###) 1132 1130 1133 1131 def generateStudentId(self,letter): ###( … … 1146 1144 InitializeClass(StudentsFolder) 1147 1145 1148 def addStudentsFolder(container, id, REQUEST=None, **kw): 1146 def addStudentsFolder(container, id, REQUEST=None, **kw): ###( 1149 1147 """Add a Student.""" 1150 1148 ob = StudentsFolder(id, **kw) 1151 1149 return CPSBase_adder(container, ob, REQUEST=REQUEST) 1150 ###) 1151 1152 1152 ###) 1153 1153 1154 1154 1155 class Student(CPSDocument): ###(
Note: See TracChangeset for help on using the changeset viewer.