[TurboGears] form validation

2005-10-17 Thread Catalin Constantin
hi there, i wonder if there are any viable examples of how to user TG for a basic form validation page. so server side / client side validation + autoform populate. (eg: nevow formless / webform, but better) thanks for the tip:) Catalin Constantin http://www.cabaonva.ro/

[TurboGears] Re: turbogears.url with absolute path?

2005-10-17 Thread Jeff Watkins
On 16 Oct, 2005, at 10:46 pm, Kevin Dangoor wrote: I would hazard a guess that this was code you had written for TurboGears 0.5. It was not well documented (and I just fixed this in a couple of spots), but TurboGears detects the application root by looking for a class that extends

[TurboGears] Re: Joins: getting just the IDs

2005-10-17 Thread Jeff Watkins
On 17 Oct, 2005, at 2:03 am, gps wrote: Two attributes will generally be created, role, which returns a Role instance, and roleID, which returns an integer ID for the related role. - SQLObject 0.7 documentation when talking about what ForeignKey does. Thanks, but I *have* read the

[TurboGears] Re: Joins: getting just the IDs

2005-10-17 Thread [EMAIL PROTECTED]
That could be true for the 'parent' but I am not sure about the child in a one-to-many relationship. Think of the scenario(also the example in SQLObject). A person object can have multiple address. The nice thing about SQLObject is that I can defined a MultiJoin so when I access

[TurboGears] TurboGears Planet

2005-10-17 Thread Ramon Hernandez
I've noticed that a lot of open source projects feature planet feeds where they aggregate blogs from various members of their respective user/developer communities. Has there been any talk of doing this with TurboGears? I think it would be a good idea. It is a great way for someone like

[TurboGears] Re: Django-like auto admin interface?

2005-10-17 Thread modmans2ndcoming
but the good thing about TG is that you use SQLObject to build the data model. that way you get to use objects which is a much more natural way to think of data for a developer.

[TurboGears] composite vs. components

2005-10-17 Thread Rubic
Kevin and friends: Many thanks for putting in so much effort with TurboGears. It's good to see all these great components combined in such a cohesive whole. My question relates to how I might work with the individual components alongside the unified TurboGears framework. For instance, when I

[TurboGears] Re: How to get rid of utf8 or make it work

2005-10-17 Thread Robin Munn
Sorry I can't help you with MySQL specifics, as I much prefer PostgreSQL, and so I haven't touched MySQL in years. But I wanted to comment on one thing: On 10/15/05, Lazy [EMAIL PROTECTED] wrote: I don't use unicode and I don't wont it how to get rid of it ? Dealing with Unicode makes your

[TurboGears] relational tables in SQLObject

2005-10-17 Thread modmans2ndcoming
Does SQLObject allow you to relate different tables and have Primary Keys made of multiple columns? The object scheme that SQLObject uses does not seem to be conducive to a data model that is more complex than a flat table of data.

[TurboGears] Re: Anyone tried TurboGears with CherryFlow

2005-10-17 Thread pierrebai
Whatever method you use (flow vs non-flow), when you need interaction in the middle of processing you need to save state. Nothing forces flow state to be saved in the session. In the non-flow design I use in TG I save the state in the html as hidden input fields. So I was wondering if anyone

[TurboGears] Re: relational tables in SQLObject

2005-10-17 Thread Leandro Lucarella
modmans2ndcoming, el lunes 17 de octubre a las 15:22 me escribiste: Does SQLObject allow you to relate different tables and have Primary Keys made of multiple columns? Yes, just create an index using the multiple columns. Your real primary key would be the id, but why do you care? Just think

[TurboGears] Authentication

2005-10-17 Thread pierrebai
I saw there is a ticket open for authentication / authorization. I also read that CatWalk has no security for now. What I propose is not a design by simply a standardize high-level function API to check authorization. I currently use the following: def checkRole(role='admin'): # checkRole

[TurboGears] Re: relational tables in SQLObject

2005-10-17 Thread modmans2ndcoming
cool, that will make my database work a lot easier to do :-), now I just need to learn SQLObject

[TurboGears] Re: Authentication

