tw.dynforms new tutorial using turbogears2 and sqlalchemy (file attached)

3 views
Skip to first unread message

Simone Mainardi

unread,
Oct 10, 2009, 6:30:13 AM10/10/09
to toscawidge...@googlegroups.com
I'm sorry for this new post but I was not receiving mails from this
group so I have not the old post on my mua.
You can find the tutorial in attachment. Hope it helps someone

--
Quis custodiet ipsos custodes?

tutorial.rst

Simone Mainardi

unread,
Oct 11, 2009, 6:44:08 AM10/11/09
to toscawidge...@googlegroups.com
new file with minor fixes, thanks to Richard!
tutorial_new.rst

Ed Valentine

unread,
Oct 12, 2009, 5:10:29 PM10/12/09
to ToscaWidgets-discuss

I am working through your tutorial. I believe I have the correct
display it the browser but I am stumped at the point you say "We need
to link to this page from the front page. Lets add another column to
the table,
'ID', where the ID is a link to the detail form."

When I add the lines to order.py;
@property
def id_link(self):
return genshi.XML('<a href="order?id=%d">%d</a>' % (self.id,
self.id))

And refer to the field, I get AttributeError: 'Order' object has no
attribute 'id_link' , and the administration form does not show the
field. What am I missing?

Any suggestions?

Thanks


On Oct 11, 5:44 am, Simone Mainardi <simonemaina...@gmail.com> wrote:
> new file with minor fixes, thanks to Richard!
>
> On Sat, Oct 10, 2009 at 12:30 PM, Simone Mainardi
>
> <simonemaina...@gmail.com> wrote:
> > I'm sorry for this new post but I was not receiving mails from this
> > group so I have not the old post on my mua.
> > You can find the tutorial in attachment. Hope it helps someone
>
> > --
> > Quis custodiet ipsos custodes?
>
> --
> Quis custodiet ipsos custodes?
>
>  tutorial_new.rst
> 22KViewDownload

Ed Valentine

unread,
Oct 13, 2009, 3:53:46 PM10/13/09
to ToscaWidgets-discuss
The error is mine. It was in the Python syntax. (maybe that should be
sin tax)
Reply all
Reply to author
Forward
0 new messages