[TurboGears] Re: Combine TG and Subway?

2005-12-23 Thread Ville
Kevin Dangoor wrote: I've already seen a decorator for using Cheetah. It's not hard, because you can just return a string and CherryPy will send it along. A plugin would be more graceful. I don't know, all that seems necessary is IMO a simple howto bullet point on how to use different

[TurboGears] Re: Pattern matching for allowed hosts

2005-12-23 Thread Lee McFadden
I'm pretty sure that you can specify a subnet using the slash notation, e.g. to allow 192.168.1.* you can use 192.168.1.0/24. Lee On 12/23/05, .M. [EMAIL PROTECTED] wrote: Hi, I'm having some difficulties exposing Catwalk to a private network. We've tried the most recent release and found it

[TurboGears] Re: DataController and Relations?

2005-12-23 Thread reflog
Jeff, keep going with this, looks very promissing, something like that is highly anticipated (atleast by me :) ) eli

[TurboGears] Re: New devcasts: forms and crud/fastdata

2005-12-23 Thread ludo
(I really wish they'd just go ahead and make Camtasia for the Mac.) What about vnc2swf? http://www.unixuser.org/~euske/vnc2swf/index.html

[TurboGears] Re: next up: forms/widgets talk and tickets

2005-12-23 Thread Jorge Godoy
Ian Bicking [EMAIL PROTECTED] writes: There should be a way to pass error messages in, but it should just be a matter of passing those through to the validators. Dan Jacob submitted a patch for internationalization to FormEncode that I have been very untimely in applying. However,

[TurboGears] Re: toolbox error

2005-12-23 Thread Kevin Dangoor
On 12/22/05, Keith R. Fieldhouse [EMAIL PROTECTED] wrote: Is this issue still considered active? I see a Trac ticket (#160) that doesn't appear closed? In any event, my attempts to start the toolbox on a Windows XP system with or without -n argument seem to hang after the connect. The last

[TurboGears] Re: Pattern matching for allowed hosts

2005-12-23 Thread Jeff Watkins
Yes, that's correct.On 23 Dec, 2005, at 4:05 am, Lee McFadden wrote:I'm pretty sure that you can specify a subnet using the slash notation, e.g. to allow 192.168.1.* you can use 192.168.1.0/24. --Jeff Watkinshttp://newburyportion.com/In the USDA study [of the meat packing industry conducted in

[TurboGears] Re: understanding DataController

2005-12-23 Thread Elvelind Grandin
perhaps we could add the code from http://www.cherrypy.org/wiki/ExposeAs to make it possible to strip/add trailingslashes What do you think Kevin? On 12/23/05, reflog [EMAIL PROTECTED] wrote: Ok, got it. With this url the sub-urls work great. Now what to do with situation when url was

[TurboGears] Re: Modules - Is this the way it is?

2005-12-23 Thread Elvelind Grandin
There are now some basic classifiers in the setup.py from quickstart. These include Environment :: turbogears. On 22 Dec 2005 17:23:36 -0200, Jorge Godoy [EMAIL PROTECTED] wrote: Ronald Jaramillo [EMAIL PROTECTED] writes: What about adding chesseshop classifiers to turbogears.quickstart.

[TurboGears] Re: toolbox error

2005-12-23 Thread Tim Diggins
(this is a posting reapplying information already contained in the mod_python +tg -apache hangs on some requests thread... sorry if the duplication irks.) If it is a problem with py:extends, you might try reversing out the change to kid.template_util.py :: get_base_class, r.173, namely:

[TurboGears] Re: Process Output problem with templates and JSON

2005-12-23 Thread Kevin Dangoor
On 12/22/05, Jeff Watkins [EMAIL PROTECTED] wrote: Not entirely. The DataController raises an HTTPRedirect as the result of success. I'm not certain that's the correct result for an Ajax sequence. That's a very interesting observation. You're right that this doesn't seem like what you'd want

[TurboGears] Re: Combine TG and Subway?

2005-12-23 Thread Kevin Dangoor
On 12/23/05, Ville [EMAIL PROTECTED] wrote: Perhaps TurboGears could have support for pluggable templating engines as described in: http://peak.telecommunity.com/DevCenter/setuptools#dynamic-discovery-of-services-and-plugins Fictional example: setup( # ... entry_points =

[TurboGears] Re: Combine TG and Subway?

2005-12-23 Thread Kevin Dangoor
On 12/22/05, Mike Orr [EMAIL PROTECTED] wrote: I'm fine with optional Kid preprocessors that cover over some of the annoyances: # FOR expr=r in records attr=value = div py:for=r in records attr=value # FOR expr=r in records tag=span attr=value = span

[TurboGears] Re: change the DOCTYPE

2005-12-23 Thread Karl Guertin
On 12/22/05, Jarek Zgoda [EMAIL PROTECTED] wrote: HTML2 didn't have support for any stylesheets. Did it? Nope, what that doctype would do is put every browser into quirks mode and you could do the same thing by leaving off the doctype. I don't know of any css techniques that rely on the

[TurboGears] Re: widget and form validation itches

2005-12-23 Thread Kevin Dangoor
On 12/22/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: After following the form and widget threads for a while, I finally did a little experimental hacking today, and found a few little itches -- that is, small annoyances that can be solved with a little localized application of force. :)

[TurboGears] Re: understanding DataController

2005-12-23 Thread Kevin Dangoor
On 12/23/05, reflog [EMAIL PROTECTED] wrote: And another question: how can I embed different data controllers on one page? I.e. i want to add an admin page that will allow me to edit users, groups and etc, from one place. Is this possible? That's a good usecase that I hadn't considered. can

[TurboGears] Re: What happens if I replace Identity

2005-12-23 Thread Kevin Dangoor
On 12/21/05, Alvin Wang [EMAIL PROTECTED] wrote: 1) I don't like the way it currently works I want to be able to say @identity.require(module=forums, rights='create') or @identity.require(module=forums, rights='owner') I want my ACLs in the DB so I can admin without editting code.

