Hi,
I have web page writen in TG and it works fine. When I install TG on
another machine and copy web page sources I get error
---
Page handler: "The path '/user' was not found."
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/
_cphttptools.py", line 105, in _run
    self.main()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/
_cphttptools.py", line 246, in main
    page_handler, object_path, virtual_path =
self.mapPathToObject(path)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/
_cphttptools.py", line 312, in mapPathToObject
    raise cherrypy.NotFound(objectpath)
NotFound: 404
---

Like I said, on my computer everything works fine, the problem is on
another computer and I did not change code when I copy. Version of
CherryPy is same on the both machines - 2.2.1.

Root controller file:
---
from turbogears import controllers, expose, flash
from turbogears import identity, redirect
from cherrypy import request, response
from myproject.subcontrollers.user import UserController

class Root(controllers.RootController):
        @expose()
        def index(self, *args, **kw):
                raise redirect('/user')

        user  = UserController()
---

User subcontroller:
---
from turbogears import controllers, expose, flash
from turbogears import identity, redirect
from cherrypy import request, response

class UserController(identity.SecureResource):
        @expose(template="myproject.templates.user.index")
        def index(self):
                       return dict(hello="Hello world")
---

What could be the probem?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to