comparison roundup/admin.py @ 1776:3d7bb1659d73 maint-0.6

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Fri, 29 Aug 2003 12:45:54 +0000
parents d81d215167fd
children cc692b8b8fa9
comparison
equal deleted inserted replaced
1774:ae5ed85b111a 1776:3d7bb1659d73
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: admin.py,v 1.55.2.1 2003-08-28 04:53:04 richard Exp $ 19 # $Id: admin.py,v 1.55.2.2 2003-08-29 12:45:54 richard Exp $
20 20
21 '''Administration commands for maintaining Roundup trackers. 21 '''Administration commands for maintaining Roundup trackers.
22 ''' 22 '''
23 23
24 import sys, os, getpass, getopt, re, UserDict, shutil, rfc822 24 import sys, os, getpass, getopt, re, UserDict, shutil, rfc822
717 717
718 # get the class 718 # get the class
719 cl = self.get_class(classname) 719 cl = self.get_class(classname)
720 720
721 # display the values 721 # display the values
722 for key in cl.properties.keys(): 722 keys = cl.properties.keys()
723 keys.sort()
724 for key in keys:
723 value = cl.get(nodeid, key) 725 value = cl.get(nodeid, key)
724 print _('%(key)s: %(value)s')%locals() 726 print _('%(key)s: %(value)s')%locals()
725 727
726 def do_create(self, args, pwre = re.compile(r'{(\w+)}(.+)')): 728 def do_create(self, args, pwre = re.compile(r'{(\w+)}(.+)')):
727 '''Usage: create classname property=value ... 729 '''Usage: create classname property=value ...

Roundup Issue Tracker: http://roundup-tracker.org/