Re: monkey patching with @classmethod

2010-03-03 Thread gentlestone
On 3. Mar., 13:09 h., Bruno Desthuilliers wrote: > gentlestone a écrit : > > > > > Hi, is there some well-known problems with class method monkey > > patching? > > > I've got this error message: > > > unbound method get_pocet_neocislovanych() must be called with Pozemok > > instance as first argum

Re: monkey patching with @classmethod

2010-03-03 Thread gentlestone
On 3. Mar., 12:57 h., gentlestone wrote: > Hi, is there some well-known problems with class method monkey > patching? > > I've got this error message: > > unbound method get_pocet_neocislovanych() must be called with Pozemok > instance as first argument (got Subjekt instance instead) > > The metho

Re: monkey patching with @classmethod

2010-03-03 Thread Bruno Desthuilliers
gentlestone a écrit : Hi, is there some well-known problems with class method monkey patching? I've got this error message: unbound method get_pocet_neocislovanych() must be called with Pozemok instance as first argument (got Subjekt instance instead) The method is declared as: @classmethod

monkey patching with @classmethod

2010-03-03 Thread gentlestone
Hi, is there some well-known problems with class method monkey patching? I've got this error message: unbound method get_pocet_neocislovanych() must be called with Pozemok instance as first argument (got Subjekt instance instead) The method is declared as: @classmethod @monkeypatch(Dokument) def