Changeset 1789

Show
Ignore:
Timestamp:
10/07/04 16:35:40 (20 years ago)
Author:
jalet
Message:

Now edpykota refuses to launch if the user is not a PyKota administrator.
dumpykota : now has the same error message than edpykota in this case.

Location:
pykota/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/dumpykota

    r1785 r1789  
    2424# 
    2525# $Log$ 
     26# Revision 1.11  2004/10/07 14:35:40  jalet 
     27# Now edpykota refuses to launch if the user is not a PyKota administrator. 
     28# dumpykota : now has the same error message than edpykota in this case. 
     29# 
    2630# Revision 1.10  2004/10/06 10:05:47  jalet 
    2731# Minor changes to allow any PyKota administrator to launch enhanced versions 
     
    154158        """Print Quota Data Dumper.""" 
    155159        if not self.config.isAdmin : 
    156             raise PyKotaToolError, _("You're not allowed to dump PyKota's datas.") 
     160            raise PyKotaToolError, _("You're not allowed to use this command.") 
    157161             
    158162        datatype = options["data"] 
  • pykota/trunk/bin/edpykota

    r1755 r1789  
    2424# 
    2525# $Log$ 
     26# Revision 1.78  2004/10/07 14:35:40  jalet 
     27# Now edpykota refuses to launch if the user is not a PyKota administrator. 
     28# dumpykota : now has the same error message than edpykota in this case. 
     29# 
    2630# Revision 1.77  2004/09/28 17:45:31  jalet 
    2731# Added the --hardreset command line option to edpykota 
     
    458462    def main(self, names, options) : 
    459463        """Edit user or group quotas.""" 
     464        if not self.config.isAdmin : 
     465            raise PyKotaToolError, _("You're not allowed to use this command.") 
    460466         
    461467        suffix = (options["groups"] and "Group") or "User"         
  • pykota/trunk/NEWS

    r1788 r1789  
    2424    - 1.20alpha22 : 
    2525     
     26        - edpykota now refuse to work if the user is not a PyKota admin. 
     27         
    2628        - Fixes a recently introduced bug with users groups and PostgreSQL. 
    2729