Re: Pylons + Google App Engine

2008-04-09 Thread Jamie Wilkinson
This one time, at band camp, Alagu Madhu wrote: Hi How to get started with Pylons and Google App Engine ? Follow the appengine tutorial, and then apply your pylons knowledge to it. it's WSGI so bootstrapping your application into it should be pretty easy. The hard part will be porting your

Re: Pylons for a seminar registration app?

2007-12-23 Thread Jamie Wilkinson
This one time, at band camp, Nicolai Richter (Gm) wrote: The main functions of project will be: The lca2007 website performs a lot of these features already.. You'll probably have to hack on it a bit, but: it's pylons, it's CRUD, it exists and thus you won't have to reimplement it all :) bzr

Re: moin moin integration, please help

2007-12-15 Thread Jamie Wilkinson
This one time, at band camp, Max wrote: On Oct 9, 2:51 pm, jose [EMAIL PROTECTED] wrote: Hi all, I am trying to get moinmoin integrated into a pylons project Hopefully you're still watching this... I'm working on finding projects that integrate with MoinMoin in an interesting way. If you

Re: Formencode file upload validation

2006-09-27 Thread Jamie Wilkinson
This one time, at band camp, Daniel Lyons wrote: This one's biting me also. I fixed it for the mean time by making a copy of FileUploadKeeper and changing these lines: I forgot about this message :) I made my own validator, to use instead of FileUploadKeeper: class

Re: sqlalchemy and threadlocal docs on pylons tutorial

2006-09-18 Thread Jamie Wilkinson
This one time, at band camp, Michael Bayer wrote: the threadlocal mod was meant primarily as a migration path from the 0.1 series where such behavior was the default, and should probably not even be used for new projects, in favor of the sessioncontext plugin which is more generic and less

Re: AuthKit erroro following manual.txt

2006-09-13 Thread Jamie Wilkinson
This one time, at band camp, James Gardner wrote: Hi Matt, That's very strange. I haven't used that version of SQLAlchemy with AuthKit so perhaps there are some compatibility issues. I will have a look into them tomorrow unless anyone else has any suggestions? I found this in a few places

auto_link_urls in Webhelpers broken

2006-08-31 Thread Jamie Wilkinson
Hey, auto_link_urls in WebHelpers is broken, it doesn't fully match some urls. Attached is a test program to demonstrate. Also, there's some interesting reading on URL matching regexes on Abigail's page here: http://foad.org/~abigail/Perl/url2.html . Don't click on the program link if you've

Re: auto_link_urls in Webhelpers broken

2006-08-31 Thread Jamie Wilkinson
This one time, at band camp, Philip Jenvey wrote: On Aug 30, 2006, at 11:05 PM, Jamie Wilkinson wrote: Hey, auto_link_urls in WebHelpers is broken, it doesn't fully match some urls. Attached is a test program to demonstrate. You didn't attach anything =] Woops

counter() method for WebHelpers

2006-08-30 Thread Jamie Wilkinson
Hey, As mentioned in chat, here's a non-patch for WebHelpers that adds counter() and reset_counter() methods, which you can use to be really lazy when you want to put count numbers at the start of, say, table rows. --~--~-~--~~~---~--~~ You received this message

Re: Formencode file upload validation

2006-08-29 Thread Jamie Wilkinson
This one time, at band camp, Ian Bicking wrote: Jamie Wilkinson wrote: Hey, Does anyone have an example of using FormEncode's FieldStorageUploadConverter or FileUploadKeepr ? There's no example in the docstrings and I'm just having a hard time applying them in the same way as any

Re: Pylons-powered sites

2006-08-23 Thread Jamie Wilkinson
This one time, at band camp, Chas Emerick wrote: Some details for those who are interested: - Both sites run behind lighttpd using scgi. - lighttpd is configured to serve all of the static content -- I know that pylons does etag better, and last-modified-since headers properly, etc., but

Re: Configuring PYTHONPATH with fcgi

2006-08-13 Thread Jamie Wilkinson
This one time, at band camp, Matthew Burgess wrote: So far, everything else has been able to be configured in such a way as to not affect anything system-wide. Is there a setting/technique I've missed in the docs that will enable me to get FastCGI to find the modules in my home directory

Formencode file upload validation

