Changeset 3284
- Timestamp:
- 7 Mar 2008, 17:25:28 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Widgets.py
r3277 r3284 2272 2272 return self.validateError('only csv files allowed', {}, 2273 2273 datastructure) 2274 uploads_folder = self.portal_url.getPortalObject().campus.uploads 2275 if hasattr(uploads_folder,filename): 2276 return self.validateError('upload object exists', {}, 2277 datastructure) 2274 2278 datamodel[field_id] = filename 2275 2279 registry = getToolByName(self, 'mimetypes_registry') … … 2282 2286 file.content_type = mimetype 2283 2287 file_path = os.path.join(self.storage_path,filename) 2284 #import pdb; pdb.set_trace()2285 2288 data = open(file_path,"w") 2286 2289 data.write(str(file.data))
Note: See TracChangeset for help on using the changeset viewer.