Code

typeof() instead of type(): avoid clash with database field(?) "type"
authorjhermann <jhermann@57a73879-2fb5-44c3-a270-3262357dd7e2>
Sat, 24 Nov 2001 00:45:42 +0000 (00:45 +0000)
committerjhermann <jhermann@57a73879-2fb5-44c3-a270-3262357dd7e2>
Sat, 24 Nov 2001 00:45:42 +0000 (00:45 +0000)
commitc61050c5c4d83aa910930e90f0ed6777e76f13ef
tree46702468d31708668f053379bc677f6d9acb67d5
parent7d090d036546fee25381ecc6ddaddfd26317c9c3
typeof() instead of type(): avoid clash with database field(?) "type"

Fixes this traceback:

Traceback (most recent call last):
  File "roundup\cgi_client.py", line 535, in newnode
    self._post_editnode(nid)
  File "roundup\cgi_client.py", line 415, in _post_editnode
    if type(value) != type([]): value = [value]
UnboundLocalError: local variable 'type' referenced before assignment

git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@419 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi_client.py