comparison roundup/admin.py @ 3923:d02aad94af5a

use str instead of repr during roundup-admin display of values Since we're displaying them for human consumption, str seems like a better choice. Unicode strings will now get displayed as something a human can read. should fix [SF#1692792]
author Justus Pendleton <jpend@users.sourceforge.net>
date Wed, 26 Sep 2007 14:09:59 +0000
parents 44f2158fe76e
children 3230f9c88086
comparison
equal deleted inserted replaced
3922:586679a314f7 3923:d02aad94af5a
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.108 2007-09-11 04:12:17 jpend Exp $ 19 # $Id: admin.py,v 1.109 2007-09-26 14:09:59 jpend 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
754 # display the values 754 # display the values
755 keys = cl.properties.keys() 755 keys = cl.properties.keys()
756 keys.sort() 756 keys.sort()
757 for key in keys: 757 for key in keys:
758 value = cl.get(nodeid, key) 758 value = cl.get(nodeid, key)
759 print _('%(key)s: %(value)r')%locals() 759 print _('%(key)s: %(value)s')%locals()
760 760
761 def do_create(self, args): 761 def do_create(self, args):
762 ""'''Usage: create classname property=value ... 762 ""'''Usage: create classname property=value ...
763 Create a new entry of a given class. 763 Create a new entry of a given class.
764 764

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