On Sat, Jan 17, 2009 at 00:02, eli <elliott.rosent...@gmail.com> wrote: > > Hi, > > I cant complete something seemingly very simple. > I simply want to create the following object (Auction) > > auction =Auction(title, desc) > > > class Auction(db.Model): > > title = db.StringProperty() > description = db.StringProperty() > > def __init__(self, title, desc): > self.title = title > self.desc = desc
You don't generally need to touch the __init__ function of your models, You use them like this: class Auction(db.Model): title = db.StringProperty() description = db.StringProperty() Then when you need your aution model, you just do: auction = Auction(title="Title", description="description") HTH. -- Joe --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---