Changeset 2081 for WAeUP_SRP/trunk


Ignore:
Timestamp:
30 Jul 2007, 18:08:19 (17 years ago)
Author:
Henrik Bettermann
Message:

write export files to export/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r1571 r2081  
    506506            logger.info('Exporting %s %s ' % (obj.id, lr))
    507507            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))
    509509###)
    510510
     
    537537            di['review_state'] = self.portal_workflow.getInfoFor(obj,'review_state','no_state')
    538538            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))
    540540        return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1'))
    541541
     
    573573                    logger.info('could not export %s %s ' % (department.id, department.title))
    574574                    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))
    576576        return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1'))
    577577    ###)
     
    615615                    logger.info('Exporting %s %s ' % (course.id, course.title))
    616616                    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))
    618618        return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1'))
    619619    ###)
     
    671671                        logger.info('could not export %s %s ' % (certificate.id, certificate.title))
    672672                    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))
    674674        return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1'))
    675675    ###)
     
    717717                                        logger.info('Could not export %s %s ' % (certificate.id, certificate.title))
    718718                                        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))
    720720        return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1'))
    721721    ###)
Note: See TracChangeset for help on using the changeset viewer.