Changeset 1718 for pykota/trunk/bin

Show
Ignore:
Timestamp:
09/15/04 08:58:25 (20 years ago)
Author:
jalet
Message:

User groups membership and printer groups membership can now be dumped too

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/dumpykota

    r1717 r1718  
    2424# 
    2525# $Log$ 
     26# Revision 1.3  2004/09/15 06:58:25  jalet 
     27# User groups membership and printer groups membership can now be dumped too 
     28# 
    2629# Revision 1.2  2004/09/14 22:29:12  jalet 
    2730# First version of dumpykota. Works fine but only with PostgreSQL backend 
     
    6568                         - gquotas : dump user groups quotas. 
    6669                         - payments : dumps user payments. 
     70                         - pmembers : dumps printer groups members. 
     71                         - umembers : dumps user groups members. 
    6772                          
    6873                       NB : the -d | --data command line option    
     
    106111                             "gpquotas", 
    107112                             "payments", 
     113                             "pmembers", 
     114                             "umembers", 
    108115                           ] : 
    109116            raise PyKotaToolError, _("Invalid modifier [%s] for --data command line option, see help.") % datatype 
     
    117124             
    118125        entries = getattr(self.storage, "extract%s" % datatype.title())()     
    119         getattr(self, "dump%s" % format.title())(entries) 
     126        if entries is not None : 
     127            getattr(self, "dump%s" % format.title())(entries) 
    120128        return 0 
    121129