2005-10-17 Thread Jeff Watkins
I've been working on an Identity and Access control framework for TurboGears. This will provide you with the following features for your TurboGears-based Web applications: * A require decorator that checks the current user's permissions and/or group membership * A SecureResource base class

[TurboGears] Re: Problem encountered while installing TurboGears

2005-10-17 Thread Phillip J. Eby
Anthoni Shogan wrote: Hi everyone, I use Debian, and I'm trying to install TurboGears-0.8a3. Just got Python 2.4.2 running. Now, is TurboGears-0.8a3 compatible with Python-2.4.2?? I did not have easy install, so I had to go in for the two step installation. After running, |python

[TurboGears] Re: any new info on running tg through apache?

2005-10-17 Thread leo mendoza
Yeah, sorry I'm working on the mod python implementation. And (not surprisingly) its turning out to be harder than I thought. BUT, if you're willing to serve pages behind apache (ala WebSphere) take a look at http://www.cherrypy.org/wiki/BehindApache . Background:

[TurboGears] Re: Run it through Apache?

2005-10-17 Thread leo mendoza
Oh definitely. I won't get a chance to look at it for at least a couple days but getting TG/CherryPy working in mod_python on my short list of need-to-be-done goals.

[TurboGears] Re: The impact of class name ...

2005-10-17 Thread william
Indeed, it's written in the news page (http://www.sqlobject.org/News.html). I'm totally new to the egg principle ... Any ideas how to install this new SQLObject inside TurboGears ? Just like any other python program ? Thanks

[TurboGears] Re: Run it through Apache?

2005-10-17 Thread John Angelmo
leo mendoza wrote: Oh definitely. I won't get a chance to look at it for at least a couple days but getting TG/CherryPy working in mod_python on my short list of need-to-be-done goals. FastCGI would perhaps be more apropriate since hostingsites usually have better suport for that? /John

[TurboGears] Re: How to get rid of utf8 or make it work

2005-10-17 Thread Steve Bergman
Robin Munn wrote: Dealing with Unicode makes your life more complicated, so it's easy to see why you'd want to get rid of it. But that would be a mistake, IMHO. Unicode is not going to go away, no matter how much you might want it to, so the best thing is to just learn about it. If you haven't

[TurboGears] Re: Django-like auto admin interface?

2005-10-17 Thread Aaron
try using something like openoffice or even MS Access! For smaller sites with limited role based security (ie - one admin) you can get pretty far with a 'rich' desktop client. Just be sure to use ssh to tunnel to the server!

[TurboGears] Re: Django-like auto admin interface?

2005-10-17 Thread Kevin Dangoor
On 10/16/05, Qiangning Hong [EMAIL PROTECTED] wrote: I think a big pro of django over turbogears is its automatic admin interface. Is there any project putting effort to give tg a similar function? IMO, this will make turbogears a super-killer webframework. There have been a few people who

[TurboGears] Re: Django-like auto admin interface?

2005-10-17 Thread Kevin Dangoor
On 10/17/05, stephen emslie [EMAIL PROTECTED] wrote: I agree. What interested me about Django was the prospect of automatic admin interfaces. I'd love to see something like that in TurboGears. For example, it would be lovely to be able to design the sqlite database though a web interface!

[TurboGears] Re: How to get rid of utf8 or make it work

2005-10-17 Thread Lazy
Should I be using UnicodeCol() instead of StringCol()? And I'm not certain I understand the SQLObject docs on the matter. If I understand correctly, SQLObject will then handle encoding and decoding the data going in and out of the database properly, but it is still my responsibility to see

[TurboGears] Re: composite vs. components

2005-10-17 Thread Aaron
Personally (and I may be wrong) when I develop python apps for production I use a copy of each library as well as a copy of python itself. So even if you have SQLObject-0.8dev_r1113-py2.4.egg in your main site-packages, I would recommend a copy of SQLObject-0.7b1dev-py2.4.egg in the same

[TurboGears] Re: composite vs. components

2005-10-17 Thread Kevin Dangoor
On 10/17/05, Aaron [EMAIL PROTECTED] wrote: Personally (and I may be wrong) when I develop python apps for production I use a copy of each library as well as a copy of python itself. So even if you have SQLObject-0.8dev_r1113-py2.4.egg in your main site-packages, I would recommend a copy of

