On Thu, Mar 09, 2006 at 12:08:56AM -0000, Michele Cella wrote: > > Jason Chu wrote: > > > > [EMAIL PROTECTED] turbogears]$ svn info > > Path: . > > URL: http://www.turbogears.org/svn/turbogears/trunk > > Repository Root: http://www.turbogears.org/svn/turbogears > > Repository UUID: 77541ad4-5f01-0410-9ede-a1b63cd9a898 > > Revision: 918 > > Node Kind: directory > > Schedule: normal > > Last Changed Author: michele > > Last Changed Rev: 918 > > Last Changed Date: 2006-03-08 13:50:00 -0800 (Wed, 08 Mar 2006) > > Properties Last Updated: 2006-02-08 15:30:08 -0800 (Wed, 08 Feb 2006) > > Conflict Properties File: dir_conflicts.prej > > > > That's very strange, can you check if your Form templates are right? I > mean if they have action=${action}... > > Finally, since Trac is giving me a strange error while trying to reply, > try that: > > svn diff > ../../your-bck.patch > svn revert -R * > svn up > > and try again just to be sure there is nothing wrong. > > Going to sleep. > > Ciao > Michele
Right after running those commands, running nosetests in turbogears/widgets
outputs:
[EMAIL PROTECTED] widgets]$ nosetests
..........................................FEE................
======================================================================
ERROR: tests.test_nested_form_controllers.test_form_translation_new_style
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/nose-0.8.4-py2.4.egg/nose/core.py", line
113, in runTest
self.testFunc()
File
"/home/jchu/coding/turbogears/turbogears/widgets/tests/test_nested_form_controllers.py",
line 44, in test_form_translation_new_style
assert root.name == "ed"
AttributeError: 'MyRoot' object has no attribute 'name'
-------------------- >> begin captured stdout << ---------------------
08/Mar/2006:18:41:01 HTTP INFO Page handler: "The path
'/testform_new_style' was not found."
Traceback (most recent call last):
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 99, in _run
self.main()
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 240, in main
page_handler, object_path, virtual_path = self.mapPathToObject(path)
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 305, in mapPathToObject
raise cherrypy.NotFound(objectpath)
NotFound: 404
Request Headers:
Host: localhost
localhost - - [08/Mar/2006:18:41:01] "GET
/testform_new_style?p_data.name=ed&p_data.age=5 HTTP/1.1" 404 1291
--------------------- >> end captured stdout << ----------------------
======================================================================
ERROR:
tests.test_nested_form_controllers.test_invalid_form_with_error_handling
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/nose-0.8.4-py2.4.egg/nose/core.py", line
113, in runTest
self.testFunc()
File
"/home/jchu/coding/turbogears/turbogears/widgets/tests/test_nested_form_controllers.py",
line 52, in test_invalid_form_with_error_handling
assert root.has_errors
AttributeError: 'MyRoot' object has no attribute 'has_errors'
-------------------- >> begin captured stdout << ---------------------
08/Mar/2006:18:41:01 HTTP INFO Page handler: "The path
'/testform_new_style' was not found."
Traceback (most recent call last):
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 99, in _run
self.main()
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 240, in main
page_handler, object_path, virtual_path = self.mapPathToObject(path)
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 305, in mapPathToObject
raise cherrypy.NotFound(objectpath)
NotFound: 404
Request Headers:
Host: localhost
localhost - - [08/Mar/2006:18:41:01] "GET
/testform_new_style?p_data.name=ed&p_data.age=edalso HTTP/1.1" 404 1291
--------------------- >> end captured stdout << ----------------------
======================================================================
FAIL: tests.test_link_inclusion.test_table_widget_js
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/nose-0.8.4-py2.4.egg/nose/core.py", line
113, in runTest
self.testFunc()
File
"/home/jchu/coding/turbogears/turbogears/widgets/tests/test_link_inclusion.py",
line 28, in test_table_widget_js
assert 'foo.js' in output
AssertionError:
-------------------- >> begin captured stdout << ---------------------
08/Mar/2006:18:41:01 HTTP INFO Page handler: "The path '/test' was not
found."
Traceback (most recent call last):
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 99, in _run
self.main()
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 240, in main
page_handler, object_path, virtual_path = self.mapPathToObject(path)
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 305, in mapPathToObject
raise cherrypy.NotFound(objectpath)
NotFound: 404
Request Headers:
Host: localhost
localhost - - [08/Mar/2006:18:41:01] "GET /test HTTP/1.1" 404 1263
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8"></meta>
<title>404 Not Found</title>
<style type="text/css">
#powered_by {
margin-top: 20px;
border-top: 2px solid black;
font-style: italic;
}
#traceback {
color: red;
}
</style>
</head>
<body>
<h2>404 Not Found</h2>
<p>The path '/test' was not found.</p>
<pre id="traceback">Page handler: "The path '/test' was not found."
Traceback (most recent call last):
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 99, in _run
self.main()
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 240, in main
page_handler, object_path, virtual_path = self.mapPathToObject(path)
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py",
line 305, in mapPathToObject
raise cherrypy.NotFound(objectpath)
NotFound: 404
</pre>
<div id="powered_by">
<span>Powered by <a href="http://www.cherrypy.org">CherryPy
2.2.0rc1</a></span>
</div>
</body>
</html>
--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 61 tests in 2.540s
FAILED (failures=1, errors=2)
If I add my mylocation patch I get the same output. It seems the action
variable is being read now...
And now it's working on my end too... very very strange... You can close
the ticket, I suppose.
Jason
--
If you understand, things are just as they are. If you do not understand,
things are just as they are.
pgpqQo9sOv8Oq.pgp
Description: PGP signature

