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