Changeset 1992 for pykota

Show
Ignore:
Timestamp:
12/21/04 17:19:44 (20 years ago)
Author:
jalet
Message:

Fixed the problem with dumpykota's filtering of printers groups membership

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/sql.py

    r1991 r1992  
    2222# 
    2323# $Log$ 
     24# Revision 1.62  2004/12/21 16:19:44  jalet 
     25# Fixed the problem with dumpykota's filtering of printers groups membership 
     26# 
    2427# Revision 1.61  2004/12/21 15:49:59  jalet 
    2528# The dumpykota command now supports extended filtering capabilities with 
     
    207210    def extractPmembers(self, extractonly={}) : 
    208211        """Extracts all printer groups members.""" 
     212        for (k, v) in extractonly.items() : 
     213            if k == "pgroupname" : 
     214                del extractonly[k] 
     215                extractonly["p1.printername"] = v 
     216            elif k == "printername" : 
     217                del extractonly[k] 
     218                extractonly["p2.printername"] = v 
    209219        thefilter = self.createFilter(extractonly) 
    210220        if thefilter :