- Timestamp:
- 9 Sep 2024, 14:06:34 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/export.py
r17915 r17919 88 88 'hq_matric_no', 89 89 'hq2_matric_no', 90 'routing_slip_path')91 92 def mangle_value(self, value, name, context=None):93 if name == 'routing_slip_path':94 file_id = IFileStoreNameChooser(context).chooseName(95 attr='routingslip.pdf')96 os_path = getUtility(IExtFileStore)._pathFromFileID(file_id)97 if not os.path.exists(os_path):98 value = None99 else:100 value = '/'.join(os_path.split('/')[-4:])101 return super(102 CustomTrimmedDataExporter, self).mangle_value(103 value, name, context=context)90 ) 91 92 #def mangle_value(self, value, name, context=None): 93 # if name == 'routing_slip_path': 94 # file_id = IFileStoreNameChooser(context).chooseName( 95 # attr='routingslip.pdf') 96 # os_path = getUtility(IExtFileStore)._pathFromFileID(file_id) 97 # if not os.path.exists(os_path): 98 # value = None 99 # else: 100 # value = '/'.join(os_path.split('/')[-4:]) 101 # return super( 102 # CustomTrimmedDataExporter, self).mangle_value( 103 # value, name, context=context) 104 104 105 105
Note: See TracChangeset for help on using the changeset viewer.