Changeset 2315 for WAeUP_SRP/base


Ignore:
Timestamp:
5 Oct 2007, 06:19:47 (17 years ago)
Author:
Henrik Bettermann
Message:

import.py fixed
logging in importData improved

Location:
WAeUP_SRP/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2313 r2315  
    999999    security.declareProtected(ModifyPortalContent,'mass_create_course') ###(
    10001000    def mass_create_course(self,mapping):
     1001        #import pdb;pdb.set_trace()
    10011002        if getattr(self,'_v_course_list',None) is None:
    10021003            self._v_course_list = []
     
    13891390                start = False
    13901391                adapters = [MappingStorageAdapter(schema, item)]
    1391                 logger.info('%s starts import from %s.csv' % (member,filename))
     1392                logger.info('%s starts import from %s.csv in %s mode with schema and layout %s' % (member,filename,mode,iname))
    13921393                attrs = csv.reader(open("%s/import/%s.csv" % (i_home,filename),"rb")).next()
    13931394                import_keys = [k for k in attrs if not k.startswith('ignore')]
  • WAeUP_SRP/base/skins/waeup_default/import.py

    r2314 r2315  
    1010    def set_trace():
    1111        pass
    12 import DateTime
     12import DateTime, logging
    1313from urllib import urlencode
    1414current = DateTime.DateTime()
     
    5858                                    ds.get('import_or_edit')
    5959                                   )
    60     logger.info('%s started import of file %s with schema import_%s in %s mode' % (member,ds.get('filename'),ds.get('name'),)ds.get('import_or_edit'))                               
    61                                    
    6260return context.import_form(rendered = res,
    6361                                 psm = psm,
Note: See TracChangeset for help on using the changeset viewer.