Re: Authorization and forbidden view

2011-03-25 Thread drebbin
resource_url(self.request.context, self.request, ...) or Thanks. This solves it. Still I wonder why the context as passed to the view callable and the context of the request are different beings. Is it because a redirect happened because of the 'forbidden'? KR, drebbin -- You received

Re: Google Summer of Code 2011

2011-03-25 Thread Juliusz Gonera
Juliusz Gonera wrote: See also http://wiki.python.org/moin/SummerOfCode/2011 I hope to hear back from them soon. I'll let you know when I do. OK, thanks. Hope to hear something soon. Any news? -- Juliusz Gonera http://juliuszgonera.com/ -- You received this message because you are

Re: Pyramid book at PyCon

2011-03-25 Thread Thijs Engels
Chris, When will this book become available via the website and/or (online) book shops? Thijs On Mon, 07 Mar 2011 01:18 -0500, Chris McDonough chr...@plope.com wrote: On Sun, 2011-03-06 at 23:31 -0600, Joe Dallago wrote: Any idea of how much it will be? Not entirely sure, but somewhere

Re: Authorization and forbidden view

2011-03-25 Thread Chris McDonough
On Fri, 2011-03-25 at 01:33 -0700, drebbin wrote: resource_url(self.request.context, self.request, ...) or Thanks. This solves it. Still I wonder why the context as passed to the view callable and the context of the request are different beings. Is it because a

Re: Google Summer of Code 2011

2011-03-25 Thread Chris McDonough
On Fri, 2011-03-25 at 11:08 +0100, Juliusz Gonera wrote: Juliusz Gonera wrote: See also http://wiki.python.org/moin/SummerOfCode/2011 I hope to hear back from them soon. I'll let you know when I do. OK, thanks. Hope to hear something soon. Any news? Not yet. - C -- Juliusz

Re: Pyramid book at PyCon

2011-03-25 Thread Chris McDonough
On Fri, 2011-03-25 at 11:48 +0100, Thijs Engels wrote: Chris, When will this book become available via the website and/or (online) book shops? Within a month or so. - C Thijs On Mon, 07 Mar 2011 01:18 -0500, Chris McDonough chr...@plope.com wrote: On Sun, 2011-03-06 at 23:31

Re: Pyramid book at PyCon

2011-03-25 Thread Matt Feifarek
On Sat, Mar 5, 2011 at 12:03 PM, Chris McDonough chr...@plope.com wrote: FYI, a printed edition of the Pyramid documentation (The Pyramid Web Application Development Framework) will be available at the PyCon bookseller during the conference. The book covers Pyramid 1.0. Is this the same

Re: Pyramid book at PyCon

2011-03-25 Thread Chris McDonough
On Fri, 2011-03-25 at 13:19 -0500, Matt Feifarek wrote: On Sat, Mar 5, 2011 at 12:03 PM, Chris McDonough chr...@plope.com wrote: FYI, a printed edition of the Pyramid documentation (The Pyramid Web Application Development Framework) will be available at the

How would one use MongoEngine with Pyramid?

2011-03-25 Thread Seth
I'm looking for information on how to correctly use mongoengine with Pyramid. Due to the fact that mongoengine uses a global connection object that doesn't work well with threads (see http://goo.gl/wB0MZ), the default mongodb setup (as outlined in the Pyramid Cookbook here: http://goo.gl/N94YJ)

routes.util __call__ crash sometimes without any understandable reason (for me :-) )

2011-03-25 Thread tuck
Hi I'm using pylons 1.0 with apache2/mod_wsgi in a webapp (production use) And sometimes I've got this kind of crash : I don't know how to deal with this Exception ... any idea ? WebApp Error: : Could not generate URL. Called with args: () {'action': 'controleSubChapterPdf', 'controller':

Re: How would one use MongoEngine with Pyramid?

2011-03-25 Thread oO
I'm not using MongoEngine, so I don't know about the particulars. I am however using PyMongo, and I'm using a different setup from the cookbook. I setup the mongo connection as part of the RootFactory object (the one in config that returns the root resource) When creating the root object, the

paster/pylons crashing

2011-03-25 Thread Justin Francis
I am using pylons on multiple machines, each with completely different hardware (one of them is a virtual box), and with slightly different Ubuntu environments. On both machines I get the following two errors, usually after I hit the web server with moderate traffic for about a minute. 1. after

Re: paster/pylons crashing

2011-03-25 Thread Justin Francis
here is another crash i am getting frequently: *** glibc detected *** /usr/bin/python: double free or corruption (! prev): 0x09930e10 *** === Backtrace: = /lib/tls/i686/cmov/libc.so.6(+0x6b591)[0xb74af591] /lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0xb74b0de8]

Re: paster/pylons crashing

2011-03-25 Thread Justin Francis
in the case where paster exits without printing any error messages, it is due to a segfault. i ran paster with strace, and here are the lines right before it exits: [{WIFSIGNALED(s) WTERMSIG(s) == SIGSEGV}], 0) = 3928 --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigaction(SIGINT, {SIG_DFL, [], 0},

Re: paster/pylons crashing

2011-03-25 Thread Alexandre Conrad
I see mysql in here, so my hint would be that the mysql driver you use to access you database may be buggy? 2011/3/25 Justin Francis jawed.youniversityventures@gmail.com: in the case where paster exits without printing any error messages, it is due to a segfault. i ran paster with strace,

Re: tutorial / screencast

2011-03-25 Thread adcooley
Hey, so I made one that starts with setup and goes into building a wiki using Turbogears...not sure if it works for you, but here you go! http://blog.youtorialmarket.com/post/3419069419/turbogears-the-fastest-way-to-start-building-dynamic On Mar 23, 12:51 pm, Vincent Côté-Roy