Oleg Broytmann schrieb: > return super(User, self).by_user_name(user_name)
The problem is that I can't override the method by_user_name() so my custom method will never be called. Nevertheless, your corrections regarding the call to the super method are correct. Lee McFadden sent my a perfect solution for my problem. The trick is to use alternateMethodName correctly: user_name = UnicodeCol(length=16, alternateID=True, alternateMethodName="_by_user_name") After that I can define a custom method by_user_name() and everythings works :-) Only one question left: Why is by_user_name() (in the example above "_by_user_name()") no normal method which can be overriden? How is this mechanism called? I would like to google a bit on this topic to understand Python's inner workings. Thanks for your help fs ------------------------------------------------------------------------- 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
