summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 750d419)
raw | patch | inline | side by side (parent: 750d419)
author | stefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 19 Feb 2009 20:00:44 +0000 (20:00 +0000) | ||
committer | stefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 19 Feb 2009 20:00:44 +0000 (20:00 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4141 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/form_parser.py | patch | blob | history |
index 260340e9fe5db20e7051a661df9fd1d96bdce55a..ae7ef17e1bae5d47f296125af870684346792b3e 100755 (executable)
# either have a non-empty content property or no property at all. In
# the latter case, nothing will change.
for (cn, id), props in all_props.items():
- if id and id.startswith('-') and not props:
+ if id is not None and id.startswith('-') and not props:
# new item (any class) with no content - ignore
del all_props[(cn, id)]
elif isinstance(self.db.classes[cn], hyperdb.FileClass):
- if id and id.startswith('-'):
+ if id is not None and id.startswith('-'):
if not props.get('content', ''):
del all_props[(cn, id)]
elif props.has_key('content') and not props['content']: