Re: Pyramid #twitter #tag

2011-05-31 Thread Dunk Fordyce
#pyramid/wild-leap-of-imagination On Wed, Jun 1, 2011 at 1:15 AM, alvivar andresalvi...@gmail.com wrote: There is any official tag for Pyramid? If not, let's invent one! I like to keep an eye on what people is talking or sharing about the framework in Twitter, so, maybe an

Re: [Pylons 1.0, Routes] I look for an url generator but in Javascript

2011-04-14 Thread Dunk Fordyce
Yes, I've implemented this for some of my pylons projects along with Mako2JS tool (to compile mako templates in js). I will release it in about a week, need to do some clean up on it first. I am VERY interested in seeing Mako2JS! ( i already have a routes to js converter... :) Please annouce

static file cache headers

2010-02-28 Thread Dunk Fordyce
Hello, I want to serve a file from Pylons with just the headers: content-type, content-length and expires=some time in the distant future. What is the best way? FileApp seems to add more headers than I want. Iv also tried the following but somehow the response ends up with content-length=0 and

routes and subdomains

2009-01-13 Thread Dunk Fordyce
Hello, Im having some trouble using routes with subdomains properly. The situation is as follows... The site runs at main.mydomain.co.uk. Almost all of the site is served from this domain but there is also audio.mydomain.co.uk which serves some audio. This subdomain runs on a seperate machine

error running same pylons app with two different databases under mod_wsgi

2008-10-08 Thread Dunk Fordyce
Hello, We've got a bit of an odd error with sqlalchemy. The situation is we're running the same pylons app under two subdomains each connected to a different database. Each app sits in its own virtualenv but is the same code. Each connects to a different mysql database. The first app runs fine

Re: error running same pylons app with two different databases under mod_wsgi

2008-10-08 Thread Dunk Fordyce
Hi thanks for the quick response, What you would be best off doing is use mod_wsgi daemon mode to create separate daemon process groups to run each WSGI application (virtual host) within. That way they run in separate processes and can't interfere with each other. We are actually running in

Re: error running same pylons app with two different databases under mod_wsgi

2008-10-08 Thread Dunk Fordyce
hrmmm i think there might of been some developer error or something because after changing the display-names everything seems to be working ok... perhaps something got confused. On Wed, Oct 8, 2008 at 1:48 PM, Dunk Fordyce [EMAIL PROTECTED]wrote: Hi thanks for the quick response, What you

temporary upload location

2008-09-26 Thread Dunk Fordyce
Hello, When uploading files to my pylons app files are being put in /tmp. Is it possible to change this location? Im not 100% sure if this is a pylons thing or an apache setting ( or maybe even mod_wsgi? ). Unfortunately the /tmp dir on our server is mounted on quite a small partition. Dunk

Re: Decorator problem

2008-05-30 Thread Dunk Fordyce
On Fri, May 30, 2008 at 9:59 AM, Karlo Lozovina [EMAIL PROTECTED] wrote: Here is the problematic code, decoraor first (it doesn't do very much :): def debugprint(f): def new(*args): return f(*args) return new And the controller: @debugprint def testing(self, xx):

Re: parameterized controllers

2008-05-19 Thread Dunk Fordyce
for a route like /company/:company_id/child_resource/id i do something like: class ChildResourceController(BaseController): def _get_method_args(self): args = BaseController._get_method_args(self) args['campaign'] = model.Company.get(args['campaign_id']) return args

odd nosetests error

2008-04-08 Thread Dunk Fordyce
hello, Im trying to write some unittests however I get this strange error when running them: == ERROR: Failure: AttributeError ('module' object has no attribute 'helpers')

Re: Session handling

2008-04-08 Thread Dunk Fordyce
Just as a vote of confidence, I pondered the same today two things today! Why are there no official docs for session in the pylons docs ( nor indeed the cookbook) and why not call session.save() in a try/finally in your base controller __call__() (altho that would it would probably be more like

logging POST data

2008-03-31 Thread Dunk Fordyce
Hello, Has anyone ever written some middleware to log POST requests Secondly, if Im doing it myself, is it safe to read wsgi.input and then seek it back to 0? Thanks Dunk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Routes 1.8 Release

2008-03-28 Thread Dunk Fordyce
yay! iv wondered every day this week when you would release :) On Fri, Mar 28, 2008 at 9:10 PM, Ben Bangert [EMAIL PROTECTED] wrote: I'm releasing Routes 1.8 today, it has a few fixes for some unicode bugs, but the main reason for the announcement is that how map.resource works is being

Re: AJAX Puzzle

2008-01-30 Thread Dunk Fordyce
The browser doesnt know the difference between two images with the same name, it presumes its loaded it already. The simple way around is to just append some random junk onto the end of the URL like /images/next?timestamp --~--~-~--~~~---~--~~ You received this