Changeset 2081 for WAeUP_SRP/trunk
- Timestamp:
- 30 Jul 2007, 18:08:19 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Academics.py
r1571 r2081 506 506 logger.info('Exporting %s %s ' % (obj.id, lr)) 507 507 export.append('"%s","%s"' % (obj.getId(),lr)) 508 open("%s/ import/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export))508 open("%s/export/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export)) 509 509 ###) 510 510 … … 537 537 di['review_state'] = self.portal_workflow.getInfoFor(obj,'review_state','no_state') 538 538 export.append('"%(code)s","%(review_state)s","%(title)s","%(title_prefix)s","%(college_code)s","%(degree_grade)s","%(bank_code)s"' % di) 539 open("%s/ import/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export))539 open("%s/export/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export)) 540 540 return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1')) 541 541 … … 573 573 logger.info('could not export %s %s ' % (department.id, department.title)) 574 574 continue 575 open("%s/ import/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export))575 open("%s/export/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export)) 576 576 return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1')) 577 577 ###) … … 615 615 logger.info('Exporting %s %s ' % (course.id, course.title)) 616 616 continue 617 open("%s/ import/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export))617 open("%s/export/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export)) 618 618 return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1')) 619 619 ###) … … 671 671 logger.info('could not export %s %s ' % (certificate.id, certificate.title)) 672 672 continue 673 open("%s/ import/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export))673 open("%s/export/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export)) 674 674 return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1')) 675 675 ###) … … 717 717 logger.info('Could not export %s %s ' % (certificate.id, certificate.title)) 718 718 continue 719 open("%s/ import/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export))719 open("%s/export/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export)) 720 720 return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1')) 721 721 ###)
Note: See TracChangeset for help on using the changeset viewer.