I did something similar using the __before__ method
class CustomerController(BaseController):
def __before__(self):
if 'cust_id' in request.environ['pylons.routes_dict']:
cust_id = request.environ['pylons.routes_dict']
['cust_id']
Not sure if you tried this, but this works in one of my uses of count
from sqlalchemy.sql import func
selectstmt = select([posts_table,func.count(comments_table.c.id)],
posts_table.c.id==comments_table.c.post_id).\
group_by(posts_table.c.id, posts_table.c.content)
so, for your
I remembered seeing this when I was looking at Turbogears. It looks
like it originally came from elsewhere and you might be able to
incorporate it easily enough. Not sure it would work in this
environment though, what happens if process restarts?
In another message string it was mentioned that James was working on a
replacement for Pudge? Any info on this, i would potentially be
interested in helping as I have a desire for documentation system.
Also, a little more poking around: I ran setup.py --help-commands
and got the following
Ok I got pudge working (Still figuring out the formatting). In my
project directory: c:\\path\to\my\project
$python c:\python25\scripts\pudge --modules theme=pythonpaste.org
Wasn't able to run it from setup.py, and for some reason even though
the pudge script was python scripts folder, and