Hi...
I am back with a new qusetion...
i created a CRUD to create and edit the records in Oracle database.
when i try to insert the error i get is
------------------------------------------------------------------------
500 Internal error
The server encountered an unexpected condition which prevented it from
fulfilling the request.
Page handler: <bound method SwitchController.save of
<killermobileapp.SwitchController.controllers.SwitchController object
at 0x0181EE70>>
Traceback (most recent call last):
File "c:\python24\lib\site-packages\CherryPy-2.2.1-py2.4.egg\cherrypy
\_cphttptools.py", line 105, in _run
self.main()
File "c:\python24\lib\site-packages\CherryPy-2.2.1-py2.4.egg\cherrypy
\_cphttptools.py", line 254, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in save
File "c:\python24\lib\site-packages\TurboGears-1.0.2.2-py2.4.egg
\turbogears\controllers.py", line 173, in validate
return errorhandling.run_with_errors(errors, func, *args, **kw)
File "c:\python24\lib\site-packages\TurboGears-1.0.2.2-py2.4.egg
\turbogears\errorhandling.py", line 113, in run_with_errors
return func(self, *args, **kw)
File "<string>", line 3, in save
File "c:\python24\lib\site-packages\TurboGears-1.0.2.2-py2.4.egg
\turbogears\controllers.py", line 334, in expose
output = database.run_with_transaction(
File "<string>", line 5, in run_with_transaction
File "c:\python24\lib\site-packages\TurboGears-1.0.2.2-py2.4.egg
\turbogears\database.py", line 354, in sa_rwt
retval = dispatch_exception(e,args,kw)
File "c:\python24\lib\site-packages\TurboGears-1.0.2.2-py2.4.egg
\turbogears\database.py", line 343, in sa_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "c:\python24\lib\site-packages\TurboGears-1.0.2.2-py2.4.egg
\turbogears\controllers.py", line 351, in <lambda>
mapping, fragment, args, kw)))
File "c:\python24\lib\site-packages\TurboGears-1.0.2.2-py2.4.egg
\turbogears\controllers.py", line 378, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File "c:\python24\lib\site-packages\TurboGears-1.0.2.2-py2.4.egg
\turbogears\errorhandling.py", line 73, in try_call
return func(self, *args, **kw)
File "F:\project\turbogears\KillerMobileApp\killermobileapp
\SwitchController\controllers.py", line 122, in save
record = Switch.get(int(id))
File "build\bdist.win32\egg\sqlalchemy\ext\assignmapper.py", line 7,
in do
File "build\bdist.win32\egg\sqlalchemy\orm\query.py", line 103, in
get
File "build\bdist.win32\egg\sqlalchemy\orm\query.py", line 944, in
_get
IndexError: list index out of range
-------------------------------------------------
Has anyone encountered this and what is teh solution...
Thanks....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---