On Thu, Dec 14, 2006 at 10:27:39PM +0300, Oleg Broytmann wrote:
>by_user_name is a method, so you have to call it:
>
> return super(User, self).by_user_name()
return super(User, self).by_user_name(user_name)
Oleg.
--
Oleg Broytmannhttp://phd.pp.ru/
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 = u
Hi,
I tried to override a query method (by_user_name) but that didn't work as expected (see
example attached). This is with Python 2.4.4 and SQLObject 0.7 on Fedora Core 6 (x86_64).
Is it possible at all? Any workarounds? Am I missing something?
fs
PS: I'm using SQLObject in a scenario where
On Thu, Dec 14, 2006 at 02:34:52PM +0100, sophana wrote:
> Too bad these methods don't have docstrings!
Please write a few lines.
Oleg.
--
Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-
Luke Opperman a écrit :
> Indeed, documentation on SelectResults is pretty sparse -
> http://www.sqlobject.org/class-sqlobject.sresults.SelectResults.html is about
> it. I'm a heavy abuser of it, I'll see if I can write up some docs in the next
> few days.
>
>
>
Too bad these methods don't have