[TurboGears] Re: Using Elixir, is there a nice way to specify which columns should be distinct in a select?

2007-12-06 Thread Christoph Zwerschke
Diez B. Roggisch wrote: But as others also already pointed out: TG doesn't impose an ORM layer on you. The newest 1.0.4 beta doesn't even install one anymore. Just point your app to a DB and get happy. One benefit of SO and SA is that they automatically add cross-database compatibility,

[TurboGears] Re: Windows install doesn't work with other users

2007-12-06 Thread Christoph Zwerschke
Paulino wrote: I have a turbogears app running in my windows box. If any other user login's this box, the tg app's doesn't run. It claims there are modules missing. Do I have to isntall turbogears for evry user's profile? I particular it caims about configobj and paste not being

[TurboGears] Re: Invalid URL in Paginate

2007-12-06 Thread Lee McFadden
You should set your form's method to POST instead of GET. This way your form's data will be posted allowing paginate's query variables to use GET without overloading the browser URL. This should solve your problem. Lee -- Lee McFadden blog: http://www.splee.co.uk work:

[TurboGears] Re: Invalid URL in Paginate

2007-12-06 Thread Glauco
Lee McFadden ha scritto: You should set your form's method to POST instead of GET. This way your form's data will be posted allowing paginate's query variables to use GET without overloading the browser URL. This should solve your problem. Lee Obviously.. :-))) Thank you Lee

[TurboGears] Re: Invalid URL in Paginate

2007-12-06 Thread Glauco
Glauco ha scritto: Lee McFadden ha scritto: You should set your form's method to POST instead of GET. This way your form's data will be posted allowing paginate's query variables to use GET without overloading the browser URL. This should solve your problem. Lee

[TurboGears] Re: Invalid URL in Paginate - Solved

2007-12-06 Thread Glauco
Hi all, i've found a solution to the problem of too-long-url. i hope this is useful Paginate function (next_page, top_page, end_page, next_page) create url based on how many field are in the form, using all data from request. cherrypy.request.params.copy() if a form has a lot of field this

[TurboGears] Re: Advice and suggestions wanted on how to build dynamic forms effectively

2007-12-06 Thread Ben Sizer
On Dec 6, 7:47 am, Paul Johnston [EMAIL PROTECTED] wrote: I have a table of data, where I want the end user to be able to edit a field in a particular one of the columns. A good example would be a shopping cart with a quantity field for each item in the cart. One approach is to build the

[TurboGears] Re: Invalid URL in Paginate

