[turbogears-ja:257] Re: turgogears. widgets.TableFormの動作があやしい

2007-06-12 Thread Nakane Ryuji
竜@コンプネット%ずいぶんと間が空いてしまいました 開発屋ではないので、他の業務が入ると後回しに(^^ゞ さて、先日 turgogears.widgets.TableFormを使ったフォームのバリデー トで @validator, @error_handler を使うと、バリデートエラー時に表 示されるフォームの action や name などのアトリビュートが無効になっ てしまうと、質問をさせていただきましたが、ようやく原因がわかりま した 実のところ、TableFormには何の問題もありませんでした 単に私の使い方が悪かった、というかコード自体に問題がありました

[tg-trunk] ToscaWidgets FormFieldRepeater validation

2007-06-12 Thread Danny W. Adair
Hi, Given: my_fields.append( fields.FormFieldRepeater( 'my_block', repetitions=num_blocks, label_text='', widget=fieldsFieldSet('block_fields', children=getBlockFields()) ) ) how do you define the corresponding Schema?

[TurboGears] Re: SQLAlchemy quickstart projects: missing methods in User and Group

2007-06-12 Thread Christopher Arndt
John Lorance schrieb: Using the 1.0.2.2 version of TurboGears and 0.38 of SQLAlchemy, I've found when I create a quickstart project, I don't seem to get a full set of methods for User and Group (like addUser or addGroup) that I can see that I get when I don't specify the --sqlalchemy

[TurboGears] Re: newbie setup problem

2007-06-12 Thread Daniel Fetchinson
Just starting with TG. I've checked out the latest svn version and try to follow the 20 minute wiki but tg-admin sql create fails. Don't use an SVN checkout for the wiki tutorial or if you're new to TurboGears! Please follow the normal installation instructions:

[TurboGears] Re: setting global turbogears variables.

2007-06-12 Thread SamDonaldson
Right, but hardcoding the img_dir in my dev.cfg will not make this portable on windows. Is there a way to construct the path in the dev.cfg using os.path.join etc.. and then storing that in img_dir and then using it everywhere? sam. On Jun 11, 2:10 am, Christopher Arndt [EMAIL PROTECTED]

[TurboGears] Re: newbie setup problem

2007-06-12 Thread Christopher Arndt
Daniel Fetchinson schrieb: Thanks, I'll give 1.0 a try then. I usually like checking out the trunk because then upgrading is really simple, no rpm, deb, tar.gz nonsense. May I suggest having a usable trunk all the time and having testing in a sandbox? I guess that would be helpful for others

[TurboGears] Re: setting global turbogears variables.

2007-06-12 Thread SamDonaldson
Right, but hardcoding the img_dir in my dev.cfg will not make this portable on windows. Is there a way to construct the path in the dev.cfg using os.path.join etc.. and then storing that in img_dir and then using it everywhere? Also, if I run my batch tool outside of the turbogears environment

[TurboGears] Using LDAP on Turbogears - practical example needed

2007-06-12 Thread kle-kle
Hi - Newbie reporting to the group. I would like to authenticate my visitors agains LDAP user account. I have read all the posts and articles from trac, wiki, and google I have also done everything as mentioned here:

[TurboGears] identity email shouldn't be unique

2007-06-12 Thread alex
hi all, i wonder what reason would be for enforcing unique passwords for default identity Users. best regards, alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send

[TurboGears] widgets templates should be optionally loaded from files

2007-06-12 Thread alex
hi all, one further way to customize the viewing side of tg would be to load custom widgets templates from files, instead of pasting the whole widget text in the widgets.py code. to keep compatibility, tg should try to load a dotted file using the template text, and on exception, load the text

[TurboGears] Re: widgets templates should be optionally loaded from files

2007-06-12 Thread Diez B. Roggisch
On Tuesday 12 June 2007 12:26, alex wrote: one further way to customize the viewing side of tg would be to load custom widgets templates from files, instead of pasting the whole widget text in the widgets.py code. Did you discover my_widget = SomeWidget(template=path.to.widget) Pretty much

[TurboGears] Re: widgets templates should be optionally loaded from files

2007-06-12 Thread Christopher Arndt
alex schrieb: one further way to customize the viewing side of tg would be to load custom widgets templates from files, instead of pasting the whole widget text in the widgets.py code. This is already supported. Just specify the name of the template in the template class attribute.

[TurboGears] Re: widgets templates should be optionally loaded from files

2007-06-12 Thread alex
thank you for your answers. i'm pleased to find it's working, but why can't i do it with tg 1.0.2.2? alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to

[TurboGears] Re: widgets templates should be optionally loaded from files

2007-06-12 Thread Christopher Arndt
alex schrieb: i'm pleased to find it's working, but why can't i do it with tg 1.0.2.2? I dont't know. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to

[TurboGears] Type encoding problems with SuSE 10.2

2007-06-12 Thread markus
I am using SuSE 10.2 (i586), after tweaking some paths and installing the header files for python 2.5 I got everything up and running. However I have got some problems with type encoding, I cannot use accents (é, è, ñ) in string literals within the script, nor can I introduce these chars in the

[TurboGears] Re: identity email shouldn't be unique

2007-06-12 Thread Christopher Arndt
alex schrieb: i wonder what reason would be for enforcing unique passwords for default identity Users. Which one do you mean now, the email or the password field? The password has no unique constraint in the default identity model. The email_address has to be unique, because it is marked as

[TurboGears] Re: My turbogears.flash() alternative

2007-06-12 Thread [EMAIL PROTECTED]
That's an interesting suggestion. I'm not a CherryPy expert, so how do I bind something to a request like that? On Jun 11, 3:17 am, Marco Mariani [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] ha scritto: Hi everyone, I've done some more work on my alternative to turbogears.flash(), and

[TurboGears] Re: Type encoding problems with SuSE 10.2

2007-06-12 Thread Christopher Arndt
[EMAIL PROTECTED] schrieb: I am using SuSE 10.2 (i586), after tweaking some paths and installing the header files for python 2.5 I got everything up and running. However I have got some problems with type encoding, I cannot use accents (é, è, ñ) in string literals within the script, nor can I

[TurboGears] Re: Type encoding problems with SuSE 10.2

2007-06-12 Thread markus
That's true, it's rather a sort of how-to-get-turbogears-running-on- SuSE problem. That's why I posted here, because I suspect somebody else on the list has also encountered this problem On 12 jun, 16:51, Christopher Arndt [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: I am using SuSE

[TurboGears] Re: My turbogears.flash() alternative

2007-06-12 Thread Marco Mariani
[EMAIL PROTECTED] ha scritto: That's an interesting suggestion. I'm not a CherryPy expert, so how do I bind something to a request like that? This way: def get_flash_service(): try: ret = cherrypy.request.flash_service except AttributeError: ret =

[TurboGears] Re: setting global turbogears variables.

2007-06-12 Thread Bruce Webber
On Jun 12, 3:44 am, SamDonaldson [EMAIL PROTECTED] wrote: Right, but hardcoding the img_dir in my dev.cfg will not make this portable on windows. Is there a way to construct the path in the dev.cfg using os.path.join etc.. and then storing that in img_dir and then using it everywhere?

[TurboGears] going through the Tutorial

2007-06-12 Thread [EMAIL PROTECTED]
Hi everyone, since I cannot comment on the wiki, here are some observations on running through the (overall quite nice) 20 minute tutorial. Please, bear with my English. I will be doing this with Python 2.5 on WindowsXP SP2, database of choice is PostgreSQL because this is what I happen to have

[TurboGears] Turbogears manual

2007-06-12 Thread Lukasz Szybalski
In case somebody is interested in little manual/how-to on Turbogears http://www.lucasmanual.com/mywiki/TurboGears Enjoy, Lucas -- -- Linux is not magic. It just works. http://www.lucasmanual.com Fax Server from start to finish: http://www.lucasmanual.com/pdf/FaxServer.pdf

[TurboGears] Turbogears and apache. How to install?

2007-06-12 Thread Lukasz Szybalski
Hello, I was wondering if you could point me to a website where i could find out how to install turbogears with apache. I found the fas cgi instructions, but is there a apache2 mod_python turbogears instructions? How are your running your installations of turbogear? Thanks, Lucas

[TurboGears] Re: Turbogears and apache. How to install?

2007-06-12 Thread Jeremy Gransden
Is this what you are looking for? http://docs.turbogears.org/1.0/mod_python thanks, jeremy On 6/12/07, Lukasz Szybalski [EMAIL PROTECTED] wrote: Hello, I was wondering if you could point me to a website where i could find out how to install turbogears with apache. I found the fas cgi

[TurboGears] Localized numbers

2007-06-12 Thread Michael Bienia
Hello, I'm new to turbogears, so please point my to some existing documention if it exists. I'm trying to format numbers in my templates accord to the user's locale. I've found http://docs.turbogears.org/1.0/Internationalization but it mainly covers translating strings. It mentions that one

[TurboGears] Re: Turbogears manual

2007-06-12 Thread Roger Demetrescu
Nevermind... I fixed it already... :) Isn't wiki a great thing ? :D Cheers, Roger On 6/12/07, Roger Demetrescu [EMAIL PROTECTED] wrote: Hi Lukasz, Great job... I've bookmarked your tutorial to take a look and spread it to my friends. However, I've noticed that Turbogears is misspelled

