Changeset 3139 for WAeUP_SRP


Ignore:
Timestamp:
10 Feb 2008, 07:47:38 (17 years ago)
Author:
Henrik Bettermann
Message:

use plural for pending file names

cleanup import schemas

Location:
WAeUP_SRP
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r3135 r3139  
    20782078            logger.error(em)
    20792079            return em
    2080         pending_fn = "%s/import/%s_pending.csv" % (i_home,name)
     2080        pending_fn = "%s/import/%ss_pending.csv" % (i_home,name)
    20812081        if pending_only:
    20822082            import_source_fn = pending_fn
    2083             imported_fn = "%s/import/%s_pending_imported%s.csv" % (i_home,name,current)
    2084             not_imported_fn = "%s/import/%s_pending_not_imported%s.csv" % (i_home,name,current)
     2083            imported_fn = "%s/import/%ss_pending_imported%s.csv" % (i_home,name,current)
     2084            not_imported_fn = "%s/import/%ss_pending_not_imported%s.csv" % (i_home,name,current)
    20852085            attrs = csv.reader(open(pending_fn,"rb")).next()
    20862086        else:
     
    20892089            not_imported_fn = "%s/import/%s_not_imported%s.csv" % (i_home,filename,current)
    20902090            attrs = csv.reader(open(import_source_fn,"rb")).next()
    2091         import_keys = [k.strip() for k in attrs if not (k.strip().startswith('ignore') 
     2091        import_keys = [k.strip() for k in attrs if not (k.strip().startswith('ignore')
    20922092                                                        or k.strip() == 'Error')]
    20932093        diff2schema = set(import_keys).difference(set(schema.keys()))
  • WAeUP_SRP/uniben/profiles/default/schemas.xml

    r3033 r3139  
    1616 <object name="import_course_result" meta_type="CPS Schema"/>
    1717 <object name="import_department" meta_type="CPS Schema"/>
     18 <object name="import_faculty" meta_type="CPS Schema"/>
    1819 <object name="import" meta_type="CPS Schema"/>
    1920 <object name="import_student" meta_type="CPS Schema"/>
    20  <object name="import_student_level_data" meta_type="CPS Schema"/>
    21  <object name="import_student_course_results" meta_type="CPS Schema"/>
    2221 <object name="import_verdict" meta_type="CPS Schema"/>
    23  
     22
    2423 <object name="course" meta_type="CPS Schema"/>
    2524 <object name="department" meta_type="CPS Schema"/>
    2625 <object name="faculty" meta_type="CPS Schema"/>
    27  <object name="import_faculty" meta_type="CPS Schema"/>
    2826 <object name="members" meta_type="CPS Schema"/>
    2927 <object name="members_search" meta_type="CPS Schema"/>
Note: See TracChangeset for help on using the changeset viewer.