2007-12-06 Thread Lee McFadden
On Dec 6, 2007 10:18 AM, Glauco [EMAIL PROTECTED] wrote: This is true ONLY for submit action... but I've done a deeper analisys on paginate and paginate use a link !!! a href=${tg.paginate.get_href(1)}lt;lt;/a so the problem isn't solved :-( My question is this: Why do you

[TurboGears] Re: Advice and suggestions wanted on how to build dynamic forms effectively

2007-12-06 Thread Jorge Godoy
Em Thursday 06 December 2007 10:16:42 Ben Sizer escreveu: How does one create Widgets? This doesn't seem to be documented. Perhaps it's in The Book (I don't have it with me, and can't check). It is. The first two links from Google on turbogears widgets create:

[TurboGears] Re: Advice and suggestions wanted on how to build dynamic forms effectively

2007-12-06 Thread Ben Sizer
On Dec 6, 12:25 pm, Jorge Godoy [EMAIL PROTECTED] wrote: Em Thursday 06 December 2007 10:16:42 Ben Sizer escreveu: How does one create Widgets? This doesn't seem to be documented. Perhaps it's in The Book (I don't have it with me, and can't check). It is. The first two links from Google

[TurboGears] Re: Using Elixir, is there a nice way to specify which columns should be distinct in a select?

2007-12-06 Thread Ben Sizer
On Dec 6, 7:58 am, Paul Johnston [EMAIL PROTECTED] wrote: As long as you never use GROUP BY/DISTINCT, or aggregate functions, or non-trivial joins, SQLObject and friends work just fine. I do use GROUP BY with an ORM successfully. ... DISTINCT doesn't really work with an ORM - DISTINCT is

[TurboGears] ajax problem

2007-12-06 Thread Ruby Roker
hi Every one This is narayana perumal. I had trouble in ajax related application developing session. So any body know the Ajax with turbo gears please guide to me. Its very important for my Project. Advance congrats to all. With Regards Narayana perumal.G

[TurboGears] Re: project fails to restart after upgrade

2007-12-06 Thread Ruby Roker
hi This is a GNPERUMAL,Please check the process list [OS] for python become alive please kill the process and restart the server. Its Now work compatible. On Dec 6, 2:13 am, Florent Aide [EMAIL PROTECTED] wrote: On Dec 5, 2007 8:06 PM, alex bodnaru [EMAIL PROTECTED] wrote: [...] hi

[TurboGears] Re: Advice and suggestions wanted on how to build dynamic forms effectively

2007-12-06 Thread Paul Johnston
Ben, Thank you for the links. However, if these pages are useful, they should really be linked off the documentation index! (WidgetsOverview is, but it doesn't do much except show a few examples of pre-packaged Widgets.) Ah, you've missed the core TG philosophy. This is a web framework for

[TurboGears] Re: Invalid URL in Paginate

2007-12-06 Thread Diez B. Roggisch
Glauco schrieb: Glauco ha scritto: Lee McFadden ha scritto: You should set your form's method to POST instead of GET. This way your form's data will be posted allowing paginate's query variables to use GET without overloading the browser URL. This should solve your problem. Lee

[TurboGears] Re: Invalid URL in Paginate

2007-12-06 Thread Diez B. Roggisch
I'm not exactly sure what paginate does there, but it appears that it collects all kinds of search criteria from a form. Any chance to not make that? Forget about this mail - I was starting to compose a useful answer - but then stopped working on it. In the mean-time things were solved,

[TurboGears] Re: TG Online Docu. Was: Advice and suggestions wanted on how to build dynamic forms effectively

2007-12-06 Thread Christoph Zwerschke
Ben Sizer wrote: Thank you for the links. However, if these pages are useful, they should really be linked off the documentation index! (WidgetsOverview is, but it doesn't do much except show a few examples of pre-packaged Widgets.) The link to http://docs.turbogears.org/1.0/Widgets is

[TurboGears] Re: Invalid URL in Paginate

2007-12-06 Thread Glauco
Lee McFadden ha scritto: On Dec 6, 2007 10:18 AM, Glauco [EMAIL PROTECTED] wrote: This is true ONLY for submit action... but I've done a deeper analisys on paginate and paginate use a link !!! a href=${tg.paginate.get_href(1)}lt;lt;/a so the problem isn't solved :-(

[TurboGears] Re: Invalid URL in Paginate

2007-12-06 Thread Lee McFadden
On Dec 6, 2007 2:27 PM, Glauco [EMAIL PROTECTED] wrote: now, is this a useful patch or nobody else can have this problem? I can't say for sure whether it's a useful patch or not as I've never run into this problem myself. However, if you can apply the patch to the latest 1.x branch and

[TurboGears] Re: Invalid URL in Paginate - Solved

2007-12-06 Thread Roger Demetrescu
Hei Glauco - On Dec 6, 2007 9:39 AM, Glauco [EMAIL PROTECTED] wrote: Hi all, i've found a solution to the problem of too-long-url. i hope this is useful Paginate function (next_page, top_page, end_page, next_page) create url based on how many field are in the form, using all data from

[TurboGears] Problem with TG 1.0.4b3

2007-12-06 Thread Fred C
After upgrade to 1.0.4b3 I am getting this error. Any idea why? 500 Internal error The server encountered an unexpected condition which prevented it from fulfilling the request. Traceback (most recent call last): File /usr/pkg/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg/

[TurboGears] Re: TG Online Docu. Was: Advice and suggestions wanted on how to build dynamic forms effectively

2007-12-06 Thread Ben Sizer
On Dec 6, 2:20 pm, Christoph Zwerschke [EMAIL PROTECTED] wrote: Ben Sizer wrote: Thank you for the links. However, if these pages are useful, they should really be linked off the documentation index! (WidgetsOverview is, but it doesn't do much except show a few examples of pre-packaged

[TurboGears] Re: Problem with TG 1.0.4b3

2007-12-06 Thread Florent Aide
On Dec 6, 2007 5:51 PM, Fred C [EMAIL PROTECTED] wrote: After upgrade to 1.0.4b3 I am getting this error. Any idea why? Yep. Could you give us the request you try to do (url with full args). I suspect the before_main filter to try to encode something which is not a 'string'. Give us your

[TurboGears] Turbogears Etch problem

2007-12-06 Thread Iacopo
I have installed my web app in a debian etch , but when it starts gives me this error: python2.4 start-tcrm.py /var/lib/python-support/python2.4/turbogears/widgets/base.py:454: UserWarning: You have declared an empty WidgetsList warnings.warn(You have declared an empty WidgetsList) Traceback

[TurboGears] Turbogears Etch problem

2007-12-06 Thread Iacopo
I have installed my web app in a debian etch , but when it starts gives me this error: python2.4 start-tcrm.py /var/lib/python-support/python2.4/turbogears/widgets/base.py:454: UserWarning: You have declared an empty WidgetsList warnings.warn(You have declared an empty WidgetsList) Traceback

[TurboGears] toscawidgets + kid

2007-12-06 Thread Shian
I start to try toscawidgets and encounter a problem. Message is like below. I use 'kid' for template engine but in error message it show 'genshi'. I have put 'tg.defaultview = kid' and 'toscawidgets.on = True' in app.cfg. Do I miss something to set up toscawidgets? Thanks for your help. File

[TurboGears] Re: Turbogears Etch problem

2007-12-06 Thread Florent Aide
On Dec 6, 2007 5:23 PM, Iacopo [EMAIL PROTECTED] wrote: I have installed my web app in a debian etch , but when it starts gives me this error: python2.4 start-tcrm.py /var/lib/python-support/python2.4/turbogears/widgets/base.py:454: UserWarning: You have declared an empty WidgetsList

[TurboGears] Re: Problem with TG 1.0.4b3

2007-12-06 Thread Roger Demetrescu
Hei Florent ! On Dec 6, 2007 3:08 PM, Florent Aide [EMAIL PROTECTED] wrote: On Dec 6, 2007 5:51 PM, Fred C [EMAIL PROTECTED] wrote: After upgrade to 1.0.4b3 I am getting this error. Any idea why? Yep. Could you give us the request you try to do (url with full args). I suspect the

[TurboGears] Re: Problem with TG 1.0.4b3

2007-12-06 Thread Florent Aide
On Dec 6, 2007 6:24 PM, Roger Demetrescu [EMAIL PROTECTED] wrote: Hei Florent ! Hallo Roger! Maybe we should change that code to something like: if isinstance(v, dict): res[k] = encode_utf8(v) elif isinstance(v, list): res[k] = [vv.encode('utf-8') for vv in v] elseif

[TurboGears] Re: Problem with TG 1.0.4b3

2007-12-06 Thread Roger Demetrescu
On Dec 6, 2007 3:47 PM, Florent Aide [EMAIL PROTECTED] wrote: On Dec 6, 2007 6:24 PM, Roger Demetrescu [EMAIL PROTECTED] wrote: Maybe we should change that code to something like: if isinstance(v, dict): res[k] = encode_utf8(v) elif isinstance(v, list): res[k] =

[TurboGears] Re: TG Online Docu

2007-12-06 Thread Christoph Zwerschke
Ben Sizer wrote: I partly agree. I think there is just way too much on that documentation front page, and much of the good information is scattered around. 90% of the stuff that is in the Recipes section should really be rolled into the Reference section. The rest should probably be pushed

[TurboGears] HTTP Authentication in TG? (not Identity!)

2007-12-06 Thread Thomas Wittek
Hi! Is it possible to protect a complete TG app by a basic HTTP authentication (user/pass)? I'm not talking about using HTTP auth in Identity. I just want to protect the whole app. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed

[TurboGears] Re: Problem with TG 1.0.4b3

2007-12-06 Thread Fred C
I don't have the problem anymore. After my first email I ran tg-admin update on my project and everything seems to works now. Since my production environment is 1.0.4b2 I have to test if my updated project works fine with that environment. I have also one more question. Why tg-admin

[TurboGears] Re: Problem with TG 1.0.4b3

2007-12-06 Thread Florent Aide
On Dec 6, 2007 9:44 PM, Fred C [EMAIL PROTECTED] wrote: I don't have the problem anymore. After my first email I ran tg-admin update on my project and everything seems to works now. I am still interested to see what was the request you tried that made the before_main filter to bork-out...

[TurboGears] Re: Windows install doesn't work with other users

2007-12-06 Thread Paulino
On 5 Dez, 14:35, Christopher Arndt [EMAIL PROTECTED] wrote: They should be, unless a) you provide a different path with --installdir, --prefix or --home when using easy-install or setup.py. No b) you have a distutils configuration file [1], which sets one of the above options. Don't

[TurboGears] Re: Problem with TG 1.0.4b3

2007-12-06 Thread Fred C
I cand send you the request. The call came from a form with a fileupload field. I have tried to reproduce the bug to send you more information but I couldn't. The only thing I can tell you is that the method send was never executed. TG broke before. If I have some time this evening I'll

[TurboGears] Re: HTTP Authentication in TG? (not Identity!)

2007-12-06 Thread venkatbo
Hi Thomas, May want to checkout CherryPy's filters for Basic/Digest auth. http://www.cherrypy.org/wiki/rfc2617 using sessions/cookies. /venkat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group.

[TurboGears] Validator not validating!

2007-12-06 Thread Ben Sizer
I have a 'validators.Int()' which appears to be letting None values through. This seems to contradict http://docs.turbogears.org/1.0/ValidateDecorator which says that I can be assured that I will get an int. Basically I'm submitting an INPUT element to a form where the user is supposed to type a

[TurboGears] Re: TG Online Docu

2007-12-06 Thread iain duncan
On Thu, 2007-06-12 at 19:55 +0100, Christoph Zwerschke wrote: Ben Sizer wrote: I partly agree. I think there is just way too much on that documentation front page, and much of the good information is scattered around. 90% of the stuff that is in the Recipes section should really be

[TurboGears] how to review *.kid file from browser with style sheet and master template?

2007-12-06 Thread yupu
Dear Turbogearser: Hi, I am new to Turbogear and it seems that I should be able to review my *,kid files through browser to help out on design. But when i tried master.kid comes when I created a new project, it seems my browser can't find the style sheet. Here is the line inside master.kid

[TurboGears] Using transaction with SQLObject enabled cache

2007-12-06 Thread Yasuo Shirai
Hi all. In my app, I use SQLObject with caching enabled normally like this: in model.py: class MyDataClass( SQLObject ): class sqlmeta: cacheValues = True foo = UnicodeCol() bar = IntCol() ...