Closed GoogleCodeExporter closed 8 years ago
The problem appears to lie in model_inventory.py in the "def
_set_ParentItemID(self,
value):" function. I have commented out this function for now until Wes has a
chance
to look at it.
The code responsible for the error is as follows
def _set_ParentItemID(self, value):
if value==self.id:
if self.ParentItemID==self.id:
value = None
else:
value = self.ParentItemID
value = self.ParentItemID
self._SO_set_ParentItemID(value)
I believe that this code was meant to provide some extra error checking for
ParentItemID but I suspect self.id does not exist when creating new catalogue
items.
Original comment by oneg...@gmail.com
on 1 Feb 2007 at 8:43
Thanks Dave. The code causing the problem will need more checks to make sure
that it
isn't a new item being added.
Original comment by umpen...@gmail.com
on 1 Feb 2007 at 10:47
I've tried a few things to make the code check work, but I haven't found a way
that
works. I'll leave the checks in the section of code that does the saving and
leave
the SQLObject as is (with the check commented out).
If there are no objections, I'll leave this one closed, and move on to other
troubling issues.
Original comment by umpen...@gmail.com
on 13 Feb 2007 at 1:08
Original issue reported on code.google.com by
tushar.c...@gmail.com
on 31 Jan 2007 at 11:47