comparison roundup/admin.py @ 2566:dd2b9f5a104c

don't translate strings that never need translation
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Tue, 13 Jul 2004 10:24:19 +0000
parents d084aea1910f
children a9e1fff1e793
comparison
equal deleted inserted replaced
2565:89c5e8564dad 2566:dd2b9f5a104c
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.75 2004-06-25 22:23:36 richard Exp $ 19 # $Id: admin.py,v 1.76 2004-07-13 10:21:32 a1s 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
154 commands.sort(sortfun) 154 commands.sort(sortfun)
155 for command in commands: 155 for command in commands:
156 h = _(command.__doc__).split('\n') 156 h = _(command.__doc__).split('\n')
157 name = command.__name__[3:] 157 name = command.__name__[3:]
158 usage = h[0] 158 usage = h[0]
159 print _(''' 159 print '''
160 <tr><td valign=top><strong>%(name)s</strong></td> 160 <tr><td valign=top><strong>%(name)s</strong></td>
161 <td><tt>%(usage)s</tt><p> 161 <td><tt>%(usage)s</tt><p>
162 <pre>''')%locals() 162 <pre>''' % locals()
163 indent = indent_re.match(h[3]) 163 indent = indent_re.match(h[3])
164 if indent: indent = len(indent.group(1)) 164 if indent: indent = len(indent.group(1))
165 for line in h[3:]: 165 for line in h[3:]:
166 if indent: 166 if indent:
167 print line[indent:] 167 print line[indent:]
168 else: 168 else:
169 print line 169 print line
170 print _('</pre></td></tr>\n') 170 print '</pre></td></tr>\n'
171 171
172 def help_all(self): 172 def help_all(self):
173 print _(''' 173 print _('''
174 All commands (except help) require a tracker specifier. This is just 174 All commands (except help) require a tracker specifier. This is just
175 the path to the roundup tracker you're working with. A roundup tracker 175 the path to the roundup tracker you're working with. A roundup tracker
232 232
233 Command help: 233 Command help:
234 ''') 234 ''')
235 for name, command in self.commands.items(): 235 for name, command in self.commands.items():
236 print _('%s:')%name 236 print _('%s:')%name
237 print _(' '), _(command.__doc__) 237 print ' ', _(command.__doc__)
238 238
239 def do_help(self, args, nl_re=re.compile('[\r\n]'), 239 def do_help(self, args, nl_re=re.compile('[\r\n]'),
240 indent_re=re.compile(r'^(\s+)\S+')): 240 indent_re=re.compile(r'^(\s+)\S+')):
241 ""'''Usage: help topic 241 ""'''Usage: help topic
242 Give help about topic. 242 Give help about topic.

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