[TurboGears] Re: Quick MochiKit Hack

2005-12-23 Thread Kevin Dangoor
This is a cool hack. I've just opened a ticket to make a development mode sitetemplate that automatically includes this. That way, when developing with TurboGears, you can just hit the bookmarklet whenever you want. And, when you're ready to go into production, it automatically disappears from

[TurboGears] how to interface to pyro service on another machine

2005-12-23 Thread [EMAIL PROTECTED]
I need some help accessing a pyro service from turbogears. Any help would be appreciated. Regards, Bryan Webb

[TurboGears] Re: widget and form validation itches

2005-12-23 Thread Kevin Dangoor
On 12/23/05, Jason Chu [EMAIL PROTECTED] wrote: On Fri, Dec 23, 2005 at 11:42:23AM -0500, Kevin Dangoor wrote: I don't really mock the cherrypy package for testing. I just toss in a fake request. Adding a self.request reference to the controller seems reasonable for convenience's sake. Can

[TurboGears] Re: how to interface to pyro service on another machine

2005-12-23 Thread Kevin Dangoor
On 12/23/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I need some help accessing a pyro service from turbogears. Any help would be appreciated. While I haven't used Pyro, I understand it's pretty easy. My guess is that anyone is going to need a bit more information before they can help.

[TurboGears] Re: TurboGears visuals for 0.9/1.0

2005-12-23 Thread Robin Munn
http://koorb.co.uk/static/images/tglogos/layouts/layout-1.png http://koorb.co.uk/static/images/tglogos/layouts/layout-2.png http://koorb.co.uk/static/images/tglogos/layouts/layout-3.png I'll go ahead and contribute some feedback as well. Layout 1's red navigation bar makes me flinch away from

[TurboGears] Re: Combine TG and Subway?

2005-12-23 Thread Mike Orr
On 12/23/05, Ville [EMAIL PROTECTED] wrote: I don't know, all that seems necessary is IMO a simple howto bullet point on how to use different template types easily Yes, but first TG's architecture has to be changed slightly. Currently you have to rewrite @expose, which is what the Cheetah

[TurboGears] datacontroller hangs on master.kid

2005-12-23 Thread Alvin Wang
Hi, I ran the demo as on the devcast. It kept hanging. 2005/12/23 11:09:16 HTTP INFO 127.0.0.1 - GET /pageedit/ HTTP/1.1 2005-12-23 11:09:16,453 turbogears.view DEBUG Recompiling template for turbogear s.fastdata.templates.list I tried deleting the TG install including kid and re-installing.

[TurboGears] Re: New devcasts: forms and crud/fastdata

2005-12-23 Thread Leandro Lucarella
Kevin Dangoor, el viernes 23 de diciembre a las 11:01 me escribiste: What about moving (or at least giving the option) form_order to sqlwidgets(sqlclass, form_order=None), so you can avoid mixing up the model and controller. You can add the extra parameter to DataController too. I know

