Changeset 361 for WAeUP_SRP/trunk/Academics.py
- Timestamp:
- 30 Jul 2006, 06:12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Academics.py
r351 r361 22 22 p_home = Globals.package_home(globals()) 23 23 i_home = Globals.INSTANCE_HOME 24 25 def makeCertificateCode(code): 26 code = code.replace('.','') 27 code = code.replace('(','') 28 code = code.replace(')','') 29 code = code.replace('/','') 30 code = code.replace(' ','') 31 code = code.replace('_','') 32 return code 24 33 25 34 class AcademicsFolder(CPSDocument): ###( … … 272 281 dep = deps[depid] 273 282 certificates = dep.certificates 274 code = certificate.get('CertCode') 275 code = code.replace('.','') 276 code = code.replace('(','') 277 code = code.replace(')','') 278 code = code.replace('/','') 279 code = code.replace(' ','') 280 code = code.replace('_','') 283 code = makeCertificateCode(certificate.get('CertCode')) 281 284 certificate_id = code 282 285 c = getattr(certificates,certificate_id,None)
Note: See TracChangeset for help on using the changeset viewer.