Ignore:
Timestamp:
30 Jul 2006, 06:12:00 (18 years ago)
Author:
joachim
Message:

student import startet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r351 r361  
    2222p_home = Globals.package_home(globals())
    2323i_home = Globals.INSTANCE_HOME
     24
     25def 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
    2433
    2534class AcademicsFolder(CPSDocument): ###(
     
    272281            dep = deps[depid]
    273282            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'))
    281284            certificate_id = code
    282285            c = getattr(certificates,certificate_id,None)
Note: See TracChangeset for help on using the changeset viewer.