[TurboGears] Re: datacontroller hangs on master.kid

2005-12-23 Thread Rudy Schockaert
This seems exactly the same problem as described in ticket #160.On 12/23/05, Alvin Wang [EMAIL PROTECTED] wrote:Hi,I ran the demo as on the devcast.It kept hanging. 2005/12/23 11:09:16 HTTP INFO 127.0.0.1 - GET /pageedit/ HTTP/1.12005-12-23 11:09:16,453 turbogears.view DEBUG Recompiling template

[TurboGears] Re: Combine TG and Subway?

2005-12-23 Thread Mike Orr
On 12/23/05, Kevin Dangoor [EMAIL PROTECTED] wrote: On 12/22/05, Mike Orr [EMAIL PROTECTED] wrote: I'm fine with optional Kid preprocessors that cover over some of the annoyances: FOR expr=r in records attr=value = div py:for=r in records attr=value ?python ![CDATA[

[TurboGears] Re: New devcasts: forms and crud/fastdata

2005-12-23 Thread Gary Godfrey
Ronald Jaramillo wrote: The could be extended to check if your model column has a title attribute and a default value: return widgets.TextField(name=column.name,label=(column.title or column.name), default=column.default) I like it. I've opened a ticket and put up a patch.

[TurboGears] Re: Include CSS links dinamically (using sitetemplate)

2005-12-23 Thread Kevin Dangoor
On 12/23/05, Claudio Martínez [EMAIL PROTECTED] wrote: I've been checking the source code but I cannot find a way to dinamically include a CSS link to be used by the sitetemplate. I have tried setting self.css, css and returning tg_css from the controller with no results. You should be

[TurboGears] new way to access MochiKit in 0.9

2005-12-23 Thread Kevin Dangoor
If you want to use MochiKit on a page, you can now do this: @turbogears.expose(html=foo.bar) def index(self): return dict(mochi=turbogears.mochikit) It doesn't matter what the key in the dictionary is. The advantage to this is that MochiKit only gets included 1 time, even if a widget needs

[TurboGears] Re: Combine TG and Subway?

2005-12-23 Thread Bob Ippolito
On 12/22/05, Bob Ippolito [EMAIL PROTECTED] wrote: It's a pretty bad idea to generate CSS or JavaScript anyway. Why would you ever need to? I don't know about you, but I regularly wish I could set variables in CSS, mostly for colors. Inman has a php package that does this and I've seen it

[TurboGears] Re: datacontroller hangs on master.kid

2005-12-23 Thread Kevin Dangoor
This is apparently caused by a TemplatePath class in Kid. Sounds like a good time for me to take a peek at that. Kevin On 12/23/05, Rudy Schockaert [EMAIL PROTECTED] wrote: This seems exactly the same problem as described in ticket #160. On 12/23/05, Alvin Wang [EMAIL PROTECTED] wrote:

[TurboGears] Re: widget and form validation itches

2005-12-23 Thread Mike Orr
On 12/23/05, Kevin Dangoor [EMAIL PROTECTED] wrote: My concern is to make sure there's no glaring structural errors. I wouldn't want to create the Tacoma Narrows Widgets: http://www.enm.bris.ac.uk/research/nonlinear/tacoma/tacoma.html Galloping Gertie!

[TurboGears] Re: Process Output problem with templates and JSON

2005-12-23 Thread Jeff Watkins
I don't know the answer. I do know it's remarkably hard to figure out what format the DataController should return and therefore whether to redirect. I started out wanted to smear some Ajaxy goodness onto the DataController, but that became hard when I realised I couldn't detect whether the

[TurboGears] Re: New devcasts: forms and crud/fastdata

2005-12-23 Thread Kevin Dangoor
On 12/23/05, Leandro Lucarella [EMAIL PROTECTED] wrote: This seems too painful, because you may end up repeating that information on multiple templates. About this, this is just an option, which makes much more clear the separation between view, controller and model and can be used in a

[TurboGears] Re: Combine TG and Subway?

2005-12-23 Thread Kevin Dangoor
On 12/23/05, Mike Orr [EMAIL PROTECTED] wrote: A preprocessor that puts a complete document around a body or div class=page_content tag would also be desirable. I like my page templates to contain just their unique content, not several lines of boilerplate tags around them. Yes, the raw

