2008/5/2 Christopher Arndt <[EMAIL PROTECTED]>:

> >     If possible, I'd try to get a copy of Mark Ramm's Turbogears book.
> >     He has a number of great examples there that I used to get started
> >     with TG.  Here is a link to it on Amazon:
> >
> >
> > I have been thinking about that, but then not at Amazon. It is cheaper,
> > but takes some time.
> >
> > The book is really good? I read different opinions about it. And it is
> > two years old. Is it still accurate?
> > At the moment I am working with Python Frameworks from Wrox. This does
> > in principal a nice job, but does not go deep enough.
>
> If you speak German, you might also want to have a look at:
>
> http://docs.turbogears.org/1.0/TGBooks#rapid-web-development-mit-python


My German is not very good (but also not very bad). The con is that it will
be more difficult to use, but the pro that it is more up-to-date. I'll
deliberate on both. ;-}
Thanks for the info.


At the moment I have an ugly solution, but it works and I can get back to
this problem when I understand TG (and properly Python) better.

In my kid-file I have:
#####
<element py:strip="" py:if="table=='Dog'">
<script type="text/javascript">
setOwner(${record.owner.id});
</script>
</element>
#####

And in general.js I have:
#####
function setOwner(ownerID) {
var i;

  owner = getElement("form_owner");
  for(i = 0; i < owner.length; ++i) {
    if( owner.options[i].value == ownerID ) {
      owner.options[i].selected = true;
      break;
    }
  }
}
#####

Again, it would be better to do it on the server, but at the moment I do not
know how.

-- 
Cecil Westerhof

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to