summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 54dea63)
raw | patch | inline | side by side (parent: 54dea63)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 17 Jun 2002 23:15:29 +0000 (23:15 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 17 Jun 2002 23:15:29 +0000 (23:15 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@788 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/hyperdb.py | patch | blob | history |
diff --git a/roundup/hyperdb.py b/roundup/hyperdb.py
index 392363fbd3f6dc9d41b21641120c0064bcc3a9b4..53b785b7185d7efaeec3e353103b0d3ff9c96b7e 100644 (file)
--- a/roundup/hyperdb.py
+++ b/roundup/hyperdb.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: hyperdb.py,v 1.68 2002-06-11 06:52:03 richard Exp $
+# $Id: hyperdb.py,v 1.69 2002-06-17 23:15:29 richard Exp $
__doc__ = """
Hyperdatabase implementation, especially field types.
"""
# standard python modules
-import re, string, weakref, os, time
+import sys, re, string, weakref, os, time
# roundup modules
import date, password
pass
DEBUG = os.environ.get('HYPERDBDEBUG', '')
if DEBUG and __debug__:
- DEBUG = open(DEBUG, 'a')
+ if DEBUG == 'stdout':
+ DEBUG = sys.stdout
+ else:
+ DEBUG = open(DEBUG, 'a')
else:
DEBUG = Sink()
TRACE = os.environ.get('HYPERDBTRACE', '')
if TRACE and __debug__:
- TRACE = open(TRACE, 'w')
+ if TRACE == 'stdout':
+ TRACE = sys.stdout
+ else:
+ TRACE = open(TRACE, 'w')
else:
TRACE = Sink()
def traceMark():
elif isinstance(prop, Multilink):
if type(value) != type([]):
raise TypeError, 'new property "%s" not a list of ids'%key
+
+ # clean up and validate the list of links
link_class = self.properties[key].classname
l = []
for entry in value:
#
# $Log: not supported by cvs2svn $
+# Revision 1.68 2002/06/11 06:52:03 richard
+# . #564271 ] find() and new properties
+#
# Revision 1.67 2002/06/11 05:02:37 richard
# . #565979 ] code error in hyperdb.Class.find
#