Okay, I planned on writing a long and bitchy post and still pray
someone would show me help and light.....but i stumbled over it now

took long to realize table_name is not an SA option, though it damned
looks like it

The least set of options to configure beaker with SA is:

beaker.session.type = database
beaker.session.table_name = auth_session
beaker.session.sa.url = mysql://


Also make sure NOT to include namespace_class in config file, as it
wont get evaled and overrides type settings thus causing TypeError:
'str' object is not callable, only type gets evaled correctly (for
both: 'ext:database', 'database' and similarly memcached and the
others ofc too).

Robert's code above did patch exactly this, evaulating namespace_class
and loading the class manually

btw: should namespace_class not be removed as an config option as it
crashes type config?

On Oct 28, 7:14 pm, Robert Ian Smit <[EMAIL PROTECTED]> wrote:
> On Oct 28, 5:49 pm, Ben Bangert <[EMAIL PROTECTED]> wrote:>
>
> > Why do you need to set the namespace class like that? You can't do:
> > beaker.cache.sa.url = ....
> > etc.
>
> > In the ini file?
>
> My configuration was using namespace_class instead of type. Maybe
> there used to be a good reason for doing that, but now there isn't.
>
> I updated my configuration and removed the code from load_environment.
>
> Thanks.
>
> Bob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to