summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e36ba46)
raw | patch | inline | side by side (parent: e36ba46)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 21 Nov 2001 03:40:54 +0000 (03:40 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 21 Nov 2001 03:40:54 +0000 (03:40 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@408 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup-admin | patch | blob | history | |
roundup/htmltemplate.py | patch | blob | history | |
roundup/hyperdb.py | patch | blob | history |
diff --git a/roundup-admin b/roundup-admin
index e165aa1d31f8b900d9d199b3a889eb801b681d25..bca9aaf9b214cb87f2d6c7be72eaed20fa9f3229 100755 (executable)
--- a/roundup-admin
+++ b/roundup-admin
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundup-admin,v 1.45 2001-11-12 22:51:59 jhermann Exp $
+# $Id: roundup-admin,v 1.46 2001-11-21 03:40:54 richard Exp $
import sys
if int(sys.version[0]) < 2:
# TODO: handle > 1 argument
# handle the propname=value argument
- if prop.find('=') == -1:
+ if args[1].find('=') == -1:
raise UsageError, 'argument "%s" not propname=value'%prop
try:
propname, value = args[1].split('=')
#
# $Log: not supported by cvs2svn $
+# Revision 1.45 2001/11/12 22:51:59 jhermann
+# Fixed option & associated error handling
+#
# Revision 1.44 2001/11/12 22:01:06 richard
# Fixed issues with nosy reaction and author copies.
#
index 7ab976bdaad8de1207c325da862bc14351e09732..9d8d7e9b7da596787f13d7d4d7da5fbbc62d2e0c 100644 (file)
--- a/roundup/htmltemplate.py
+++ b/roundup/htmltemplate.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: htmltemplate.py,v 1.41 2001-11-15 10:26:01 richard Exp $
+# $Id: htmltemplate.py,v 1.42 2001-11-21 03:40:54 richard Exp $
import os, re, StringIO, urllib, cgi, errno
return '[Field: not called from item]'
propclass = self.properties[property]
if self.nodeid:
- value = self.cl.get(self.nodeid, property)
+ # make sure the property is a valid one
+ # TODO: this tests, but we should handle the exception
+ prop_test = self.cl.getprops()[property]
+
+ # get the value for this property
+ try:
+ value = self.cl.get(self.nodeid, property)
+ except KeyError:
+ # a KeyError here means that the node doesn't have a value
+ # for the specified property
+ if isinstance(propclass, hyperdb.Multilink): value = []
+ else: value = ''
else:
# TODO: pull the value from the form
if isinstance(propclass, hyperdb.Multilink): value = []
#
# $Log: not supported by cvs2svn $
+# Revision 1.41 2001/11/15 10:26:01 richard
+# . missing "return" in filter_section (thanks Roch'e Compaan)
+#
# Revision 1.40 2001/11/03 01:56:51 richard
# More HTML compliance fixes. This will probably fix the Netscape problem
# too.
diff --git a/roundup/hyperdb.py b/roundup/hyperdb.py
index f1d5c14ad4799332b482af25efc787508c6cbbe9..cd2e33d1d6e0840b1dd9dde194b22972a9c110fb 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.32 2001-11-21 03:11:28 richard Exp $
+# $Id: hyperdb.py,v 1.33 2001-11-21 03:40:54 richard Exp $
# standard python modules
import cPickle, re, string
raise ValueError, 'node with key "%s" exists'%value
# this will raise the KeyError if the property isn't valid
+ # ... we don't use getprops() here because we only care about
+ # the writeable properties.
prop = self.properties[key]
if isinstance(prop, Link):
#
# $Log: not supported by cvs2svn $
+# Revision 1.32 2001/11/21 03:11:28 richard
+# Better handling of new properties.
+#
# Revision 1.31 2001/11/12 22:01:06 richard
# Fixed issues with nosy reaction and author copies.
#