Fix bug in spawning with attributes
This commit is contained in:
parent
7133492630
commit
b5c6a483ac
1 changed files with 2 additions and 1 deletions
|
|
@ -733,8 +733,9 @@ def spawn(*prototypes, **kwargs):
|
||||||
val = make_iter(prot.pop("attrs", []))
|
val = make_iter(prot.pop("attrs", []))
|
||||||
attributes = []
|
attributes = []
|
||||||
for (attrname, value, category, locks) in val:
|
for (attrname, value, category, locks) in val:
|
||||||
attributes.append((attrname, init_spawn_value(val), category, locks))
|
attributes.append((attrname, init_spawn_value(value), category, locks))
|
||||||
|
|
||||||
|
print("attributes to spawn: IN: {}, OUT: {}".format(val, attributes))
|
||||||
simple_attributes = []
|
simple_attributes = []
|
||||||
for key, value in ((key, value) for key, value in prot.items()
|
for key, value in ((key, value) for key, value in prot.items()
|
||||||
if not (key.startswith("ndb_"))):
|
if not (key.startswith("ndb_"))):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue