Changeset 3757
- Timestamp:
- 11 Nov 2008, 11:59:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r3743 r3757 202 202 203 203 security.declareProtected(ModifyPortalContent,"dumpAll")###( 204 def dumpAll(self ):204 def dumpAll(self,index=None,value=None): 205 205 """dump all data in the table to a csv""" 206 206 member = self.portal_membership.getAuthenticatedMember() … … 222 222 out = open(export_file,"a") 223 223 csv_writer = csv.DictWriter(out,fields,) 224 records = self() 224 if index is not None and value is not None: 225 records = self.evalAdvancedQuery(Eq(index,value)) 226 else: 227 records = self() 225 228 nr2export = len(records) 226 229 logger.info('%s starts dumping, %s records to export' % (member,nr2export))
Note: See TracChangeset for help on using the changeset viewer.