[TurboGears] Re: Installation with no internet connection

2005-11-10 Thread [EMAIL PROTECTED]
I'm facing some troubles to install TurboGears with no internet connection. I downloaded all the necessary files and put them in a directory, say d:\tmp\TurboGears. When I run the the ez_setup.py script with -d d:\tmp\TurboGears flag, it will usually not finish the installation. I says it's no

[TurboGears] Re: Installation with no internet connection

2005-11-10 Thread [EMAIL PROTECTED]
When I run the the ez_setup.py script with -d d:\tmp\TurboGears flag, it will usually not finish the installation. Sorry I meant ez_setup.py -f d:\tmp\TurboGears and not -d on the last message

[TurboGears] Re: Help needed to improve the quickstart welcome template

2005-11-10 Thread Michele Cella
Cool! that's very nice and original! :-) I added it to the wiki page. Ciao Michele Ronald Jaramillo wrote: Hi, Kevin had a good idea for a tag line to the small logo. Instead of 'Powered by TurboGears', he suggested 'TurboGears - Under The Hood'. I checked in a revised logo to the

[TurboGears] Re: Help needed to improve the quickstart welcome template

2005-11-10 Thread Elvelind Grandin
now the welcome template uses it too. it's really nice! On 11/10/05, Ronald Jaramillo [EMAIL PROTECTED] wrote: Hi, Kevin had a good idea for a tag line to the small logo. Instead of 'Powered by TurboGears', he suggested 'TurboGears - Under The Hood'. I checked in a revised logo to the

[TurboGears] Trouble installing on Debian unstable

2005-11-10 Thread Martin Skøtt
I have tried following this[1] guide to install TurboGears on Debian unstable, but it doesn't work. I get this error when running tg-admin quickstart: tg-admin quickstart Traceback (most recent call last): File /usr/local/bin/tg-admin, line 5, in ? from pkg_resources import

[TurboGears] Re: Installation with no internet connection

2005-11-10 Thread Kevin Dangoor
On 11/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm facing some troubles to install TurboGears with no internet connection. I downloaded all the necessary files and put them in a directory, say d:\tmp\TurboGears. When I run the the ez_setup.py script with -d d:\tmp\TurboGears flag,

[TurboGears] Schema errors not picked up in cherrypy.request.form_errors

2005-11-10 Thread Dan Jacob
When using a schema the form_errors variable in cherrypy.request is not updated (version 0.9, latest version from subversion). For example: class TestSchema(formencode.schema): description = validators.MinLength(3) class Root: @turbogears.expose(validators=TestSchema()) def

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread Paul Dale
I am running TG on Debian. I had a wee bit of trouble originally with the ez_setup. The one comment I would make is that if it doesn't work exactly as indicated on the download page then try reinstalling.Delete all the related files (especially if doing it on a different day ... the builds

[TurboGears] Re: Installation with no internet connection

2005-11-10 Thread Kevin Dangoor
On 11/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok, that's what I'll do then, use easy_install. Sorry to insist on the matter, I just wanna settle it, before I go in the dark (connectionless) again. Is there a particular order to install the eggs. Or should I cd to the dir where

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread Martin Skøtt
On Thu, Nov 10, 2005 at 02:02:35PM +, Wavy Davy wrote: On 10/11/05, Martin Skøtt [EMAIL PROTECTED] wrote: I have tried following this[1] guide to install TurboGears on Debian unstable, but it doesn't work. Given my distro (gentoo) doesn't yet package TurboGears (does any?), I

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread [EMAIL PROTECTED]
Use the non-root installation, even you are root. setuptools conflicts with your package system. You can use non-root install to /usr/local which can still be shared by all users. I do it on my sarge system. Martin Skøtt wrote: That seems a little cumbersome to me. Usefull for situations where

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread Kevin Dangoor
On 11/10/05, Martin Skøtt [EMAIL PROTECTED] wrote: I don't like installing software to to /usr without using whatever package management systems provided, as it can get messy to maintain. It also makes installing TG on my webserver, where I don't have root, very easy. I feel the same

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread Martin Skøtt
On Thu, Nov 10, 2005 at 03:13:24PM +0100, Paul Dale wrote: The one comment I would make is that if it doesn't work exactly as indicated on the download page then try reinstalling.Delete all the related files (especially if doing it on a different day ... the builds change fairly often),

[TurboGears] Re: Can't get KID Match tag working...

2005-11-10 Thread Tracy Ruggles
I remember asking about this awhile back, maybe in July, and Ryan mentioned a specific method to call within a match block so that kid will continue to process any other match definitions. I did a search through the kid-discuss sf.net mail archives but just can't find it... --Tracy On

[TurboGears] Re: Can't get KID Match tag working...

