Changeset 1809 for pykota/trunk
- Timestamp:
- 10/12/04 17:37:00 (20 years ago)
- Location:
- pykota/trunk/bin
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/dumpykota
r1803 r1809 24 24 # 25 25 # $Log$ 26 # Revision 1.15 2004/10/12 15:37:00 jalet 27 # Now outputs the name of the offending user if a mere mortal tries to use 28 # one of these commands !!! 29 # 26 30 # Revision 1.14 2004/10/11 22:53:05 jalet 27 31 # Postponed string interpolation to help message's output method … … 167 171 """Print Quota Data Dumper.""" 168 172 if not self.config.isAdmin : 169 raise PyKotaToolError, _("You're not allowed to use this command.")173 raise PyKotaToolError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0], _("You're not allowed to use this command.")) 170 174 171 175 datatype = options["data"] -
pykota/trunk/bin/edpykota
r1803 r1809 24 24 # 25 25 # $Log$ 26 # Revision 1.81 2004/10/12 15:37:00 jalet 27 # Now outputs the name of the offending user if a mere mortal tries to use 28 # one of these commands !!! 29 # 26 30 # Revision 1.80 2004/10/11 22:53:05 jalet 27 31 # Postponed string interpolation to help message's output method … … 284 288 285 289 import sys 286 290 import os 291 import pwd 287 292 from pykota.tool import PyKotaTool, PyKotaToolError, crashed, N_ 288 293 from pykota.config import PyKotaConfigError … … 468 473 """Edit user or group quotas.""" 469 474 if not self.config.isAdmin : 470 raise PyKotaToolError, _("You're not allowed to use this command.")475 raise PyKotaToolError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0], _("You're not allowed to use this command.")) 471 476 472 477 suffix = (options["groups"] and "Group") or "User"