I guess you can only flatten/unflatten a valid appstruct (that has been
successfully deserialized). Invalid.asdict() returns a flat dictionary with
error info, but I wouldn't rely on unflattening it with
SchemaNode.unflatten().
The reason I'm interested in this question is that I needed a simil
To add to other answers - while using Mako I sometimes implement default
rendering like this:
${variable *or* '*some default value*'}
So, if variable is None, *some default value* is rendered. Don't know if
this will work with Chameleon though.
--
You received this message because you are sub
assuming your test works something like this...
class IntegrationTestBase(BaseTestCase):
def setUp(self):
self.app = TestApp(self.app)
any calls through self.app.get() / self.app.post() appear to stash
response cookies in app.cookies() ; the same cookies might be viewable
in the resp
Hi,
I am using pyramid_beaker in my app for session support. In a unit
test, I am making requests using WebTest as explained in
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/testing.html?awesome#creating-functional-tests.
My set up looks something like this:
settings = {'s
I was going to try and do this but it's being thrown in beaker when it the
user first hits the site. Our app doesn't get heavy enough usage for me to
move session storage over to something like memcached so I'm keeping it in
the DB - I'll probably go with the "cronjob polling db every hour" solu
Sadly, this did not work for me :(
On Sunday, May 6, 2012 11:51:17 PM UTC-5, Randall Leeds wrote:
>
> On Sun, May 6, 2012 at 5:48 PM, Parnell Springmeyer
> wrote:
> > I'm getting a lot of "MySQL Server has gone away" errors lately and I've
> > done everything I could in threads discussing this