return [y for y in list(collections.collection_adapter(item))]
def get_history(self, state, passive=False):
- if self.key in state.dict:
- return _create_history(self, state, state.dict[self.key])
+ current = self.get(state, passive=passive)
+ if current is PASSIVE_NORESULT:
+ return (None, None, None)
else:
- current = self.get(state, passive=passive)
- if current is PASSIVE_NORESULT:
- return (None, None, None)
- else:
- return _create_history(self, state, current)
+ return _create_history(self, state, current)
def fire_append_event(self, state, value, initiator):
if self.key not in state.committed_state and self.key in state.dict:
for ext in self.extensions:
ext.remove(instance, value, initiator or self)
- def get_history(self, state, passive=False):
- current = self.get(state, passive=passive)
- if current is PASSIVE_NORESULT:
- return (None, None, None)
- else:
- return _create_history(self, state, current)
-
def delete(self, state):
if self.key not in state.dict:
return
make_task_tree(head, t, {})
ret = [t]
+
+ # add tasks that were in the cycle, but didnt get assembled
+ # into the cyclical tree, to the start of the list
for t2 in cycles:
if t2 not in used_tasks and t2 is not self:
- # add tasks that were in the cycle, but didnt get assembled
- # into the cyclical tree, to the start of the list
- # TODO: no test coverage for this !!
localtask = UOWTask(self.uowtransaction, t2.mapper)
for state in t2.elements:
localtask.append(state, t2.listonly, isdelete=t2._objects[state].isdelete)