Changeset 6223 for main/waeup.sirp/trunk/src
- Timestamp:
- 29 May 2011, 13:47:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/certificatecontainer.py
r6221 r6223 15 15 grok.require('waeup.manageUniversity') 16 16 17 def addCertificate(self, certificate):17 def __setitem__(self, name, certificate): 18 18 """XXX: docstring missing. 19 19 """ … … 31 31 # No catalog, then this addition won't do harm to anything. 32 32 pass 33 self[certificate.code] = certificate 33 super(CertificateContainer, self).__setitem__(name, certificate) 34 35 def addCertificate(self, certificate): 36 self[getattr(certificate, 'code', None)] = certificate 34 37 35 38 def clear(self):
Note: See TracChangeset for help on using the changeset viewer.