2006-08-13 Thread Jamie Wilkinson
Hey, Does anyone have an example of using FormEncode's FieldStorageUploadConverter or FileUploadKeepr ? There's no example in the docstrings and I'm just having a hard time applying them in the same way as any of the other validators. --~--~-~--~~~---~--~~ You

SQLAlchemy integration article (Attn: Alex Greif)

2006-08-10 Thread Jamie Wilkinson
I just found this comment: http://onebiglibrary.net/story/myghty-pylons-alchemy#comment-222 and found the link Pylons SQLAlchemy integration doesn't return a useful page. Alex, are you on here, and can you point to a working copy of your tutorial? I've been playing with different ways to use

m.write munging checked attribute of h.radio_button

2006-08-04 Thread Jamie Wilkinson
I've got this hard to reproduce problem, because it only happens when trying to render a radio button when using WebHelpers, and only when rendering it to the response. In a template, I have: % h.radio_button('foo', 1, checked=True) % and it gets rendered as: input name=foo id=foo type=radio

Re: Blogging and Aggregation, and a graphic of the Pylons stack

2006-08-04 Thread Jamie Wilkinson
This one time, at band camp, Ben Bangert wrote: Nicholas pointed out this great blog entry by Jamie about Pylons with a nice graphical representation of the Pylons stack: http://spacepants.org/blog/pylons-paste-stack Heh, I was thinking this morning that I should update it, as 0.9 makes the

Re: Blogging and Aggregation, and a graphic of the Pylons stack

2006-08-04 Thread Jamie Wilkinson
This one time, at band camp, ToddG wrote: I was gonna try to fiddle with a nice OmniGraffle version myself but held off when you [Ben] mentioned one was in the works and that internals were changing (this was before 0.9). I figured there was a slim chance of me getting it more accurate than

Re: No interactive debugger only forwarding loop traceback

2006-08-03 Thread Jamie Wilkinson
This one time, at band camp, benchline wrote: Apparently though, the error templates use that mapping. I put that line back in and the error pages worked correctly again. Yeah, when playing with the default route I put in an explicit m.connect('error/:action/:id', controller='error') at the

Re: Pylons + plain DB-API

2006-08-01 Thread Jamie Wilkinson
This one time, at band camp, Alagu Madhu wrote: Hello, I like to use plain DB-API (psycopg) in pylons. idea's or example. Sounds achievable. Either connect to the database once per connection in lib/base.py:BaseController.__before__, or at application setup in, er,

Re: paste eating exceptions in test suite that would otherwise be shown in debugger

2006-07-27 Thread Jamie Wilkinson
This one time, at band camp, Ben Bangert wrote: Yes, even if the traceback isn't shown, it will still toss a 500 giving you the same issue. paste.fixture assumes you want a 200 response, anything else and it blows. If you are expecting a 500 response, telling it you expect this will make it

Re: paste eating exceptions in test suite that would otherwise be shown in debugger

2006-07-27 Thread Jamie Wilkinson
This one time, at band camp, Ben Bangert wrote: On Jul 27, 2006, at 9:09 AM, Ian Bicking wrote: The error-catcher shouldn't be in place, or at least not activated. When using paste.fixture it sets environ['paste.throw_errors'] = True, which both error catchers should(?) respect and thus let

paste eating exceptions in test suite that would otherwise be shown in debugger

2006-07-26 Thread Jamie Wilkinson
Dunno how many of you are using paste.fixture to be good little programmers and test your webapps, but hopefully you all are and have come up with a solution to this one: I'm often getting errors trapped by the exception handler in Pylons, and in normal operations this would be fine, because

404 on missing templates

2006-07-25 Thread Jamie Wilkinson
When Myghty 404s a m.subexec request, that gets passed up to the Pylons error handler, but it's difficult to know which template can't be found because the error is a helpful Error 404, HTTP return code. I want to modify that and get back the name of the template that doesn't exist. Has anyone

[bug] Globals instance has no attribute __repr__

2006-07-13 Thread Jamie Wilkinson
Hey, I suspect this might already have been fixed in 0.9, but just in case it hasn't: Error: Error(AttributeError): Globals instance has no attribute '__repr__' File: /home/jaq/lib/python2.4/Pylons-0.8.2-py2.4.egg/pylons/helpers.py line 42 Context:39:

Re: missing components and templates folder in custom egg

