[XML-SIG] [ pyxml-Bugs-418319 ] more ODS issues
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 23 Apr 2001 11:44:31 -0700
Bugs item #418319, was updated on 2001-04-23 11:44
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=418319&group_id=6473
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike Olson (mikeolson)
Assigned to: Nobody/Anonymous (nobody)
Summary: more ODS issues
Initial Comment:
Email from alexander smishlajev <alex@ank-sia.com>
hello!
_4odb_odmsdump.py and _4odb_odmsload.py use sys.argv
instead of
argv argument in Run()
DbAdapter.getAllObjectIds() in Dbm adapter seems to be
broken.
following patch was locally applied:
--- Adapter.py.orig Mon Feb 19 02:39:42 2001
+++ Adapter.py Fri Mar 09 22:17:39 2001
@@ -208,8 +208,8 @@
del objs[str(oid)]
- def getAllObjectIds(self):
- return map(lambda
x:x[0],self.statements[CompiliedStatement.GET_OBJECT_IDS].query(db))
+ def getAllObjectIds(self,db):
+ return map(int, db['objects'].keys())
_4odb_dig.py and _4odb_metadig.py both exit with usage
info if
len(argv) != 2 while corresponding .bat files always
pass a list
with 10 elements.
OifParser fails with long integers. following patch
helps (i am
not sure if we can always return long integer):
--- OifParser.py.orig Fri Feb 09 00:07:40 2001
+++ OifParser.py Fri Mar 09 22:51:05 2001
@@ -104,7 +104,10 @@
return float(literal[0][0])
elif literal[0]['TYPE'] == 'INTEGER_LITERAL':
# could be decimal, octal or hexadecimal
- return eval(literal[0][0])
+ try:
+ return eval(literal[0][0])
+ except OverflowError:
+ return eval(literal[0][0] +'L')
elif literal[0]['TYPE'] == 'OBJECT_TAG':
return literal[0][0]
else:
best wishes,
alex.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=418319&group_id=6473