[TurboGears] Re: dynamically adding widget fields at runtime?

2007-06-22 Thread Chris Miles
On 21 Jun 2007, at 08:12, iain duncan wrote: Thanks Diez ( again! ). What I would really like to do is make the number of some certain fields vary with a dynamic value from the db. I'm not clear from the above whether that is possible. Does the example above mean that the number of

[TurboGears] Re: TG commits sqlalchemy objects after leaving controller.

2007-06-22 Thread Paul Johnston
Hi Sam, This is expected behavior. If you're using ActiveMapper/assignmapper (actually anything that uses SessionContextExt), when you create an object, SA automatically binds it to the current session. You can use session.clearor session.expunge, as you've discovered. I believe there is also a

[TurboGears] Re: TG commits sqlalchemy objects after leaving controller.

2007-06-22 Thread Lee McFadden
On 6/21/07, SamDonaldson [EMAIL PROTECTED] wrote: Hello, I ran into a complex bug where I found the following: I wrote a query in my model.py where I return a list of tuples that sqlalchemy returns to me, and then, to convert those tuples into objects, I wrap my sqlalchemy class

[TurboGears] Re: -2, Name or service not known

2007-06-22 Thread Christopher Arndt
andresj schrieb: Hello, I tried the 20 Minute Wiki tutorial, but when i run 'python start-andresj.py' (andresj was the name of the project), it had an error: socket.gaierror: (-2, 'Name or service not known') can someone help me please? thank you in advance... :) Maybe there is something

[TurboGears] -2, Name or service not known

2007-06-22 Thread andresj
Hello, I tried the 20 Minute Wiki tutorial, but when i run 'python start-andresj.py' (andresj was the name of the project), it had an error: socket.gaierror: (-2, 'Name or service not known') that was the last line of the error message. all the info was: 2007-06-21 18:55:49,141 cherrypy.msg

[TurboGears] TGNewTraversal - child_* problem

2007-06-22 Thread remi jolin
Hello, I'm trying to use TGNewTraversal and need some explaination : My urls have the following form : /X, /X/admin, /X/admin/subadmin, /X/update, etc... I first played with childFactory and it works well for the X level. class Root(RootResource): ... def childFactory(self, id): return

[TurboGears] Re: function takes exactly 5 arguments error

2007-06-22 Thread Glenn
Thanks all. I have switched to use SQLAchemy.Your help is appreciated. I am now able to query the database. Now I just need to learn everything else ;) On Jun 21, 9:51 am, Bruce Webber [EMAIL PROTECTED] wrote: Glenn, Can you show us the controller method which exposes the template?

[TurboGears] ANN: tgcrud goes 1.0

2007-06-22 Thread gasolin
Hi, I'd like to inform you that tgcrud, the TurboGears CRUD(create, read, update, delete) interface generator, was released the 1.0 version. With tgcrud you could get the rapid admin interface(a package of controller.py and templates set) based on your model. It makes you repeat less on basic

[TurboGears] Re: ANN: tgcrud goes 1.0

2007-06-22 Thread iain duncan
On Fri, 2007-22-06 at 17:36 +, gasolin wrote: Hi, I'd like to inform you that tgcrud, the TurboGears CRUD(create, read, update, delete) interface generator, was released the 1.0 version. With tgcrud you could get the rapid admin interface(a package of controller.py and templates set)

[TurboGears] How to use XLST stylesheet (or other browser display approach) with RSS 2.0 from FeedContorller ?

2007-06-22 Thread buffalob
With latest versions of Firefox and Internet Explorer, the raw RSS 2.0 feeds that I generate using a class extended from FeedController can be displayed directly in the browser. However, when using slightly older versions of those browsers the RSS 2.0 apparently isn't able to be displayed in the

[TurboGears] Re: How to use XLST stylesheet (or other browser display approach) with RSS 2.0 from FeedContorller ?

2007-06-22 Thread Christopher Arndt
buffalob schrieb: Or other suggested approach ideas for me? I think you're missing the point. RSS feeds are not for direct display. If you want to display the data in a RSS feed, send it through another Kid/Genshi template that generates (X)HTML. Chris

[TurboGears] Re: ANN: tgcrud goes 1.0

2007-06-22 Thread gasolin
Fred, that sounds great, I'm going to check it out today! Quick question, how does tgcruds url scheme stack up as a restful interface? Is is done in a form that makes sense to extend for web serviced scenarios? Thanks so much! Yay SA + crud! Iain There's a mindmap figure in doc site to

[TurboGears] Re: How to use XLST stylesheet (or other browser display approach) with RSS 2.0 from FeedContorller ?

2007-06-22 Thread buffalob
Thanks Chris. I understand that very well, but some users of my feeds might want direct visual display before deciding whether to subscribe to it. Some readers have preview but others don't. Latest browser versions make this irrelevant and automatically will display my TG-generated RSS feed

[TurboGears] Django Book

2007-06-22 Thread Richard
hi, I noticed Django has a free online version of their book: http://www.djangobook.com/en/beta/ Will TurboGears do this eventually? Are there license restrictions with Prentice Hall? I have the TurboGears book but my online Safari version will expire soon. Richard

[TurboGears] Accessing SQLObject attributes in Kid?

2007-06-22 Thread Chris
I have a very simple Kid template with the tag: title Viewing ${video.video_name}/title which CherryPy complains, AttributeError: 'SelectResults' object has no attribute 'video_name' However, if I replace this tag with: title ${video}/title then the page shows the whole record, including the

[TurboGears] defaults ignored when creating a table with SQLAlchemy

2007-06-22 Thread Todd Martin
I'm not sure if this is intentional behavior, but when I run tg-admin sql create the column default settings are not being added to the table. I define a column like this... Column(bookmark, Boolean, default=False, index=True), If the Turbogears program was the only program to insert into