Re: [SQLObject] Insert/Update an object from a dictionary
dummy-code from the tg-crud template: def save(self, id=None, **kw): """Save or create record to model""" #update kw #create if not id: Eins(**kw) flash("Eins was successfully created.") raise redirect("list") #update
[SQLObject] Insert/Update an object from a dictionary
Speaking of dictionary-based object methods - reference http://wiki.sqlobject.org/dictionarymapping.html is this INSERT only, or does it somehow also work for UPDATE, as the link reference would seem to indicate? Anbody ever used this? TIA cs -