On Thu, Dec 14, 2006 at 07:36:51PM +0100, Felix Schwarz wrote:
> I tried to override a query method (by_user_name)

   What's the method? Do you mean byUserName?

>     @classmethod
>     def by_user_name(self, user_name):
>         print "FELIX by_user_name(%s)" % user_name
>         user_name = user_name.lower()
>         return super(User, self).by_user_name

   by_user_name is a method, so you have to call it:

        return super(User, self).by_user_name()

   But I think you need a different approach here.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to