Mercurial > p > roundup > code
changeset 401:a930feb07dc4
Added globbing for win32, and sample marking in a 2nd file to test it
| author | Jürgen Hermann <jhermann@users.sourceforge.net> |
|---|---|
| date | Wed, 21 Nov 2001 23:35:45 +0000 |
| parents | 139593f02ff6 |
| children | 00f120add0f7 |
| files | roundup/htmltemplate.py tools/pygettext.py |
| diffstat | 2 files changed, 14 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/htmltemplate.py Wed Nov 21 23:27:33 2001 +0000 +++ b/roundup/htmltemplate.py Wed Nov 21 23:35:45 2001 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: htmltemplate.py,v 1.43 2001-11-21 04:04:43 richard Exp $ +# $Id: htmltemplate.py,v 1.44 2001-11-21 23:35:45 jhermann Exp $ import os, re, StringIO, urllib, cgi, errno @@ -87,7 +87,7 @@ k = linkcl.labelprop() value = ', '.join([linkcl.get(i, k) for i in value]) else: - s = 'Plain: bad propclass "%s"'%propclass + s = _('Plain: bad propclass "%(propclass)s"')%locals() if escape: value = cgi.escape(value) return value @@ -106,7 +106,7 @@ to be edited ''' if not self.nodeid and self.form is None and self.filterspec is None: - return '[Field: not called from item]' + return _('[Field: not called from item]') propclass = self.properties[property] if self.nodeid: value = self.cl.get(self.nodeid, property, None) @@ -861,6 +861,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.43 2001/11/21 04:04:43 richard +# *sigh* more missing value handling +# # Revision 1.42 2001/11/21 03:40:54 richard # more new property handling #
--- a/tools/pygettext.py Wed Nov 21 23:27:33 2001 +0000 +++ b/tools/pygettext.py Wed Nov 21 23:35:45 2001 +0000 @@ -411,6 +411,14 @@ else: options.toexclude = [] + # on win32, do internal globbing + if sys.platform == 'win32': + import glob + expanded = [] + for arg in args: + expanded.extend(glob.glob(arg)) + args = expanded + # slurp through all the files eater = TokenEater(options) for filename in args:
