[TurboGears] Re: New Widgets

2005-12-14 Thread Alvin Wang
They are both LGPL so it should be no problem to include everything. I don't know about the current version but 6 months ago, I found TinyMCE to be slower than FCK. Alvin

[TurboGears] Re: New Widgets

2005-12-14 Thread Alvin Wang
http://www.mattisbusy.com/2005/05/16/tinymce-versus-fckeditor-versus-xinha/ http://drupal.org/node/22069 It seems like most people like TinyMCE more. I'll start on the grid since I was working on that before. Alvin

[TurboGears] Re: Raw requests and responses.

2005-12-14 Thread Lee McFadden
If you use @turbogears.expose() with no arguments you can output raw strings by returning them. If you want to return a binary file, take a look at the cherrypy wiki[1]. Lee [1] http://www.cherrypy.org/wiki/FileDownload On 12/14/05, Zarrabeitia [EMAIL PROTECTED] wrote: I'm very new with

[TurboGears] Widgets - difficult API

2005-12-14 Thread Dan Jacob
I've been trying to add new widgets to base.py and to my own test app, and I've found it's unnecessarily difficult to customize/extend existing widgets. For example: 1. I want to add a size attribute to a text field 2. I want the form to use enctype=multipart/form-data In order to do these, I

[TurboGears] Re: Widgets - difficult API

2005-12-14 Thread Dan Jacob
Sorry, that should be: class TextField(InputField):input_type=text class PasswordField(InputField):input_type=password class HiddenField(InputField):input_type=hidden class FileField(InputField):input_type=file

[TurboGears] Re: New Widgets

2005-12-14 Thread Jorge Godoy
Alvin Wang [EMAIL PROTECTED] writes: I was planning on working on integrating FCKeditor. After that, I was going to start working on a configurable grid. If anybody is already What are you calling configurable grid? :-) What is going to be configurable? -- Jorge Godoy [EMAIL

[TurboGears] admi18n screencast

2005-12-14 Thread Ronald Jaramillo
Hi, I made a screencast showing how to localize an application to French using admi18n: http://www.checkandshare.com/blog/?p=31 If you want to play with admi18n, checkout the latest svn revision. Enjoy. Ronald Ronald Jaramillo mail: ronald AT checkandshare

[TurboGears] Re: Widgets - difficult API

2005-12-14 Thread Jorge Godoy
Dan Jacob [EMAIL PROTECTED] writes: In order to do these, I have to create a new template for that widget, which totally defeats the object of using widgets - it's a lot easier to just write the HTML in the template. Except for reusability... If the code is in the widget, you can use it in

[TurboGears] svn-r323 sitetemplate.kid

2005-12-14 Thread Rune Hansen
Hi, I just did an svn update to r323 and sitetemplate.kid has gone AWOL. I don't know if it is the absence of sitetemplate or if there is something else that have changed, but when I access index of a freshly createt project I get: Exception: Template not found:

[TurboGears] Re: admi18n screencast

2005-12-14 Thread haj
I'm not sure if it's okay or not but pulling tanslation from Google translator is way too cool!! (Google isn't too intelligent, but hey)

[TurboGears] Re: admi18n screencast

2005-12-14 Thread Jorge Godoy
Ronald Jaramillo [EMAIL PROTECTED] writes: Hi, I made a screencast showing how to localize an application to French using admi18n: http://www.checkandshare.com/blog/?p=31 If you want to play with admi18n, checkout the latest svn revision. Enjoy. Ronald Very good! :-) It is even

[TurboGears] Re: admi18n screencast

2005-12-14 Thread Jorge Godoy
haj [EMAIL PROTECTED] writes: I'm not sure if it's okay or not but pulling tanslation from Google translator is way too cool!! (Google isn't too intelligent, but hey) Indeed it is. Specially because it saves the translator a lot of work. /me thinks about turning this into an application to

[TurboGears] Re: Raw requests and responses.

2005-12-14 Thread zarrabeitia
Thanks. I'll take a look at it tonight. I tried the expose() before posting, and the output looked a lot like json... I guess I was falling asleep already... On 12/14/05, Lee McFadden [EMAIL PROTECTED] wrote: If you use @turbogears.expose() with no arguments you can output raw strings by

[TurboGears] Re: Raw requests and responses.

2005-12-14 Thread zarrabeitia
Oh, I almost forgot... how do I get rid of the build time: page size: message? On 12/14/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks. I'll take a look at it tonight. I tried the expose() before posting, and the output looked a lot like json... I guess I was falling asleep already...

[TurboGears] Re: Raw requests and responses.

2005-12-14 Thread Lee McFadden
logDebugInfoFilter.on = False The above line needs to be in your dev.cfg. Lee On 12/14/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Oh, I almost forgot... how do I get rid of the build time: page size: message? On 12/14/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks. I'll take

[TurboGears] Re: Widgets - difficult API

2005-12-14 Thread Michele Cella
There is a ticket (106) related to this: http://trac.turbogears.org/turbogears/ticket/106 (Please, don't pay attention to some of my crazy ideas.) Anyway, I think that with compound widgets this becomes quite hard, a solution is much needed to be sure that TG widgets really rock. Ciao Michele

[TurboGears] Re: svn-r323 sitetemplate.kid

2005-12-14 Thread Kevin Dangoor
Hi, Sorry about that. I should really put in a feature request to the subversion folks to have subversion check for unknown files/directories before committing. Kevin On 12/14/05, Rune Hansen [EMAIL PROTECTED] wrote: Hi, I just did an svn update to r323 and sitetemplate.kid has gone AWOL.

[TurboGears] Re: svn-r323 sitetemplate.kid

2005-12-14 Thread Mark Godfrey
Same for me - on 2 Windows machines and 1 Linux boxen

[TurboGears] Re: svn-r323 sitetemplate.kid

2005-12-14 Thread Ronald Jaramillo
Btw. does anybody knows how to tell svn to ignore '.pyc' and files on svn status? -Ronald On Dec 14, 2005, at 2:36 PM, Kevin Dangoor wrote: Hi, Sorry about that. I should really put in a feature request to the subversion folks to have subversion check for unknown files/directories

[TurboGears] Re: admi18n screencast

2005-12-14 Thread Ronald Jaramillo
/me thinks about turning this into an application to translate potfiles, not just TG potfiles, but any potfile... It would help a lot with other translation projects, specially the google start. -- Jorge Godoy [EMAIL PROTECTED] Easy, create a new project and add this to your

[TurboGears] Re: svn-r323 sitetemplate.kid

2005-12-14 Thread Kevin Dangoor
I added .pyc to ~/.subversion/config in global-ignores Kevin On 12/14/05, Ronald Jaramillo [EMAIL PROTECTED] wrote: Btw. does anybody knows how to tell svn to ignore '.pyc' and files on svn status?

[TurboGears] Re: svn-r323 sitetemplate.kid

2005-12-14 Thread Ronald Jaramillo
Great, thanks Ronald On Dec 14, 2005, at 3:31 PM, Kevin Dangoor wrote: I added .pyc to ~/.subversion/config in global-ignores Kevin On 12/14/05, Ronald Jaramillo [EMAIL PROTECTED] wrote: Btw. does anybody knows how to tell svn to ignore '.pyc' and files on svn status?

[TurboGears] Re: Offline Install?

2005-12-14 Thread Kevin Dangoor
If someone can open a ticket on this (I gotta run in just a minute): I can bundle up all of the eggs into a massive tarball that includes ez_setup.py. The ideal arrangement is to let easy_install work as well as possible, but I know that some people are stuck behind draconian firewalls. Kevin

[TurboGears] Re: svn-r323 sitetemplate.kid

2005-12-14 Thread Juracy Filho
I believe that put *.pyc in svn:ignore is the best way, so it's works for everybody without any extra configs. And svn:eol-style to native is good too !

[TurboGears] Re: Are there TG validator examples?

2005-12-14 Thread Jeremy Jones
Karl Guertin wrote: On 12/13/05, Guyon Morée [EMAIL PROTECTED] wrote: What I'm looking for is an example that uses validator schema's, but also shows the roundtrip to the input screen which tells the user whats wrong. While it's not a direct example, the validators are actually

[TurboGears] ? Cannot connect to MySQLServer

2005-12-14 Thread citizenkahn
I am trying to use turbogears on a linux box and am running into problems. Can anyone offer any ideas on how to debug the issue. I have tried this with active python 2.4 and python 2.4. In both cases turbo gears cannot connect to my db. Even wrote a two line python script and that fails as

[TurboGears] Re: ? Cannot connect to MySQLServer

2005-12-14 Thread Jared Kuolt
_mysql.c:41:19: mysql.h: No such file or directory _mysql.c:42:26: mysqld_error.h: No such file or directory _mysql.c:43:20: errmsg.h: No such file or directory Seems like you need to install the mysql client libraries. IIRC, that's why you had these errors.

[TurboGears] Quick MochiKit Hack

2005-12-14 Thread Gunfighter
MochiKit has a ton of great features. A feature I've found helpful when working with my TG app is the interactive interpreter as demonstrated on the MochiKit site: http://www.mochikit.com/examples/interpreter/index.html I decided to integrate this into my application as a debugging tool, but

[TurboGears] Re: New Widgets

2005-12-14 Thread Alvin Wang
I was planning on passing in column names, href, and formatting. Alvin

[TurboGears] Re: New Widgets

2005-12-14 Thread Jorge Godoy
Alvin Wang [EMAIL PROTECTED] writes: I was planning on passing in column names, href, and formatting. Column names can be passed today. What I thought would be something like: - header names (done) - footer (?) - data - HTML / XHTML / XML / Kid

[TurboGears] TypeError: swig_sources() takes exactly 2 arguments (3 given) - with fc4 and cElementTree

2005-12-14 Thread [EMAIL PROTECTED]
I have been trying on and off for awhile to get TurboGears installed on my fedora core 4 system with python version 2.4.1 Running python ez_setup.py -D -f http://www.turbogears.org/download/index.html --script-dir /usr/local/bin TurboGears it would fail installing cElementTree-1.0.2-20050302

[TurboGears] Re: Comparison operators in a Kid template

2005-12-14 Thread Don Hopkins
Kid is based on XML, so if you didnt get an error when you put an unescaped into an attribute, something would be horribly wrong. Its a bad idea to do anything that violates XML syntax (like accepting in attributes), because then you lose the ability to edit and process Kid macros with

[TurboGears] Re: Comparison operators in a Kid template

2005-12-14 Thread Don Hopkins
There is a whole universe of XML based tools, a lot more than the number of tools that support Python directly. XML interoperability is much more than just a checklist item -- it's essential. If you're going to invent a new language that's not compatible with XML, then PLEASE make it look

[TurboGears] Re: Are there TG validator examples?

2005-12-14 Thread [EMAIL PROTECTED]
I recently got my simple widget example working (thanks Kevin!). I'll share my simple example here and try to explain it. Start with creating a form. (I did this in a seperate file since I didn't want to clutter up controllers.py) myForms.py: createUserForm = widgets.TableForm(widgets=[

[TurboGears] Re: vpath vs. args and kw vs. param?

2005-12-14 Thread Jared Kuolt
I'm a bit of a noob myself, though you should be able to access your keywords like so: kw['action'] kw['state'] I don't know anything about vpath or param. On 12/14/05, icylamb [EMAIL PROTECTED] wrote: Hi all, I'm trying to implement a url parser for my own wiki system. Then when I

[TurboGears] Re: Linux Installation Issues

2005-12-14 Thread Phillip J. Eby
[EMAIL PROTECTED] wrote: Hi Phillip, I tried what you suggested and it still hangs at the download stage for a very long time. How long is a long time, and did you have net access to turbogears.org at the time? I presume from what you attached that the pause was while downloading the

[TurboGears] Bug in all-requests-wrapped-in-transaction feature

2005-12-14 Thread Jason Chu
First, let me explain how the all-requests-wrapped-in-transaction feature works currently: 1) Cherrypy gets a request 2) The first time a connection is requested from a hub, the connection is returned inside a transaction 3) When the exposed method is called, it's called through

[TurboGears] Designs wanted for Toasty Goat

2005-12-14 Thread Jared Kuolt
Toasty Goat: Blog Engine for TurboGears The development of Toasty Goat is coming along at a rather frantic pace. So frantic in fact that I've had to re-vamp previous work on several occasions, due to new/changing requirements. That said, I'm a crappy designer. If anyone has any ideas for some

[TurboGears] Re: Designs wanted for Toasty Goat

2005-12-14 Thread Karl Guertin
On 12/14/05, Jared Kuolt [EMAIL PROTECTED] wrote: That said, I'm a crappy designer. If anyone has any ideas for some designs/layouts/logos... really, anything that'd make it look nice, that'd be great. http://www.oswd.org/

[TurboGears] Re: Global Vars and Kid

2005-12-14 Thread Kevin Dangoor
Did the docs say that? I'm not sure they do... Kevin On 12/14/05, Jared Kuolt [EMAIL PROTECTED] wrote: Okay okay, I'm dumb. It's std.settings. Man, I've never been smart about STDs. O_o On 12/14/05, Jared Kuolt [EMAIL PROTECTED] wrote: If I understand this correctly, this should work,

[TurboGears] Re: Global Vars and Kid

2005-12-14 Thread Jared Kuolt
No, the docs are just vague about it. On 12/14/05, Kevin Dangoor [EMAIL PROTECTED] wrote: Did the docs say that? I'm not sure they do... Kevin On 12/14/05, Jared Kuolt [EMAIL PROTECTED] wrote: Okay okay, I'm dumb. It's std.settings. Man, I've never been smart about STDs. O_o

[TurboGears] Re: turbogears + atocha

2005-12-14 Thread Kevin Dangoor
On 12/14/05, blais [EMAIL PROTECTED] wrote: Just wondering, has anyone tried using TurboGears with Atocha? http://furius.ca/atocha/ That's intriguiging. Some of the design choices sound *very* similar to turbogears.widgets. I'll have to read a bit more about it. Kevin -- Kevin Dangoor Author

[TurboGears] Re: vpath vs. args and kw vs. param?

2005-12-14 Thread Tracy Ruggles
On Dec 14, 2005, at 7:28 PM, icylamb wrote: The main question is that I also found vpath and param are similar to args and kw. Can anyone explain to me what the differences between them? When and where should we use these pairs accordingly? There's no difference in the functionality, it's

[TurboGears] Re: TypeError: swig_sources() takes exactly 2 arguments (3 given) - with fc4 and cElementTree

2005-12-14 Thread Phillip J. Eby
[EMAIL PROTECTED] wrote: I have been trying on and off for awhile to get TurboGears installed on my fedora core 4 system with python version 2.4.1 Running python ez_setup.py -D -f http://www.turbogears.org/download/index.html --script-dir /usr/local/bin TurboGears it would fail

[TurboGears] Re: ? Cannot connect to MySQLServer

2005-12-14 Thread citizenkahn
The weird thing is the I look in /usr/local/mysql and I find those libraries. It weird. I guess, I could pull down mysql and re-build it as well. The other option is to manually build it using my paths. I did that, but it didn't work out too well..

[TurboGears] Re: ?SQLObject, BlobCol and TinyBlob?

2005-12-14 Thread citizenkahn
Thanks. I should've realized that. I'll set up an eclipse project pointing to each of the turbogears sub tools so I can be more effective and figuring this stuff out in future...

[TurboGears] Re: ? Cannot connect to MySQLServer

2005-12-14 Thread Michael Schneider
Try going to the SQLObject page http://www.sqlobject.org go to the docs page. Do the Person example (first one in the docs). If this works ok then: - my sql is installed and working - the python bindings to MySQL is installed and working - SQLObject is working. After you hit this