|
1 | | -# $Id: htmltemplate.py,v 1.12 2001-07-30 01:24:33 richard Exp $ |
| 1 | +# $Id: htmltemplate.py,v 1.13 2001-07-30 02:37:53 richard Exp $ |
2 | 2 |
|
3 | 3 | import os, re, StringIO, urllib, cgi, errno |
4 | 4 |
|
@@ -62,7 +62,12 @@ def __call__(self, property, size=None, height=None, showid=0): |
62 | 62 | return '[Field: not called from item]' |
63 | 63 | propclass = self.properties[property] |
64 | 64 | if self.nodeid: |
65 | | - value = self.cl.get(self.nodeid, property) |
| 65 | + value = self.cl.get(self.nodeid, property, None) |
| 66 | + # TODO: remove this from the code ... it's only here for |
| 67 | + # handling schema changes, and they should be handled outside |
| 68 | + # of this code... |
| 69 | + if propclass.isMultilinkType and value is None: |
| 70 | + value = [] |
66 | 71 | elif self.filterspec is not None: |
67 | 72 | if propclass.isMultilinkType: |
68 | 73 | value = self.filterspec.get(property, []) |
@@ -712,6 +717,9 @@ def newitem(client, templates, db, classname, form, replace=re.compile( |
712 | 717 |
|
713 | 718 | # |
714 | 719 | # $Log: not supported by cvs2svn $ |
| 720 | +# Revision 1.12 2001/07/30 01:24:33 richard |
| 721 | +# Handles new node display now. |
| 722 | +# |
715 | 723 | # Revision 1.11 2001/07/29 09:31:35 richard |
716 | 724 | # oops |
717 | 725 | # |
|
0 commit comments