[gen] Added for Ref field, param 'insert' that defines at what position a newly tied object is inserted among referred objects.

This commit is contained in:
Gaetan Delannay 2014-06-24 17:07:59 +02:00
parent 477db8a21c
commit 98b748cfb1
3 changed files with 75 additions and 41 deletions

View file

@ -135,7 +135,7 @@ class BaseMixin:
for field in self.getAllAppyTypes():
if field.type != 'Ref': continue
for obj in field.getValue(self):
field.back.unlinkObject(obj, self, back=True)
field.back.unlinkObject(obj, appyObj, back=True)
# Uncatalog the object
self.reindex(unindex=True)
# Delete the filesystem folder corresponding to this object