[TurboGears] Json output

2005-12-23 Thread Jeff Watkins
If your controller is returning JSON formatted data via Ajax, you now don't have to worry about jsonifying the data. As of revision 365, TG will automatically jsonify any objects you return. This means you can return a SelectResult or an SQLObject. -- Jeff Watkins

[TurboGears] Re: Process Output problem with templates and JSON

2005-12-23 Thread Kevin Dangoor
I was wondering if something general like catching the redirect and sending back some kind of JSON response would work... that's probably not worth it, anyhow, though. Kevin On 12/23/05, Jeff Watkins [EMAIL PROTECTED] wrote: I don't know the answer. I do know it's remarkably hard to figure out

[TurboGears] Re: new way to access MochiKit in 0.9

2005-12-23 Thread Elvelind Grandin
can we have a key in the config to enable mochikit on all pages? On 12/23/05, Kevin Dangoor [EMAIL PROTECTED] wrote: If you want to use MochiKit on a page, you can now do this: @turbogears.expose(html=foo.bar) def index(self): return dict(mochi=turbogears.mochikit) It doesn't matter

[TurboGears] Re: Modules - Is this the way it is?

2005-12-23 Thread Elvelind Grandin
accually no. it seemed scary to try that. I dont want to clutter up PyPI with stuff thats not meant to be there. On 12/23/05, Phillip J. Eby [EMAIL PROTECTED] wrote: Elvelind Grandin wrote: There are now some basic classifiers in the setup.py from quickstart. These include Environment ::

[TurboGears] Re: widget and form validation itches

2005-12-23 Thread [EMAIL PROTECTED]
I don't really mock the cherrypy package for testing. I just toss in a fake request. Adding a self.request reference to the controller seems reasonable for convenience's sake. Can you open a ticket for that? (http://trac.turbogears.org) Added: http://trac.turbogears.org/turbogears/ticket/257

[TurboGears] Re: new way to access MochiKit in 0.9

2005-12-23 Thread Kevin Dangoor
On 12/23/05, Elvelind Grandin [EMAIL PROTECTED] wrote: can we have a key in the config to enable mochikit on all pages? how about tg.mochikit_all (which I just checked in)? Kevin

[TurboGears] Even better better error handling

2005-12-23 Thread Simon Belak
Hi, I have just submitted a new patch [1] to introduce better error handling as proposed in #219 [2]. As this is my first patch any tips or criticisms would be most appreciated. Which brings me to my main point. Do you even like this approach? Any wishes for enchantments? Thanks. [1]

[TurboGears] Re: new way to access MochiKit in 0.9

2005-12-23 Thread Elvelind Grandin
gah! You read my mind. scary :P On 12/23/05, Kevin Dangoor [EMAIL PROTECTED] wrote: On 12/23/05, Elvelind Grandin [EMAIL PROTECTED] wrote: can we have a key in the config to enable mochikit on all pages? how about tg.mochikit_all (which I just checked in)? Kevin -- cheers

[TurboGears] Re: Even better better error handling

2005-12-23 Thread Kevin Dangoor
On 12/23/05, Simon Belak [EMAIL PROTECTED] wrote: As this is my first patch any tips or criticisms would be most appreciated. Which brings me to my main point. Do you even like this approach? Any wishes for enchantments? Thanks. [1] http://trac.turbogears.org/turbogears/ticket/258

[TurboGears] Re: Modules - Is this the way it is?

2005-12-23 Thread Phillip J. Eby
Elvelind Grandin wrote: accually no. it seemed scary to try that. I dont want to clutter up PyPI with stuff thats not meant to be there. Well, if it doesn't work, there won't be a problem. ;-) On the other hand, if it does work, you can just click on the big Remove this package completely

[TurboGears] Reordering/selecting the fields of a form to show in the view [was: New devcasts: forms and crud/fastdata]

2005-12-23 Thread Leandro Lucarella
Kevin Dangoor, el viernes 23 de diciembre a las 15:18 me escribiste: On 12/23/05, Leandro Lucarella [EMAIL PROTECTED] wrote: This seems too painful, because you may end up repeating that information on multiple templates. About this, this is just an option, which makes much more clear

[TurboGears] Re: Reordering/selecting the fields of a form to show in the view [was: New devcasts: forms and crud/fastdata]

