Re: Class Methods in Model?

2006-02-14 Thread Roberto Aguilar
Awesome, works great. Thanks for the help, guys! -berto. On 2/14/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 2/14/06, Eric Walstad <[EMAIL PROTECTED]> wrote: > > Hey Berto, > > > > > > And magic-removal, as

Re: Class Methods in Model?

2006-02-14 Thread James Bennett
On 2/14/06, Eric Walstad <[EMAIL PROTECTED]> wrote: > Hey Berto, > > And magic-removal, as far as I understand it, will do away with the need for that. Hooray! -- "May the forces of evil become confused on the way to

Re: Class Methods in Model?

2006-02-14 Thread Eric Walstad
On Tuesday 14 February 2006 10:23, Roberto Aguilar wrote: > Hello, > > I have a model called Invitation that I would like to have a method > called make_rsvp_code. In the model I define it as such: > > class Invitation(meta.Model): > [...] > > def make_rsvp_code(self, invitation): >

Class Methods in Model?

2006-02-14 Thread Roberto Aguilar
Hello, I have a model called Invitation that I would like to have a method called make_rsvp_code. In the model I define it as such: class Invitation(meta.Model): [...] def make_rsvp_code(self, invitation): [...] make_rsvp_code = classmethod(make_rsvp_code) The reason I