[TurboGears] FE messages not localized since TG 1.0.2.2

2007-06-12 Thread W-Mark Kubacki
Hello group, I've upgraded from TG 1.0.1 to 1.0.2.2 and relied on what the changelog said: FormEncode (FE) messages would be localized (or at least localizable) from that on. With TG 1.0.1 at least my validators have thrown translateable messages which appeared then in the correct language.

[TurboGears] Safari and JSON

2007-06-12 Thread velotron
I've been having some troubles with Safari 3.0 and JSON output on TurboGears 1.0.2.2. I'm using loadJSONDoc to call a controller which returns JSON. It works fine in other browsers, but in Safari causes a 500 error with the same exception as reported in another thread

[TurboGears] Re: Turbogears and apache. How to install?

2007-06-12 Thread Lukasz Szybalski
On 6/12/07, Jeremy Gransden [EMAIL PROTECTED] wrote: Is this what you are looking for? http://docs.turbogears.org/1.0/mod_python At the bottom of this page there is a quote:Please note that I do not use this setup on any machine because of performance issues. I have long since switched to

[TurboGears] Re: Turbogears manual

2007-06-12 Thread asm
This is great to see. What are you plans for this? Am also starting to accumulate material and wondering how to contribute to the Turbogears documentation effort ... if I get that close to guru status. One thought: the instructions refer to apt-get which implies a Debian variant. These days

