Changeset 1126


Ignore:
Timestamp:
21 Dec 2006, 23:38:42 (18 years ago)
Author:
joachim
Message:

decrease nr of transactions for createNewStudents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r1125 r1126  
    794794            study_course.getContent().edit(mapping=dsc)
    795795            self.students_catalog.addRecord(**catalog_entry)
    796             if tr_count > MAX_TRANS:
    797                 if len(no_import) > 1:
     796            if tr_count > 10:
     797                if len(no_import) > 0:
    798798                    open("%s/import/%s_not_imported.csv" % (i_home,name),"w+").write(
    799799                             '\n'.join(no_import))
     
    804804                total += tr_count
    805805                tr_count = 0
     806        open("%s/import/%s_not_imported.csv" % (i_home,name),"w+").write(
     807                                                '\n'.join(no_import))
    806808        return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1'))
    807809    ###)
Note: See TracChangeset for help on using the changeset viewer.