Issue 2550646
Created on 2010-04-16 16:13 by radioking, last changed 2013-02-25 16:06 by rouilj.
| Messages | |||
|---|---|---|---|
| msg4044 | Author: [hidden] (radioking) | Date: 2010-04-16 16:13 | |
> 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?
|
|||
| msg4447 | Author: [hidden] (rouilj) | Date: 2011-10-15 04:09 | |
Does: set user1 alternate_addresses=None work? I can't replicate the issue with g unless I set an alternate or primary address to g. |
|||
| msg4807 | Author: [hidden] (rouilj) | Date: 2013-02-25 16:06 | |
Chris is this ticket still valid, do you have any addition feedback? |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2013-02-25 16:06:07 | rouilj | set | priority: normal messages: + msg4807 |
| 2011-10-17 07:53:23 | ber | set | nosy: + ber |
| 2011-10-15 04:09:54 | rouilj | set | nosy:
+ rouilj messages: + msg4447 |
| 2010-04-16 16:13:39 | radioking | create | |