Python API cannot convert list to Atlas data

Bug #385883 reported by Alexey Torkhov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cyphesis
Invalid
Medium
Al Riddoch

Bug Description

The following call in task:
set = Operation("set", Entity(self.character.id, tasks = [{"name": "twist", "param": "value"}], to = self.character))

is failing with:
2009-06-11T15:06:01 SCRIPT_ERROR Traceback (most recent call last):
2009-06-11T15:06:01 SCRIPT_ERROR File "/home/alex/local/cyphesis/share/cyphesis/rulesets/mason/world/tasks/Twist.py", line 60, in tick_operation
2009-06-11T15:06:01 SCRIPT_ERROR set = Operation("set", Entity(self.character.id, tasks = [{"name": "twist", "param": "value"}], to = self.character))
2009-06-11T15:06:01 SCRIPT_ERROR TypeError: Arg has no type.

Al Riddoch (alriddoch)
Changed in cyphesis:
assignee: nobody → Al Riddoch (alriddoch)
importance: Undecided → Medium
milestone: none → 0.5.21
status: New → Confirmed
Revision history for this message
Al Riddoch (alriddoch) wrote :

Having looked deeper into the code, it seems the problem is not with convering the tasks list, but with the keyword argument "to" which is being passed to the Entity constructor in error, rather than the Operation constructor as it should be.

set = Operation("set", Entity(self.character.id, tasks = [{"name": "twist", "param": "value"}]), to = self.character)

Changed in cyphesis:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.