Roundup Tracker - Issues

Message4044

Author radioking
Recipients radioking
Date 2010-04-16.16:13:37
Message-id <1271434419.85.0.305223827972.issue2550646@psf.upfronthosting.co.za>
In-reply-to
> When I try to un-set a data field in roundup-admin I get this:
>
>
> roundup> set user14 alternate_addresses=
> Traceback (most recent call last):
>  File "/usr/lib/pymodules/python2.5/roundup/admin.py", line 1468, in
> run_command
>    ret = function(args[1:])
>  File "/usr/lib/pymodules/python2.5/roundup/admin.py", line 644, in do_set
>    key, value)
>  File "/usr/lib/pymodules/python2.5/roundup/hyperdb.py", line 1325, in
> rawToHyperdb
>    propname=propname, itemid=itemid, **kw)
>  File "/usr/lib/pymodules/python2.5/roundup/hyperdb.py", line 62, in
> from_raw
>    return fixNewlines(value)
>  File "/usr/lib/pymodules/python2.5/roundup/hyperdb.py", line 1297, in
> fixNewlines
>    text = text.replace('\r\n', '\n')
> AttributeError: 'NoneType' object has no attribute 'replace'
>
>
>
>
> ...same with
> roundup> set user14 alternate_addresses=''
> and
> roundup> set user14 alternate_addresses=""
>
> ###########################################
>
> It gets weird if I try to set the value to a simple "g".
> The error message "Email address g already in use" is not accurate:
>
>
> roundup> set user14 alternate_addresses=g
> Traceback (most recent call last):
>  File "/usr/lib/pymodules/python2.5/roundup/admin.py", line 650, in do_set
>    apply(cl.set, (itemid, ), props)
>  File "/usr/lib/pymodules/python2.5/roundup/backends/rdbms_common.py",
> line 1604, in set
>    self.fireAuditors('set', nodeid, propvalues)
>  File "/usr/lib/pymodules/python2.5/roundup/hyperdb.py", line 1221, in
> fireAuditors
>    audit(self.db, self, nodeid, newvalues)
>  File "/var/lib/roundup/aggrimm/detectors/userauditor.py", line 68, in
> audit_user_fields
>    raise ValueError, 'Email address %s already in use' % address
> ValueError: Email address g already in use
> Error: Email address g already in use
>
> Usage: set items property=value property=value ...
>        Set the given properties of one or more items(s).
>
>        The items are specified as a class or as a comma-separated
>        list of item designators (ie "designator[,designator,...]").
>
>        A designator is a classname and a nodeid concatenated,
>        eg. bug1, user10, ...
>
>        This command sets the properties to the values for all designators
>        given. If the value is missing (ie. "property=") then the property
>        is un-set. If the property is a multilink, you specify the linked
>        ids for the multilink as comma-separated numbers (ie "1,2,3").
> #########################
>
> What is the proper way to un-set a property's value?
History
Date User Action Args
2010-04-16 16:13:40radiokingsetrecipients: + radioking
2010-04-16 16:13:39radiokingsetmessageid: <1271434419.85.0.305223827972.issue2550646@psf.upfronthosting.co.za>
2010-04-16 16:13:39radiokinglinkissue2550646 messages
2010-04-16 16:13:37radiokingcreate