[TurboGears] Re: Safari and JSON

2007-06-12 Thread Jonathan LaCour
velotron wrote: I've been having some troubles with Safari 3.0 and JSON output on TurboGears 1.0.2.2. I'm using loadJSONDoc to call a controller which returns JSON. It works fine in other browsers, but in Safari causes a 500 error with the same exception as reported in another thread Mark

[TurboGears] Re: Problem with install with Python 2.5.1c1 on Ubuntu

2007-06-12 Thread Florent Aide
Le dimanche 10 juin 2007 à 04:25 -0700, Hoskeu a écrit : Am I doing somthing wrong or missing somthing here??... Thx in advance... Not sure what the problem is but could you try to: easy_install -UZ simplejson Cheers, Florent. --~--~-~--~~~---~--~~ You

[TurboGears] Re: FE messages not localized since TG 1.0.2.2

2007-06-12 Thread Christoph Zwerschke
W-Mark Kubacki wrote: Unluckily, with TG 1.0.2.2 FE's messages are neither localizable (no .MO created or added) nor displayed localized (even if apropriate PO was shipped with it). To make things worse what has at least worked with my own validators now does not! It is working for me.

[TurboGears] Re: identity email shouldn't be unique

2007-06-12 Thread alex
hi chris, thanks for your interest. On Jun 12, 5:20 pm, Christopher Arndt [EMAIL PROTECTED] wrote: Which one do you mean now, the email or the password field? The password has no unique constraint in the default identity model. i really mean the email :-) . The email_address has to be

[TurboGears] Re: Safari and JSON

2007-06-12 Thread Christopher Arndt
velotron schrieb: I've been having some troubles with Safari 3.0 and JSON output on TurboGears 1.0.2.2. I'm using loadJSONDoc to call a controller which returns JSON. It works fine in other browsers, but in Safari causes a 500 error TypeError: expected string or buffer The same call

[TurboGears] Re: Turbogears manual

2007-06-12 Thread Christopher Arndt
asm schrieb: This is great to see. What are you plans for this? Am also starting to accumulate material and wondering how to contribute to the Turbogears documentation effort ... if I get that close to guru status. We are happy about every contribution made to the TurboGears documentation.

[TurboGears] iPhone applications

2007-06-12 Thread Noah Gift
Anyone thinking about writing something for the iPhone in Turbogears? Will that work? Noah --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to

[TurboGears] Re: iPhone applications

2007-06-12 Thread SamFeltus
Doesn't the iPhone have Flash, and if so, what version... Don't see many iPhones in Mississippi on the Redneck Riviera... Any ideas? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post

[TurboGears] Re: iPhone applications

2007-06-12 Thread Bob Ippolito
On 6/12/07, SamFeltus [EMAIL PROTECTED] wrote: Doesn't the iPhone have Flash, and if so, what version... No. Don't see many iPhones in Mississippi on the Redneck Riviera... Or anywhere else for another 17 days. -bob --~--~-~--~~~---~--~~ You received this

[TurboGears] Re: TG + Python2.4.4 + sqlite3

2007-06-12 Thread Krys Wilken
Hi there. The fundamental issue with development on Windows is that is does not come with a built-in C/C++ compiler. When you easy_install pysqlite, for example, it sees that there is not a prebuilt windows binary egg file so it grabs the source archive and tries to compile it. On most Unix

[TurboGears] Re: Type encoding problems with SuSE 10.2

2007-06-12 Thread Krys Wilken
Hi there, I has TG running on suse 10.2 and it works just fine. While I do speak French, I have not yet had cause to code any accented characters in a TG app on suse yet. I suspect, however that that your issue is not a TG problem. Do regular python scripts with accented characters in the

[TurboGears] Re: iPhone applications

2007-06-12 Thread Diez B. Roggisch
Noah Gift schrieb: Anyone thinking about writing something for the iPhone in Turbogears? Will that work? I doubt it. The Apps will be like the dashboard-widgets in OSX. That is Safari-based rendering with special JS-Objects for system access. No python/TG in the equation. Diez

[TurboGears] Re: identity email shouldn't be unique

2007-06-12 Thread Diez B. Roggisch
a field should be marked alternativeid only if it should be unique. not the other way ;-) . Erm - no. The way it is it's the right way - if something is supposed to be working as uniquely identifying something, it must be a unique column. valid policy may be to require the forgetter to