2006-06-19 Thread Jamie Wilkinson
This one time, at band camp, Alex Greif wrote: I am using Pylons 0.8 for my application that is packaged with the command: python setup.py bdist_egg In former times when I used subversion the egg contained everything fine. After removing all .svn folders, besause of a switch to bazaar-ng the

ajaxy interactive debugger broken?

2006-05-30 Thread Jamie Wilkinson
Hey, I keep getting this message in the output of paste when I get 500 internal server error, and unfortunately no interactive ajaxy debugger. Paste 0.9.3, Pylons 0.8.1, has anyone else seen it? Kinda hard to trace where it's coming from without any traceback. Error -

Re: ajaxy interactive debugger broken?

2006-05-30 Thread Jamie Wilkinson
This one time, at band camp, Ben Bangert wrote: Yep, it's due to the Paste interface changing in Paste 0.9.2 or so. You can safely update to Pylons 0.8.x branch which will shortly become the 0.8.2 release: easy_install -U http://pylonshq.com/svn/Pylons/branches/0.8.x/ Cool. That will fix

Re: help with Routes...

2006-05-23 Thread Jamie Wilkinson
This one time, at band camp, Alexandre CONRAD wrote: I have the following routing.py setup: map.connect('css', '/css/mp_v1.css') map.connect('img', '/img') map.connect(':controller/:action/:id') map.connect('*url', controller='template', action='view') in my main

Re: Pylons copy and tagline for the website

2006-05-18 Thread Jamie Wilkinson
This one time, at band camp, Martin wrote: Well, how about the following tagline: Pylons... bringing fast and powerful together Copy: Pylons is a slim framework enabling you to develop web applications efficiently, customize them freely and deploy them easy(easily?) as a breeze. Both easy as

Setting up the connection to the database in AuthKit SecureController, separately to BaseController

2006-05-13 Thread Jamie Wilkinson
Hey, Sort of a bug, more of a gotcha, and I wanted to post it here in case others fall prey to it, and also for James and Ben to consider as they develop AuthKit further. I am rolling my own Authenticator and AuthStore derived classes, and feeding them to the AuthKit Security middleware, and

Re: Setting up the connection to the database in AuthKit SecureController, separately to BaseController

2006-05-13 Thread Jamie Wilkinson
This one time, at band camp, Jamie Wilkinson wrote: Anyway, the workaround to this was to copy the two lines that set up the engine from BaseController.__call__() and put them in SecurityController.__before__, which PylonsBaseSecureController.__call__ hooks before it runs. This feels hackish

[patch] deprecation warning in AuthKit

2006-05-11 Thread Jamie Wilkinson
Attached is a patch to fix a deprecation warning in AuthKit's Security middleware when using latest Paste. Index: authkit/middleware.py === --- authkit/middleware.py (revision 803) +++ authkit/middleware.py (working

broken link on website

2006-05-10 Thread Jamie Wilkinson
Hey, http://pylonshq.com/docs/0.8.1/install.html links to latest development version which 404s; changing the version number to 0.8.1 returns the correct page. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: pylons app with many databases

2006-05-10 Thread Jamie Wilkinson
This one time, at band camp, Ben Bangert wrote: Hopefully someone who's used SQLAlchemy a bit more can chime in on how they'd setup multiple connections with it. I've only used single connections, but I'd hazard a guess that you'd want to keep an attribute in Globals to each of your engines, and

writing external commands that use the same data model as a Pylons app

2006-04-21 Thread Jamie Wilkinson
I'd like to be able to write some commandline tools that use the same data model as the Pylons app I'm developing; however one can't just import the model because it depends on some Pylons infrastructure, namely PackageHub, and thus also the config code from PasteScript. It seems that the

Project directory on pylonshq.com unbrowseable

2006-04-17 Thread Jamie Wilkinson
Hi! I'm trying to work out if there's any changes in Pylons dev that might fix the noestests problem I posted about earlier, and at the moment the url http://pylonshq.com/project/ returns this: ERROR: current transaction is aborted, commands ignored until end of transaction block SELECT

nosetests fails because sqlobject __connection__ isn't defined

2006-04-15 Thread Jamie Wilkinson
Hi, New to the list, have been using pylons for about a week now and I'm massively impressed with the speed at which I can develop. I'm porting a couple of apps from straight Myghty+SQLObject to Pylons and it's amazing how trivial this is. So, onto the problem: I have a basic pylons