On Apr 29, 2007, at 8:32 AM, Antipin Aleksei wrote:

> Here I get error *<type 'exceptions.AttributeError'>: type object
> 'BaseController' has no attribute 'user'*
>
> In BaseController I tried "user = classmethod(user)", in  
> IndexController
> - self.user(), self.user(self), BaseController.user(),
> BaseController.user(self)
>
> Could anybody point to some silly mistake here?

That definitely should work, can you try throwing a 'raise' in your  
subclassed method and do a dir() on the controller in the interactive  
debugger? The thing you want to check, is that your controller is  
inheriting from the right class in the right path. Ie. is it possible  
you have an older version of the app without that attribute on the  
PYTHONPATH that is being imported instead of yours?

HTH,
Ben

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to