Changeset 3757


Ignore:
Timestamp:
11 Nov 2008, 11:59:48 (16 years ago)
Author:
Henrik Bettermann
Message:

implement simple URL command filter for dumpAll

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r3743 r3757  
    202202
    203203    security.declareProtected(ModifyPortalContent,"dumpAll")###(
    204     def dumpAll(self):
     204    def dumpAll(self,index=None,value=None):
    205205        """dump all data in the table to a csv"""
    206206        member = self.portal_membership.getAuthenticatedMember()
     
    222222        out = open(export_file,"a")
    223223        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()
    225228        nr2export = len(records)
    226229        logger.info('%s starts dumping, %s records to export' % (member,nr2export))
Note: See TracChangeset for help on using the changeset viewer.