[TurboGears] Re: Kid is Pain in the ( )*( )

2005-10-17 Thread Charlie Moad
Just don't use the html kwarg, and use Cheetah manually. On 10/17/05, Art [EMAIL PROTECTED] wrote: Is there a way to make KID accept regular HTML and to be so uptight on proper XML. I have a bunch of older HTML pages that I'm trying to use in Subway but making it all XML compliant is a major

[TurboGears] Re: Kid is Pain in the ( )*( )

2005-10-17 Thread Steve Bergman
Art wrote: Is there a way to make KID accept regular HTML and to be so uptight on proper XML. I have a bunch of older HTML pages that I'm trying to use in Subway but making it all XML compliant is a major pain. I'm porting a project now that had noncompliant pages. It doesn't have a

[TurboGears] Re: Problems in the tutorial??

2005-10-17 Thread phreaki
For me that statement would be the parts you see in the .kid templates, the py:for= which even throw me off, in knowing where I -should- go in the .kid. But most of your python code from what I see is going to be in the controllers.py if I see everything clear.

[TurboGears] Re: Kid is Pain in the ( )*( )

2005-10-17 Thread Bob Ippolito
On Oct 17, 2005, at 3:02 PM, Art wrote: Is there a way to make KID accept regular HTML and to be so uptight on proper XML. I have a bunch of older HTML pages that I'm trying to use in Subway but making it all XML compliant is a major pain. No. Or maybe going with cheetah would be easier

[TurboGears] error upgrading from TG0.8a1 to 0.83a : elementtree ?

2005-10-17 Thread [EMAIL PROTECTED]
I encountered problems upgrading today. Any ideas? -Todd REPRO: [EMAIL PROTECTED]/home/tgreenwo/bin/TurboGears-0.8a1$ python ez_setup.py -U TurboGears ERROR: error: Unexpected HTML page found at http://effbot.org/downloads/index.cgi/elementtree-1.2.6-20050316.zip?index DETAILS: Downloading

[TurboGears] Re: Turbogears versus Ruby on Rails, information request.

2005-10-17 Thread modmans2ndcoming
well, RoR is more mature as a PROJECT than TG, but the elements of TG are much more mature than RoR elements. that is why TG will reach 1.0 at about the same time as RoR.

[TurboGears] Re: Kid is Pain in the ( )*( )

2005-10-17 Thread Art
I have massive HTML, nested tables, just a monster, yet it work in all browsers. Tidy goes nuts when I run it through it.

[TurboGears] Re: error upgrading from TG0.8a1 to 0.83a : elementtree ?

2005-10-17 Thread Phillip J. Eby
[EMAIL PROTECTED] wrote: I encountered problems upgrading today. Any ideas? -Todd You left off the '-f http://turbogears.org/download/', so that EasyInstall will use the Turbogears-supplied download links. I believe this would actually have worked correctly the way you typed it, if Kevin had

[TurboGears] One project with some packages

2005-10-17 Thread [EMAIL PROTECTED]
Hello, I want to set a project (say PROJECT1), with two packages (P1 and P2). Is there a way to do this with tg-admin ? Would it be needed manual modification of some files ?? Is there an example of something like this ? Thanks for any help. Parra

[TurboGears] Re: relational tables in SQLObject

2005-10-17 Thread pierrebai
Yes, but your by() method was broken in the sense that it assumed that there would be exactly one result, not 0, 2 or more. A dangerous assumption.

[TurboGears] Re: Kid is Pain in the ( )*( )

