pshung29 / turbocare

Automatically exported from code.google.com/p/turbocare
0 stars 0 forks source link

Enter one-line summary #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. New catalog items are not getting created.
2. This happens while trying to create a new sub-item in the category as
follows: Engineering > Electrical > Fittings, the parent item being 'Fittings'.

What is the expected output? What do you see instead?
Page handler: <function _wrapper at 0x2aaab14e2140>
Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools
.py",
line 105, in _run
    self.main()
  File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools
.py",
line 254, in main
    body = page_handler(*virtual_path, **self.params)
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/identity/c
onditions.py",
line 275, in _wrapper
    return fn( *args, **kw )
  File "<string>", line 3, in CatalogItemsEditorSave
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/controller
s.py",
line 334, in expose
    output = database.run_with_transaction(
  File "<string>", line 5, in run_with_transaction
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/database.p
y",
line 260, in so_rwt
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/controller
s.py",
line 351, in <lambda>
    mapping, fragment, args, kw)))
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/controller
s.py",
line 378, in _execute_func
    output = errorhandling.try_call(func, *args, **kw)
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/errorhandl
ing.py",
line 73, in try_call
    return func(self, *args, **kw)
  File "<string>", line 3, in CatalogItemsEditorSave
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/controller
s.py",
line 173, in validate
    return errorhandling.run_with_errors(errors, func, *args, **kw)
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/errorhandl
ing.py",
line 113, in run_with_errors
    return func(self, *args, **kw)
  File "<string>", line 3, in CatalogItemsEditorSave
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/identity/c
onditions.py",
line 235, in require
    return fn(self, *args, **kwargs)
  File
"/usr/lib/python2.4/site-packages/turbocare-1.0-py2.4.egg/turbocare/controllers_
store.py",
line 301, in CatalogItemsEditorSave

Tax=Tax,ParentItemID=ParentItemID,CompoundID=CompoundID,PackagingID=PackagingID)
  File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/d
eclarative.py",
line 93, in _wrapper
    return fn(self, *args, **kwargs)
  File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/m
ain.py",
line 1197, in __init__
    self._create(id, **kw)
  File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/m
ain.py",
line 1221, in _create
    self.set(**kw)
  File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/m
ain.py",
line 1099, in set
    raise AttributeError, '%s (with attribute %r)' % (e, name)
AttributeError: 'InvCatalogItem' object has no attribute 'id' (with
attribute 'ParentItemID')

What version of the product are you using? On what operating system?
Version: 186

Please provide any additional information below.

Original issue reported on code.google.com by lallsam...@gmail.com on 12 Feb 2007 at 6:26

GoogleCodeExporter commented 8 years ago
Just some questions to clarify what is happening:
1. The error only happens when entering a "New sub item" for the "Fittings"?  
That
is, it works to add new sub items for "Electrical"?

2. If you add a new sub item for Electrical (call it "Temp") and then add new 
sub
items to "Temp", so you also get errors?

I haven't been able to reproduce this error.

Original comment by umpen...@gmail.com on 13 Feb 2007 at 12:51

GoogleCodeExporter commented 8 years ago
Please update to latest revision and see if it is still a problem.  It looks 
like it
is related to issue #9.  I'll mark it as a duplicate for now until you confirm 
that
the latest version also has the same problem.

Original comment by umpen...@gmail.com on 13 Feb 2007 at 1:10