comparison roundup/admin.py @ 3384:6d6d7e331c54 maint-0.8

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Tue, 12 Jul 2005 01:43:17 +0000
parents 446f769b813b
children
comparison
equal deleted inserted replaced
3381:e012231982e9 3384:6d6d7e331c54
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.85.2.9 2005-07-05 06:28:35 richard Exp $ 19 # $Id: admin.py,v 1.85.2.10 2005-07-12 01:43:17 richard Exp $
20 20
21 '''Administration commands for maintaining Roundup trackers. 21 '''Administration commands for maintaining Roundup trackers.
22 ''' 22 '''
23 __docformat__ = 'restructuredtext' 23 __docformat__ = 'restructuredtext'
24 24
569 print self.separator.join(l) 569 print self.separator.join(l)
570 570
571 return 0 571 return 0
572 572
573 573
574 def do_set(self, args, pwre = re.compile(r'{(\w+)}(.+)')): 574 def do_set(self, args):
575 ""'''Usage: set items property=value property=value ... 575 ""'''Usage: set items property=value property=value ...
576 Set the given properties of one or more items(s). 576 Set the given properties of one or more items(s).
577 577
578 The items are specified as a class or as a comma-separated 578 The items are specified as a class or as a comma-separated
579 list of item designators (ie "designator[,designator,...]"). 579 list of item designators (ie "designator[,designator,...]").
730 keys.sort() 730 keys.sort()
731 for key in keys: 731 for key in keys:
732 value = cl.get(nodeid, key) 732 value = cl.get(nodeid, key)
733 print _('%(key)s: %(value)r')%locals() 733 print _('%(key)s: %(value)r')%locals()
734 734
735 def do_create(self, args, pwre = re.compile(r'{(\w+)}(.+)')): 735 def do_create(self, args):
736 ""'''Usage: create classname property=value ... 736 ""'''Usage: create classname property=value ...
737 Create a new entry of a given class. 737 Create a new entry of a given class.
738 738
739 This creates a new entry of the given class using the property 739 This creates a new entry of the given class using the property
740 name=value arguments provided on the command line after the "create" 740 name=value arguments provided on the command line after the "create"

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