On 10/27/05, Aggelos Orfanakos <[EMAIL PROTECTED]> wrote:
> Here are my 3 current TG questions. I hope they have not been answered
> before (I did try to search the old posts).
>
> 1. Is there any decent documentation of SQLObject? I mean true
> reference. For example, I found nowhere how to delete a row [1]. Or how
> to update a field that has a many-to-many relationship (RelatedJoin).
SQLObject is a big topic, and the document at SQLObject.org covers the
major points, but it's certainly not exhaustive. You can get some more
insight by looking at the API reference at TurboGears.org.
You can do book.destroySelf(), if you have an instance in hand.
> 2. When TG is installed, it also installs SQLite right? If yes, is
> there a way to have it use SQLite 3 if I install it? And if yes, is
> there a way to remove the old SQLite?
Actually, TurboGears does not install any database. One of the
documentation improvements that will happen is that it will be clearer
on the site that no database comes with TurboGears and there will be
instructions on how to get set up for various databases. I believe the
wiki already has some instructions.
easy_install pysqlite
may do the trick for you.
> 3. In Kid, there is no difference between <element
> py:attrs="attribute=value" /> and <element attribute="${value}" />. The
> same goes for <element py:content="foobar" /> and
> <element>${foobar}</element>. So, is it just a matter of taste? Or some
> ways are better than others in certain situations?
There's no functional difference, when it comes to rendered output.
The difference is at design time. If you'd like to use the templates
in your browser, using py:attrs and py:content works better because
you can have functional placeholders there.
Kevin