Ignore:
Timestamp:
11 Mar 2008, 20:31:44 (17 years ago)
Author:
Henrik Bettermann
Message:

make import work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPImport.py

    r3319 r3320  
    6060        self.students_folder = waeup_tool.portal_url.getPortalObject().campus.students
    6161        self.member = member = waeup_tool.portal_membership.getAuthenticatedMember()
    62         self.import_date = DateTime.DateTime().strftime("%d/%m/%y %H:%M:%S")
    63         self.current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
     62        self.import_date = DateTime.DateTime()
     63        self.imported_by = str(member)
     64        #self.current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    6465        self.waeup_tool = waeup_tool
    6566        self.academics_folder = waeup_tool.portal_url.getPortalObject().campus.academics
     
    102103            info = {}
    103104            info['imported_from'] = ''
    104             info['imported_by'] = str(member)
    105             info['import_date'] = self.import_date
     105            info['imported_by'] =  self.imported_by
     106            info['import_date'] = self.import_date.strftime("%d/%m/%y %H:%M:%S")
    106107            info['error'] = ''
    107108            self.info = info
Note: See TracChangeset for help on using the changeset viewer.