Hi,
I solved the problem, but I do not understand why it works now.
In UserController:
---
class Root(controllers.RootController):
@expose()
def index(self, *args, **kw):
raise redirect('/user')
user = UserController()
---
class UserController(identity.SecureResource):
@expose(template="myproject.templates.user.index")
def index(self):
return dict(hello="Hello world")
---
I replaced "UserController(identity.SecureResource):" with
"UserController(controllers.RootController):".
Regards,
Bostjan
2007/10/3, Florent Aide <[EMAIL PROTECTED]>:
>
> On 9/27/07, Bostjan Kaluza <[EMAIL PROTECTED]> wrote:
> >
> > On Thu, 27 Sep 2007 19:47:02 +0200, Florent Aide <[EMAIL PROTECTED]>
> > wrote:
>
> [...]
>
> > > Did you run either:
> > >
> > > python setup.py develop
> > > or
> > > python setup.py install
> > >
> > > in your project folder ?
> > >
> > > Florent.
> > >
> >
> > No, I didn't. Why is this necessary? Now I tried both but error is still
> > the same.
>
> This is recommended. In a prod envirronment you install your egg so
> running develop ensures you have your app in the Python path like it
> will be when in production.
> It helps using absolute imports everywhere (including in plugins which
> are not necessarily in your application folder or egg)
>
> Are you sure to have the same configuration options on both machines ?
> Maybe you did not activate identity on the second machine or
> something...
>
> Regards,
> Florent.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---