Changeset 6979 for main/waeup.sirp/trunk/src
- Timestamp:
- 1 Nov 2011, 08:25:10 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/university
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.py
r6811 r6979 35 35 self[department.code] = department 36 36 37 def clear(self):38 """Remove all departments from faculty.39 """40 keys = self.keys()41 for key in keys:42 del self[key]43 44 37 def longtitle(self): 45 38 try: -
main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.txt
r5140 r6979 69 69 [(u'DP', <waeup.sirp.university.department.Department object at 0x...>)] 70 70 71 .. method:: clear()72 73 Remove all departments from this faculty:74 75 >>> myfac.clear()76 >>> list(myfac.items())77 []78 71 79 72 .. attribute:: title -
main/waeup.sirp/trunk/src/waeup/sirp/university/facultycontainer.py
r6575 r6979 16 16 self[faculty.code] = faculty 17 17 return 18 19 def clear(self):20 keys = self.keys()21 for key in keys:22 del self[key]23 18 24 19 class FacultyContainerFactory(grok.GlobalUtility): -
main/waeup.sirp/trunk/src/waeup/sirp/university/facultycontainer.txt
r5140 r6979 67 67 [(u'FP', <waeup.sirp.university.faculty.Faculty object at 0x...>)] 68 68 69 .. method:: clear()70 71 Remove all departments from this faculty:72 73 >>> mycontainer.clear()74 >>> list(mycontainer.items())75 []76 69 77 70
Note: See TracChangeset for help on using the changeset viewer.