0xDB, Manage Places: Server error when trying to remove place from map #2797

Closed
opened 2015-05-28 10:59:26 +00:00 by rlx · 1 comment
Owner

Traceback (most recent call last):

> File "/srv/pandora/src/django/django/core/handlers/base.py", line 109, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

> File "/srv/pandora/src/python-ox/ox/django/api/views.py", line 48, in api
    response = f(request, data)

> File "/srv/pandora/src/python-ox/ox/django/decorators.py", line 18, in _wrapped_view
    return function(request, *args, **kwargs)

> File "/srv/pandora/pandora/place/views.py", line 184, in removePlace
    add_changelog(request, data)

> File "/srv/pandora/pandora/changelog/models.py", line 32, in add_changelog
    c = Log(user=user, action=action, data=data)

> File "/srv/pandora/src/django/django/db/models/base.py", line 357, in *init*
    setattr(self, field.attname, val)

> File "/srv/pandora/src/django/django/db/models/fields/subclassing.py", line 34, in *set*
    obj.*dict*[]self.field.name = self.field.to_python(value)

> File "/srv/pandora/src/python-ox/ox/django/fields.py", line 62, in to_python
    value = eval(value)

> File "<string>", line 1, in <module>

<NameError>: name 'CAE' is not defined

``` Traceback (most recent call last): > File "/srv/pandora/src/django/django/core/handlers/base.py", line 109, in get_response response = callback(request, *callback_args, **callback_kwargs) > File "/srv/pandora/src/python-ox/ox/django/api/views.py", line 48, in api response = f(request, data) > File "/srv/pandora/src/python-ox/ox/django/decorators.py", line 18, in _wrapped_view return function(request, *args, **kwargs) > File "/srv/pandora/pandora/place/views.py", line 184, in removePlace add_changelog(request, data) > File "/srv/pandora/pandora/changelog/models.py", line 32, in add_changelog c = Log(user=user, action=action, data=data) > File "/srv/pandora/src/django/django/db/models/base.py", line 357, in *init* setattr(self, field.attname, val) > File "/srv/pandora/src/django/django/db/models/fields/subclassing.py", line 34, in *set* obj.*dict*[]self.field.name = self.field.to_python(value) > File "/srv/pandora/src/python-ox/ox/django/fields.py", line 62, in to_python value = eval(value) > File "<string>", line 1, in <module> <NameError>: name 'CAE' is not defined ```
j added the
backend
label 2015-05-28 10:59:26 +00:00
j added this to the 14.04 milestone 2015-05-28 10:59:26 +00:00
j self-assigned this 2015-05-28 10:59:26 +00:00
j added the
normal
defect
labels 2015-05-28 10:59:26 +00:00
Owner

In [pandora,4995]changeset:"pandora,4995":

#!CommitTicketReference repository="" revision="pandora,4995"
dont turn data into string, fixes #2797
In [pandora,4995]changeset:"pandora,4995": ``` #!CommitTicketReference repository="" revision="pandora,4995" dont turn data into string, fixes #2797 ```
j added the
fixed
label 2015-05-28 11:10:52 +00:00
j closed this issue 2015-05-28 11:10:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#2797
No description provided.