Re: docs unclear re using zope global registry

2011-02-19 Thread Chris McDonough
On Sat, 2011-02-19 at 07:45 +, Chris Withers wrote: > On 19/02/2011 00:25, Iain Duncan wrote: > > Further, in case it's useful, if you do this in your app start up code. > > > > gsm = getGlobalSiteManager() > > config = Configurator( registry=gsm ) > > > > then whenever you use > > > > request.

Re: Global variables

2011-02-19 Thread Chris Withers
A bit late in on this one, sorry: On 18/02/2011 23:15, Iain Duncan wrote: > > Some of us *do* write apps that expect to be extended / reconfigured via > > the ZCA registry, but Pyramid itself doesn't mandate that (or even > > document it all that well). If such an app uses th

Re: git?

2011-02-19 Thread Chris Withers
On 19/02/2011 08:01, Chris McDonough wrote: Chris, is that a doc bug target? I guess it should just say that something that implements zope.component.interfaces.IComponents? Please someone submit a pull request wrt to this topic. This is a git thing, right? As such, it currently means nothing

Re: git?

2011-02-19 Thread Kyle Terry
On Sat, Feb 19, 2011 at 12:18 AM, Chris Withers wrote: > On 19/02/2011 08:01, Chris McDonough wrote: > >> Chris, is that a doc bug target? I guess it should just say that >>> something that implements zope.component.interfaces.IComponents? >>> >> >> Please someone submit a pull request wrt to this

Re: git?

2011-02-19 Thread Marius Gedminas
On Sat, Feb 19, 2011 at 08:18:45AM +, Chris Withers wrote: > On 19/02/2011 08:01, Chris McDonough wrote: > >>Chris, is that a doc bug target? I guess it should just say that > >>something that implements zope.component.interfaces.IComponents? > > > >Please someone submit a pull request wrt to t

Raw MySQL with SQLAlchemy using Pyramid framework

2011-02-19 Thread AwaisMuzaffar
Hello guys, I have recently made a decision to start using the Pyramid (python web framework) for my projects from now on. I have also decided to use SQLalchemy, and I want to use raw MySQL (personal reasons) but still keep the ORM features. The first part of the code in models.py reads: DBSess

Re: Raw MySQL with SQLAlchemy using Pyramid framework

2011-02-19 Thread Christoph Zwerschke
Am 19.02.2011 10:44 schrieb AwaisMuzaffar: Now from here how do I exectue a query for CREATE TABLE using raw MySQL. ... and recieve the following error: UnboundExecutionError: Could not locate a bind configured on SQL expression or this Session You're missing DBSession.configure(bind=engine) -

Re: default permission overriding

2011-02-19 Thread danjac...@gmail.com
As an aside, it would be a good idea to have a constant value instead of "__no_permission_required__". On 18 February 2011 17:14, Chris Withers wrote: > On 18/02/2011 16:48, Chris McDonough wrote: >>> >>> @view_config(context=Blog, name='add_entry.html', permission=None) >>> >>> ...seems an expli

Re: Raw MySQL with SQLAlchemy using Pyramid framework

2011-02-19 Thread Chris Withers
On 19/02/2011 09:44, AwaisMuzaffar wrote: I have recently made a decision to start using the Pyramid (python web framework) for my projects from now on. Yay :-) I have also decided to use SQLalchemy, Yay :-) and I want to use raw MySQL (personal reasons) Don't be an idiot ;-) The firs

Re: Raw MySQL with SQLAlchemy using Pyramid framework

2011-02-19 Thread Chris McDonough
On Sun, 2011-02-20 at 00:02 +, Chris Withers wrote: > > and I want to use raw MySQL > > (personal reasons) > > Don't be an idiot ;-) Not really funny. Please see http://docs.pylonsproject.org/community/conduct.html . - C -- You received this message because you are subscribed to the Goo