Changeset 2315 for WAeUP_SRP/base
- Timestamp:
- 5 Oct 2007, 06:19:47 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2313 r2315 999 999 security.declareProtected(ModifyPortalContent,'mass_create_course') ###( 1000 1000 def mass_create_course(self,mapping): 1001 #import pdb;pdb.set_trace() 1001 1002 if getattr(self,'_v_course_list',None) is None: 1002 1003 self._v_course_list = [] … … 1389 1390 start = False 1390 1391 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)) 1392 1393 attrs = csv.reader(open("%s/import/%s.csv" % (i_home,filename),"rb")).next() 1393 1394 import_keys = [k for k in attrs if not k.startswith('ignore')] -
WAeUP_SRP/base/skins/waeup_default/import.py
r2314 r2315 10 10 def set_trace(): 11 11 pass 12 import DateTime 12 import DateTime, logging 13 13 from urllib import urlencode 14 14 current = DateTime.DateTime() … … 58 58 ds.get('import_or_edit') 59 59 ) 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 62 60 return context.import_form(rendered = res, 63 61 psm = psm,
Note: See TracChangeset for help on using the changeset viewer.