2005-10-17 Thread Kevin Dangoor
If possible, can you post one of your problem pages to the wiki (http://trac.turbogears.org). We could use that to build up a howto for anyone dealing with old, crufty HTML. Kevin On 10/17/05, Art [EMAIL PROTECTED] wrote: I have massive HTML, nested tables, just a monster, yet it work in all

[TurboGears] Re: TurboGears Planet

2005-10-17 Thread Kevin Dangoor
Sounds like a good idea to me. How difficult is it to set up? what's required? Kevin On 10/17/05, Ramon Hernandez [EMAIL PROTECTED] wrote: I've noticed that a lot of open source projects feature planet feeds where they aggregate blogs from various members of their respective user/developer

[TurboGears] Re: TurboGears Planet

2005-10-17 Thread Lee McFadden
I think all you'd need is the planet software (http://www.planetplanet.org/) and a host. Oh, and some blogs to add to the feed list :) On 18/10/05, Kevin Dangoor [EMAIL PROTECTED] wrote: Sounds like a good idea to me. How difficult is it to set up? what's required? Kevin On 10/17/05,

[TurboGears] Re: error upgrading from TG0.8a1 to 0.83a : elementtree ?

2005-10-17 Thread Kevin Dangoor
On 10/17/05, Phillip J. Eby [EMAIL PROTECTED] wrote: But if somebody's doing a fresh install without any of the dependencies, then yeah, easy_install TurboGears should work just fine now. I'll hold off on changing the install instructions until the without part of that sentence goes away.

[TurboGears] Re: error upgrading from TG0.8a1 to 0.83a : elementtree ?

2005-10-17 Thread Kevin Dangoor
On 10/18/05, Phillip J. Eby [EMAIL PROTECTED] wrote: I had been using a depth-first algorithm, but now it looks like I should switch to breadth-first, because that will allow the depender (TurboGears) to override the dependees (e.g. SQLObject), as long as the depender's choices are also

[TurboGears] Re: error upgrading from TG0.8a1 to 0.83a : elementtree ?

2005-10-17 Thread [EMAIL PROTECTED]
Follow up on the last posting: Reinstalling setup tools cleared the load_entry_point error: $ python ez_setup.py -U setuptools Subsequent upgrade of TG with the --delete-conflicting fails, too $ python ez_setup.py -U TurboGears -f http://turbogears.org/download --delete-conflicting

[TurboGears] Re: CRUD and TG

2005-10-17 Thread Kevin Dangoor
On 10/12/05, Ronald Jaramillo [EMAIL PROTECTED] wrote: IMHO doing proper form generation is difficult. The first 90% are usually very easy but the last bit is a PITA. You end up fighting against the framework in order to get things 'just right'. And usually this involve digging trough several

[TurboGears] Re: relational tables in SQLObject

2005-10-17 Thread [EMAIL PROTECTED]
In this context, it may be a bad selection of name but I don't think it is broken. It is intended to be used on unique composite key(most likely cluster index). In a straight SQL sense, all results must be assumed to be multi rows and the SQLObject's .get() and byForeignKey() is also broken.

[TurboGears] Re: formIO

2005-10-17 Thread [EMAIL PROTECTED]
I still think a cookbook/template/sample approach like the ajax_table in MochiKit is better unless you want to gear every TurboGears user to a particular model(RoR or to a less extend Nevow), which I assume was not the initial intend. Kevin Dangoor wrote: On 10/12/05, Ian Bicking [EMAIL

[TurboGears] let's talk about CRUD!

2005-10-17 Thread Kevin Dangoor
I've started a wiki page to build up design ideas for an experimental CRUD implementation for TurboGears 0.9. There are quite a few people who have been looking at different approaches to CRUD, and I'd like to gather up as much prior art information as possible to help decide on a direction to

[TurboGears] Turbogears, cherrpy port number.

2005-10-17 Thread Donnie Jones
Hello, Is there a way I can specify the cherrypy port number for the server without having to edit cherrypy's config.py ? Thanks. __ Donnie

[TurboGears] Re: Turbogears, cherrpy port number.

2005-10-17 Thread Kevin Dangoor
On 10/18/05, Donnie Jones [EMAIL PROTECTED] wrote: Is there a way I can specify the cherrypy port number for the server without having to edit cherrypy's config.py ? There should be a commented out setting in your dev.cfg and prod.cfg. Kevin -- Kevin Dangoor Author of the Zesty News RSS

[TurboGears] Re: Problems in the tutorial??

2005-10-17 Thread Jeremy
Thanks! Got all the way through. Everything works now. It has just been years since I have done any web development and I just need to get back into the swing of things with new components such as CSS and XHTML etc.. Plus, most of the stuff I have done has been with PERL.. So, I just need to