I just got a hello-world Pylons app running on GAE without using the appengine-monkey/homedir scripts and using the stock paster template (and an INI file). I'm not sure if I'm going to use GAE seriously, but it's an interesting problem to work on. If I am, then personally, I would rather not use an entirely different app template and config system.
There were basically three steps: 1. Wrangle all the dependencies together into a 'lib' directory and set up sys.path in my main .py file. This was the easy part. I did have to yank the simplejson out of Django to replace the simplejson that Pylons depends on, which is partly in C. 2. Patch Paste Deploy with a new loader class, to load a function spec instead of an egg spec, without changing anything else about the INI file format. In other words, my app:main looks like this: [app:main] use = func:myhello.config.middleware:make_app full_stack = true 3. Hack on Mako/the render function a bit. I'm still not done with this one. Mako's TemplateLookup uses various non-supported functions such as os.makedirs and tempfile.mkstmp. The Template class works fine, of course, but TemplateLookup is rather critical for any serious usage. Has this been addressed elsewhere? I'm just now sticking my nose into the GAE situation. I'm sure there will be more problems down the line, but if anyone else is interested in this approach I will write up some docs and submit the Paste Deploy patch. BTW, the performance I'm getting when hitting it with apache bench (ab) is kind of awful. Haven't profiled yet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
