Python API cannot convert list to Atlas data
Bug #385883 reported by
Alexey Torkhov
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(
is failing with:
2009-06-11T15:06:01 SCRIPT_ERROR Traceback (most recent call last):
2009-06-11T15:06:01 SCRIPT_ERROR File "/home/
2009-06-11T15:06:01 SCRIPT_ERROR set = Operation("set", Entity(
2009-06-11T15:06:01 SCRIPT_ERROR TypeError: Arg has no type.
Changed in cyphesis: | |
assignee: | nobody → Al Riddoch (alriddoch) |
importance: | Undecided → Medium |
milestone: | none → 0.5.21 |
status: | New → Confirmed |
To post a comment you must log in.
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)