Re: How to change path to static files (./public/) dynamically

2007-12-13 Thread [EMAIL PROTECTED]
Aha, thank you, Ches. It's similar to what I want but the problem is that the quantity of different static_files paths I need is thousands, so with this mean I have to generate thousands of apps, yep? On Dec 13, 7:49 am, Ches Martin [EMAIL PROTECTED] wrote: Hi. Not exactly per-request with

Re: How to change path to static files (./public/) dynamically

2007-12-13 Thread Matt Feifarek
On Dec 13, 2007 10:28 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ...And evidently I get new problem: how to access session from that CustomURLParser.__call__() method defined in middleware? I think you're better off with a custom controller superclass than middleware; then you can have

Re: How to change path to static files (./public/) dynamically

2007-12-13 Thread [EMAIL PROTECTED]
...And evidently I get new problem: how to access session from that CustomURLParser.__call__() method defined in middleware? I have: if not vars().has_key('model'): import myproject.model as model if not vars().has_key('session'): from pylons import

Re: Upgrading existing project to newer Pylons

2007-12-13 Thread Christoph Haas
On Thu, Dec 13, 2007 at 11:47:58AM +0100, Marcin Kasperski wrote: Maybe I missed something, but ... what should I do to upgrade existing project to the new Pylons release? I mean, for example, patching middleware.py so it suits newer idioms, patching imports etc. Install the new

Re: How to change path to static files (./public/) dynamically

2007-12-13 Thread [EMAIL PROTECTED]
You're right, but this causes new questions: how to solve problems with large files, caching etc? On Dec 13, 6:38 pm, Matt Feifarek [EMAIL PROTECTED] wrote: I think you're better off with a custom controller superclass than middleware; then you can have access to all the stuff you're used to

apache/fcgi deployment question

2007-12-13 Thread Pete Taylor
Hi all... I've searched through the pylons discuss archives, and am still a bit stuck. I've read through the deployment guide for pylons/apache/fcgi/mod_rewrite at pylonshq, as well as most of the documents linked from it in reference. I'm pretty used to deploying rails applications in similar

Re: moin moin integration, please help

2007-12-13 Thread Max
Sorry for the delay, but I also need the name of your project. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To

Re: tg catwalk, django admin, simple crud like app?

2007-12-13 Thread Mark Ramm
DbMechanic aims to totally replace and exceed Catwalk. Chris posted a fair wack about it recently on the TG trunk list if you're interested. The catwalk implementation was pretty difficult to extend and maintain. But dbsprockets seems likely to be much easier to maintain/extend once it gets

Re: How to change path to static files (./public/) dynamically

2007-12-13 Thread Ian Bicking
Konstantin Alexandrov wrote: Hello. Is this possible with Pylons to change static files path in BaseController's __before__() method each time on request? I haven't followed any of this, but I thought I'd mention that you can do: def action(self): file_path = (calculate) app =

Bug in Mapper.generate?

2007-12-13 Thread Utku
Hi, The generate method prefers to use the route which has the least uncommon variables in it, but if route is not an exact match then a route with most common variables must be selected I suppose. The comment says the same thing but the code does the one I mentioned above. Here is what I mean

Routes map.resource and Non Alpha Chars

2007-12-13 Thread [EMAIL PROTECTED]
I hit up Ben Bangert with this briefly on IRC: I am using map.resource in the manner suggested by the docs. However, it blows up whenever the id has a encoded space in it. So, when /resource/id looks like /locations/Tulsa%20OK it fails. Ben suggested this is an issue with the default regexp

Re: tg catwalk, django admin, simple crud like app?

2007-12-13 Thread Ches Martin
On Dec 4, 2:39 pm, Rick Flosi [EMAIL PROTECTED] wrote: AdminPylon http://adminpylon.devjavu.com/ Anyone made any contact with this person? The new code real soon now message has been up for quite some time. I sent an email awhile ago asking if he/she could just put up what's done as a branch