2005-11-10 Thread Kevin Dangoor
I made a change to Kid so that matches work their way up the inheritance chain (which did actually involve continuing to process match rules after one matched). I would've thought that change would have taken care of this as well, but apparently not. Kevin On 11/10/05, Tracy Ruggles [EMAIL

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread Martin Skøtt
On Thu, Nov 10, 2005 at 10:02:26AM -0500, Kevin Dangoor wrote: This is true. I did notice a typo in the wiki page: it said .pydistutil*e*.cfg, so if you cut-and-pasted it, you might have the wrong thing, but I doubt it since it sounds like you had gotten farther than that. Yeah, the type is

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread Kevin Dangoor
On 11/10/05, Martin Skøtt [EMAIL PROTECTED] wrote: On Thu, Nov 10, 2005 at 10:02:26AM -0500, Kevin Dangoor wrote: Does pkg_resources.py exist in /usr/local/lib/python2.4/site-packages? (I'm assuming not). What does appear in that directory? No, it's in

[TurboGears] form submit and image

2005-11-10 Thread Leonardo
login form uses an image as a submit mechanism the x and y locations of where the image was .clicked are submitted as well Ocurred a erro: raceback (most recent call last): File c:\python24\lib\site-packages\CherryPy-2.1.0_rc2-py2.4.egg\cherrypy\_cphttptools.py, line 271, in run main()

[TurboGears] Re: Patch to kid to generate python source files if KID_OUTPUT_PY environment variable is set

2005-11-10 Thread Kevin Dangoor
Hi Don, Ryan applied this change and it appears in the new 0.7.1 release. Kevin On 11/9/05, Don Hopkins [EMAIL PROTECTED] wrote: I noticed a useful sounding environment variable called KID_OUTPUT_PY, which will generate the python source code files for compiled templates, but when I set

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread Phillip J. Eby
Martin Skøtt wrote: Could it be there is something missing in /usr/local/lib/python2.4/site-packages ? Currently it just contains a bunch of .egg files and .edd directories. As Kevin already pointed out, you're missing the .pth files. You need to include that directory in the --site-dirs

[TurboGears] [Windows] I already have cElementTree installed...

2005-11-10 Thread Robert Hicks
I have a later version installed and so I get an error when I use eazy_install: CONFLICT WARNING: The following modules or packages have the same names as modules or packages being installed, and will be *before* the installed packages in Python's search path. You MUST remove all of the

[TurboGears] Re: I already have cElementTree installed...

2005-11-10 Thread [EMAIL PROTECTED]
Robert Hicks wrote: Can I ignore it and use the later version I have installed? Robert No you can't. Either you let setuptools overwrite the existing or install the eggs to some other locations.

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread Martin Skøtt
On Thu, Nov 10, 2005 at 08:09:47AM -0800, Phillip J. Eby wrote: under the --site-dirs option for an explanation of how to set up an alternate installation location. If you follow those directions and then install again, you should end up with two more files: setuptools.pth and

[TurboGears] Re: TurboGears, or why I chose it over Django and Ruby on Rails

2005-11-10 Thread Steve Bergman
[EMAIL PROTECTED] wrote: Steve Bergman wrote: Yes. I've been looking forward to that feature's debut in TG. Can I also pass a dictionary to SQLObject to set the attributes of an existing or new object to the dictionaries values? It seems like I saw somewhere that I can already do that?

[TurboGears] Debug a running turbogears instance ?

2005-11-10 Thread Benoit Masson
Hi, I'm newbie to python, I came from Java world and as a matter I use eclipse IDE to develop python with python plugin. By the way any suggestion on other great environment with python completion and debug on mac os X/Linux would be appriceate. I'd like to debug the code I've made. So

[TurboGears] Re: form submit and image

2005-11-10 Thread Leonardo
help ?

[TurboGears] Re: I already have cElementTree installed...

2005-11-10 Thread Robert Hicks
Thank you, I wasn't married to the one I had so I uninstalled it and let the install do its thing. Robert

[TurboGears] Re: TurboGears, or why I chose it over Django and Ruby on Rails

2005-11-10 Thread [EMAIL PROTECTED]
Steve Bergman wrote: So, is there a way to create a *new* object and feed it a dictionary in a concise way? I can't just create an empty object and then use .set because, of course, it complains about missing attributes when I create the object. I think you can do the same with the class

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread Phillip J. Eby
Martin Skøtt wrote: On Thu, Nov 10, 2005 at 08:09:47AM -0800, Phillip J. Eby wrote: One strange thing is that my ~/.pydistutils.cfg has been looking like this all the time: [install] install_lib = /usr/local/lib/python$py_version_short/site-packages [easy_install]

[TurboGears] Re: Debug a running turbogears instance ?

2005-11-10 Thread Kevin Dangoor
Hi Benoit, Crazy though it may seem, I do most of my debugging through a combination of unit tests and log/print statements. There has been the rare occasion when I've fired up pdb, but generally I can move pretty quickly without. To run inside of Eclipse, you may find that you need to set

[TurboGears] Re: Python 2.3?

2005-11-10 Thread scmikes
Kevin, Does that mean the turbogears will become 2.3 centric, or 2.3 backwards compatable? Would decorators be dropped from the demos? What are we giving up in terms of clarity, ease of use, by eliminating the use of decorators in turbogears? I like what decorators give the new user, it

[TurboGears] Re: Python 2.3?

2005-11-10 Thread Kevin Dangoor
On 11/10/05, scmikes [EMAIL PROTECTED] wrote: Does that mean the turbogears will become 2.3 centric, or 2.3 backwards compatable? Would decorators be dropped from the demos? @email def response(): paragraphs = set([Good question. *I* run Python 2.4 and have no intention of downgrading.

[TurboGears] high traffic

2005-11-10 Thread Kevin Dangoor
I just noticed that Google has upgraded this list to a High activity list. I'd certainly characterize this list as highly active. I think we've got a good arrangement of lists for now, but I thought I'd bring this up in case anyone had thoughts on a better division. turbogears

[TurboGears] Re: high traffic

2005-11-10 Thread Ramon Hernandez
On Nov 10, 2005, at 2:55 PM, Kevin Dangoor wrote: I think we've got a good arrangement of lists for now, but I thought I'd bring this up in case anyone had thoughts on a better division. turbogears turbogears-announce turbogears-sprint turbogears-commits Not that I think it is a better

[TurboGears] How to have cherrypy be a proxy for another application

2005-11-10 Thread vinjvinj
I use unagi to monitor my server grid http://www.unixuser.org/~euske/python/unagi/ I would like to expose this through my cherrypy application and leverage my authentication code so that it is available only to the admin. Do you know how I can expose the unagi in my application. Unagi has a

[TurboGears] Re: Python 2.3?

2005-11-10 Thread Michele Cella
Kevin Dangoor wrote: On 11/10/05, scmikes [EMAIL PROTECTED] wrote: Does that mean the turbogears will become 2.3 centric, or 2.3 backwards compatable? Would decorators be dropped from the demos? @email def response(): paragraphs = set([Good question. *I* run Python 2.4 and have no

[TurboGears] Re: Python 2.3?

2005-11-10 Thread scmikes
Kevin, Great News Mike PS. I just watched the Catwalk video. Can't wait until 0.9, thanks for the great product

[TurboGears] Paged result set with TG?

2005-11-10 Thread Roman
Hi A piece of code often needed is that which lets you present a large database result set that spans across several HTML pages (that the user can navigate). As in Gooogle. Does TG (or SQLObject) somehow have native support for this? (or will it in the future?) If not, where should I

[TurboGears] Re: Paged result set with TG?

2005-11-10 Thread [EMAIL PROTECTED]
If you only need them ordered by id, it is doable as you can use multiple select statement for the paging. Otherwise, it is quite cumbersome in SQLObject because it is not lazy enough so there could be a memory concern if you retrieve everything(a list in memory hold in a session). Seperate

[TurboGears] Re: high traffic

2005-11-10 Thread Michele Cella
Steve Bergman wrote: As a user, I'm quite happy enough about how the lists are set up now. I enjoy seeing the development discussions. And as TG's api is undergoing rapid evolution, I think the closest possible association between users and developers is likely beneficial. I agree, the

[TurboGears] Re: How to have cherrypy be a proxy for another application

2005-11-10 Thread vinjvinj
Turns our to proxy another complete application is a decnet amount of work. Luckily, unagi returns all the information in one html page and streaming that back to the admin is pretty easy. I'll give it a go tonight.

[TurboGears] TurboGears widgets first look

2005-11-10 Thread Kevin Dangoor
As I mentioned previously (in TurboGears forms first look: http://tinyurl.com/c28c7), turbogears.forms has the concept of widgets that are put together to create a form. In fact, widgets are so important to how forms are put together that I've renamed the package turbogears.widgets. Form objects

[TurboGears] Component CatWalk in Trac

2005-11-10 Thread Juracy Filho
I was browsing trac when I see that 5 tickets in 17 active tickets for 0.9 are about CatWalk. I believe that TurboGears should be having more components: TG-CatWalk TG-General TG-Documentation TG-JSON Excuse my bad English !

[TurboGears] Re: Debug a running turbogears instance ?

2005-11-10 Thread Benoit Masson
I'm not sure to be on the right path with the debugging stuff. I'm used to JSP/servlet world where debuging from eclipse is simple and fast to understand... But maybe I should enforce my tetsing classes and run them instead of debug. The thing is how to get information on identity, catwalk

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread Phillip J. Eby
Martin Skøtt wrote: Great, I hope it's okay with you that I quote the above in my message to the maintainer. I'll go further than that - feel free to have them contact me directly if they'd like me to review their plans or patches. I want to help system packagers make their systems as egg

[TurboGears] Identity Management Concerns/Questions

2005-11-10 Thread p
After spending some time looking at cherrypy's implementation of sessions, as well as, Jeff Watkin's Identity Management, I thought I might share some questions/concerns. First off, I'd like to thank Jeff for throwing out the basic Identity framework. Strong work and much thanks. Now, on to the

[TurboGears] Re: Trouble installing on Debian unstable

2005-11-10 Thread Martin Skøtt
On Thu, Nov 10, 2005 at 03:08:48PM -0800, Phillip J. Eby wrote: I'll go further than that - feel free to have them contact me directly if they'd like me to review their plans or patches. I want to help system packagers make their systems as egg friendly as possible. I posted a message on

[TurboGears] Re: Identity Management Concerns/Questions

2005-11-10 Thread Michele Cella
p wrote: 4. Finally, why the heck is everything stuffed into an init file? ew. :-) Agreed. I'm new to python (so that's probably the right thing) but the first time I looked at TG source code I wondered why __init__.py files contains so many thing instead of exposing only the package

[TurboGears] Re: Identity Management Concerns/Questions

2005-11-10 Thread Jeff Grimmett
On 11/10/05, Michele Cella [EMAIL PROTECTED] wrote: 4. Finally, why the heck is everything stuffed into an init file? ew. :-) I'm new to python (so that's probably the right thing) but the firsttime I looked at TG source code I wondered why __init__.py filescontains so many thing instead of

[TurboGears] Re: Creating a mostly static template using kid

2005-11-10 Thread Counsel
I know I just started with python and TG today, but shouldn't there be an easier way (than what I have seen) to use CSS with TG? I mean, I want to use my 3 column, 1 header, 1 footer CSS-only design template (see www.pocosin.com's main page (index.php) and use that as my 'format' in my .kid

[TurboGears] Re: Creating a mostly static template using kid

2005-11-10 Thread Jeff Grimmett
On 11/10/05, Counsel [EMAIL PROTECTED] wrote: I assume I can uselink href="" type=text/css rel=stylesheetto link to my style.css file.Right?However, when I put my div... and the rest of my html into the master.kid file, I get all sorts of errors when I load the page.What am I missing?A little

[TurboGears] Re: Paged result set with TG?

2005-11-10 Thread Robert Hicks
I don't know how he is going to use it but I typically pull everything out at once and page it. It would be nice to have something that does this in a db agnostic way. I use Oracle and sometimes it is hard to find info on paging. Robert

[TurboGears] Re: Anyone have a good pointer to SQLObject query usage examples?

2005-11-10 Thread Bob Ippolito
On Nov 10, 2005, at 6:32 PM, anders pearson wrote: On 2005-11-10 21:08:46 -0500, Jeff Grimmett wrote: I'm having an aweful time with SQLObject. Oh, I get stuff out of it and all, but my code is very, very clumsy - I'm generally getting all of a particular model's objects, then filtering

[TurboGears] Re: Paged result set with TG?

2005-11-10 Thread Sean Cazzell
Roman, Here is the solution I am currently using. First, I have a Paginator class like: class Paginator(object): def __init__(self, results, per_page, page=0, total=None): if not total: total = results.count() if total per_page*page: raise NotFound

[TurboGears] Re: Anyone have a good pointer to SQLObject query usage examples?

2005-11-10 Thread Jeff Grimmett
On 11/10/05, Bob Ippolito [EMAIL PROTECTED] wrote: On Nov 10, 2005, at 6:32 PM, anders pearson wrote: On 2005-11-10 21:08:46 -0500, Jeff Grimmett wrote: I'm having an aweful time with SQLObject. Oh, I get stuff out of it and all, but my code is very, very clumsy - I'm generally getting all of a

[TurboGears] Re: Paged result set with TG?

2005-11-10 Thread Leandro Lucarella
Sean Cazzell, el jueves 10 de noviembre a las 21:44 me escribiste: Roman, Here is the solution I am currently using. First, I have a Paginator class like: I've done a simple pager decorator some time ago, and I was planning to comment it here, but I wanted to polish it a little. I

[TurboGears] Re: Creating a mostly static template using kid

2005-11-10 Thread Counsel
Ah! Of course. I should have know Thanks! C

[TurboGears] Re: How to delete a wiki page?

2005-11-10 Thread Steve Bergman
icylamb wrote: Hello all, I raise this question again cuz I can't find answer for it though I have found a few related topics. I'm not sure if deleting a wiki page is similar to drop a table in SQLObject? Please help, thank you. # Retrieve page by page name page =