You cannot update the result of a JOIN.

On Nov 26, 5:55 pm, "Tito Garrido" <[EMAIL PROTECTED]> wrote:
> Hey DenisL,
>
> What about the update method?
> db((db.character.id==1)&(db.character.id
> ==db.characterHasAttribute.id_character)&(db.characterHasAttribute.id_attribute==3)).update(characterHasAttribute.total_value=2)
>
> Doesn't work...
>
> On Wed, Nov 26, 2008 at 10:36 AM, Tito Garrido <[EMAIL PROTECTED]>wrote:
>
>
>
> > Oh, thanks DenesL. I did a dir(new) but I didn't notice that :)
>
> > Thanks!
>
> > On Tue, Nov 25, 2008 at 10:27 PM, DenesL <[EMAIL PROTECTED]> wrote:
>
> >> Tito,
>
> >> change:
> >> new.update_record(characterHasAttribute.total_value=2)
>
> >> to:
> >> new.characterHasAttribute.update_record(total_value=2)
>
> >> Do a dir(new) and you will see why.
>
> > --
> > Linux User #387870
> > .........____
> > .... _/_õ|__|
> > ..º[ .-.___.-._| . . . .
> > .__( o)__( o).:_______
>
> --
> Linux User #387870
> .........____
> .... _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:_______
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to