comparison roundup/admin.py @ 1409:8dc60d87ab42

Fixed a backlog of bug reports, and worked on python 2.3 compatibility: - fixed templating filter function arguments [SF#678911] - fixed multiselect in searching [SF#676874] - fixed parsing of content-disposition filenames [SF#675116] - added 'h' to roundup-server optarg list [SF#674070] - fixed doc for db.history in anydbm and rdbms_common [SF#679221] - fixed timelog example so it handles new issues [SF#678908] - handle missing os.fork() [SF#681046] - fixed roundup-reminder [SF#681042] - fixed int assumptions about Number values [SF#677762] - added warning filter for "FutureWarning: hex/oct constants > sys.maxint will return positive values..." (literal 0xffff0000 in portalocker.py) - fixed ZPT code generating SyntaxWarning for assignment to None
author Richard Jones <richard@users.sourceforge.net>
date Thu, 06 Feb 2003 05:43:49 +0000
parents 8dd4f736370b
children b953750bdc04
comparison
equal deleted inserted replaced
1408:01c02e81e08d 1409:8dc60d87ab42
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.35 2002-10-03 06:56:28 richard Exp $ 19 # $Id: admin.py,v 1.36 2003-02-06 05:43:47 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, shlex, shutil 24 import sys, os, getpass, getopt, re, UserDict, shlex, shutil
495 elif isinstance(proptype, hyperdb.Link): 495 elif isinstance(proptype, hyperdb.Link):
496 props[key] = value 496 props[key] = value
497 elif isinstance(proptype, hyperdb.Boolean): 497 elif isinstance(proptype, hyperdb.Boolean):
498 props[key] = value.lower() in ('yes', 'true', 'on', '1') 498 props[key] = value.lower() in ('yes', 'true', 'on', '1')
499 elif isinstance(proptype, hyperdb.Number): 499 elif isinstance(proptype, hyperdb.Number):
500 props[key] = int(value) 500 props[key] = float(value)
501 501
502 # try the set 502 # try the set
503 try: 503 try:
504 apply(cl.set, (itemid, ), props) 504 apply(cl.set, (itemid, ), props)
505 except (TypeError, IndexError, ValueError), message: 505 except (TypeError, IndexError, ValueError), message:
680 elif isinstance(proptype, hyperdb.Multilink): 680 elif isinstance(proptype, hyperdb.Multilink):
681 props[propname] = value.split(',') 681 props[propname] = value.split(',')
682 elif isinstance(proptype, hyperdb.Boolean): 682 elif isinstance(proptype, hyperdb.Boolean):
683 props[propname] = value.lower() in ('yes', 'true', 'on', '1') 683 props[propname] = value.lower() in ('yes', 'true', 'on', '1')
684 elif isinstance(proptype, hyperdb.Number): 684 elif isinstance(proptype, hyperdb.Number):
685 props[propname] = int(value) 685 props[propname] = float(value)
686 686
687 # check for the key property 687 # check for the key property
688 propname = cl.getkey() 688 propname = cl.getkey()
689 if propname and not props.has_key(propname): 689 if propname and not props.has_key(propname):
690 raise UsageError, _('you must provide the "%(propname)s" ' 690 raise UsageError, _('you must provide the "%(propname)s" '

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