yes. Do not do it. ;-) Massimo
On Dec 16, 10:00 am, "Yarko Tymciurak" <[email protected]> wrote: > On Tue, Dec 16, 2008 at 9:51 AM, mdipierro <[email protected]> wrote: > > > about T3 > > self.update always make an update form for one single record. The > > query should return a single record. > > > about T2 (self in T3 is t2 in T2) > > t2.update always make an update form for one single record. The query > > should return a single record. > > > about web2py (not T2, T3, etc) > > db(query).update(....) updates all records that match a query > > row.update_record(...) updates only the row in question > > row.update(...) ### WARNING never do this! > > and: > db.table_name.update(...) > (and row.update(...)???) > > updates the table definition... > > Is that correct? > > > > > Massimo > > > On Dec 16, 9:21 am, "Yarko Tymciurak" <[email protected]> wrote: > > > wow... I am only just beginning to appreciate the confusion of all the > > > situations of update: update a record; update a record set; > > update_record, > > > and update a table definition... > > > we may need a little article... > > > > On Tue, Dec 16, 2008 at 5:58 AM, mdipierro <[email protected]> > > wrote: > > > > > {{=self.update(db.friend)}} > > > > > by default it determines the record it from the URL 'http://..../wiki/ > > > > page/34' request.args[-1]. > > > > > You can also specify the record using a query > > > > > {{=self.update(db.friend,query=db.friend.id==34)}} > > > > > On Dec 16, 5:51 am, Atanasius <[email protected]> wrote: > > > > > Hello! > > > > > CREATE works like supposed using "{{=self.create(db.friend)}}". But > > > > > how can I call an UPDATE page for a record? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

