Sorry for multiple messages.
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email to pylons-disc...@googlegroups.com.
To unsubscribe from this group, send email to
pylons-discuss+unsubscr...@googlegroups.com.
For
On Oct 5, 3:16 pm, Stratos Papadopoulos papad...@gmail.com wrote:
However under Ubuntu 10.04 and python 2.6, paste is not able to serve
any page, and I get the following error messages:
the following packages exist in the virtual environment:
Routes-1.12.3-py2.6.egg,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 5 Oct 2010, at 14:40, Alec Munro wrote:
I generally don't do anything to
close the session. Should I? If so, what?
You could try Session.remove() as per:
I think that may have been just what I needed. When I started this
project, it was stateless, not using a database. I added the database
afterwards, but I didn't change the basecontroller.
Got to clean some things up. :)
Thanks!
On Oct 6, 10:45 am, Graham Higgins gjh...@bel-epa.com wrote:
Hi.
I'm trying to set an attribute on c from a decorator, like so:
def dec1():
def wrap_fn(f):
c.msg = 'hi'
return f
return wrap_fn
@dec1
def create(self):
return render('create_tmpl')
My template contains ${c.msg}
When the web server restarts to apply to code
I forgot to mention that this only happens with the attributes set
from the decorator. Setting them from other places, e.g. the
controller method/action, works fine.
On Oct 6, 4:42 pm, Matt H matt2...@gmail.com wrote:
Hi.
I'm trying to set an attribute on c from a decorator, like so:
def
Hi,
I've been experimenting with Store and Pylons. I'm new to Pylons, and
also to Storm threaded apps. I've installed an enabled middlestorm
middleware[1], and it seemed like it would work. However, when I
refresh a page what calls one of the controllers where storm retrieves
some data, SQLite
On Oct 6, 8:42 am, Matt H matt2...@gmail.com wrote:
Hi.
I'm trying to set an attribute on c from a decorator, like so:
def dec1():
def wrap_fn(f):
c.msg = 'hi'
return f
return wrap_fn
@dec1
def create(self):
return render('create_tmpl')
Doesn't `dec1` need
I don't think there's an issue with my syntax (unless I've made a typo
here) because I have many other decorators which were created in the
same way.
How do you create one with the decorator package?
On Oct 6, 6:22 pm, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote:
On Oct 6, 8:42 am, Matt H
On Wed, Oct 06, 2010 at 08:42:21AM -0700, Matt H wrote:
Hi.
I'm trying to set an attribute on c from a decorator, like so:
def dec1():
def wrap_fn(f):
c.msg = 'hi'
You're doing this assignmeny once, when wrapping the function (i.e. at module
import time). You need to do this
On Wed, Oct 06, 2010 at 01:38:22PM +0200, Branko Vukelic wrote:
I've been experimenting with Store and Pylons. I'm new to Pylons, and
also to Storm threaded apps. I've installed an enabled middlestorm
middleware[1],
Dangling footnote, I assume you meant to point to
[1]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6 Oct 2010, at 12:38, Branko Vukelic wrote:
I've been experimenting with Store and Pylons. I'm new to Pylons, and
also to Storm threaded apps. I've installed an enabled middlestorm
middleware[1], and it seemed like it would work. However, when I
You're right. I tried to remove fluff for the example I gave you but I
pruned back too much.
But yeah, I was screwing up on my syntax after all. :P
Thanks.
One thing: Why was c only being assigned once in my original code?
On Oct 6, 6:35 pm, Marius Gedminas mar...@gedmin.as wrote:
On Wed, Oct
On Wed, Oct 6, 2010 at 7:56 PM, Graham Higgins gjh...@bel-epa.com wrote:
SQLite is not the best choice in a multi-threaded context. The issues is
discussed in the Storm manual:
https://storm.canonical.com/Manual#Managing%20stores
Most of which I cribbed for an article on Storm and Pylons:
On Wed, Oct 06, 2010 at 08:35:56PM +0300, Marius Gedminas wrote:
Even more correct code would use http://pypi.python.org/pypi/decorator,
like Wyatt suggested:
def dec1():
@decorator
def wrap_fn(f, *args, **kw):
c.msg = 'hi'
return f(*arg,s **kw)
Greetings Pyloneers,
We, Montréal-Python, are the coordinators of the Python track at
ConFoo 2011 and we are very proud to announce our call for speakers.
PHP-Québec, Montréal-Python, Montreal.rb, W3Qc, and OWASP Montréal are
organizing the first edition of the ConFoo conference, which will be
On Tue, Oct 5, 2010 at 10:17 PM, Matt H matt2...@gmail.com wrote:
How would I go about removing whitespace from the html output of my
mako templates? I see that in the /data/templates directory the
templates are cached with a ton of whitespace, so how would I execute
a function on the output
17 matches
Mail list logo