2005-12-23 Thread Kevin Dangoor
On 12/23/05, Leandro Lucarella [EMAIL PROTECTED] wrote: I finally give it a thought and I dropped my other ideas (they were to fix problems that, after giving a deeper look at the code, didn't even existed ;). So I will stick to the ordering option for the view that it looks like the only

[TurboGears] Re: Combine TG and Subway?

2005-12-23 Thread Karl Guertin
On 12/23/05, Bob Ippolito [EMAIL PROTECTED] wrote: I don't know about you, but I regularly wish I could set variables in CSS, mostly for colors. Inman has a php package that does this and I've seen it mentioned in several places besides just on his site. When was the last time you wanted

[TurboGears] Re: Egg on my face...

2005-12-23 Thread Bob Ippolito
Can someone give me a URL or a history on why Egg is used to package TurboGears if so many distributions have a problem with it... I ask because I have moved my laptop form Windows to FC4, and I find, with quite a bit of humor and frustration, that, although TurboGears installed on Windows

[TurboGears] Egg on my face...

2005-12-23 Thread Counsel
Can someone give me a URL or a history on why Egg is used to package TurboGears if so many distributions have a problem with it... I ask because I have moved my laptop form Windows to FC4, and I find, with quite a bit of humor and frustration, that, although TurboGears installed on Windows

[TurboGears] Re: Combine TG and Subway?

2005-12-23 Thread Karl Guertin
On 12/23/05, Bob Ippolito [EMAIL PROTECTED] wrote: I'm sure you could do this statically rather easily if you simply used more than one class in the document, or used more advanced features of CSS. It's not so much about doable as it is about convenient. I know a couple ways to work around

[TurboGears] Re: Egg on my face...

2005-12-23 Thread Jared Kuolt
Fedora has some serious problems installing TurboGears. Search the group for fedora and you'll see what I mean. On 12/23/05, Michele Cella [EMAIL PROTECTED] wrote: Bob Ippolito wrote: Can someone give me a URL or a history on why Egg is used to package TurboGears if so many

[TurboGears] Re: Egg on my face...

2005-12-23 Thread Bob Ippolito
Bob Ippolito wrote: Can someone give me a URL or a history on why Egg is used to package TurboGears if so many distributions have a problem with it... I ask because I have moved my laptop form Windows to FC4, and I find, with quite a bit of humor and frustration, that, although

[TurboGears] Re: Egg on my face...

2005-12-23 Thread Michele Cella
Bob Ippolito wrote: Copies are a good thing because they are the specific version that has the egg metadata, which is usually newer than what your managed package has. In your configuration, you'll probably get different packages with import foo and require('foo'); import foo. That's

[TurboGears] Re: Modules - Is this the way it is?

2005-12-23 Thread David Stanek
On 12/21/05, Alvin Wang [EMAIL PROTECTED] wrote: Flickr based photo album I would be more than happy to help you along with this. It is something that I need too. I would be cool if you could open this up like Jared did with his blogging software at http://toastygoat.org/trac. -- David

[TurboGears] Re: Include CSS links dinamically (using sitetemplate)

2005-12-23 Thread Koba
Kevin Dangoor wrote: On 12/23/05, Claudio Martínez [EMAIL PROTECTED] wrote: I've been checking the source code but I cannot find a way to dinamically include a CSS link to be used by the sitetemplate. I have tried setting self.css, css and returning tg_css from the controller with no

[TurboGears] TurboTunes Tutorial fails with CherryPy error

2005-12-23 Thread stufuller
I've installed TurboGears from svn (370) and followed the TurboTunes tutorial. After I've loaded up the model, run tg-admin sql create, and 'mounted' CatWalk as per the instructions, I haven't been able to get CatWalk to work, I get: 27.0.0.1 - - [2005/12/23 23:08:14] GET

[TurboGears] Re: Even better better error handling

2005-12-23 Thread [EMAIL PROTECTED]
If I might throw a couple of cents in -- This is really interesting, and the rule-based error handler dispatch is very cool. But I think the formulation in ticket #219 is a lot more clear. More precisely I think that myself of 6 months from now, looking at something I write now, will have a lot

[TurboGears] Re: Modules - Is this the way it is?

2005-12-23 Thread Alvin Wang
I am going to open most of my stuff up. I am currently working on a CMS framework, new security system, and data controller enhancements. I hope to have something to show by New year. http://jamesclarke.info/projects/flickr/ is the thing to use in my preliminary testing. I wanted to allow