Changeset 1773
- Timestamp:
- 11 May 2007, 14:20:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1772 r1773 717 717 def importStudent(self,dict): 718 718 "create a students data" 719 logger = logging.getLogger('WAeUPTool. create_student')719 logger = logging.getLogger('WAeUPTool.import_student') 720 720 students_folder = self.portal_url.getPortalObject().campus.students 721 721 jamb_reg_no = dict.get('jamb_reg_no',None) … … 760 760 import transaction 761 761 import random 762 763 pm = self.portal_membership 764 member = pm.getAuthenticatedMember() 765 762 766 logger = logging.getLogger('WAeUPTool.importData') 763 767 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") … … 804 808 adapters = [MappingStorageAdapter(schema, item)] 805 809 dm = DataModel(item, adapters,context=self) 806 logger.info(' Start importing from %s.csv' % filename)810 logger.info('%s starts import from %s.csv' % (member,filename)) 807 811 import_keys = item.keys() 808 812 diff_set = set(import_keys).difference(set(schema.keys()))
Note: See TracChangeset for help on using the changeset viewer.