(RADIATOR) Radiator Version 3.9 released
Nick Rogness
nick at rogness.net
Thu Mar 18 12:54:47 CST 2004
On Thu, 18 Mar 2004, Hugh Irvine wrote:
>
> Hello Nick -
>
> Neither of these things are possible as they don't happen on a
> per-request basis.
>
> I suppose you could use a hook, but I would be very cautious about
> introducing race conditions and unexpected errors.
That may be true but it would save me from having to build 30
Handlers for the different AuthBy SQL and Session databases.
The idea is to add some attribute in a prehandler which identifes
the corresponding database(s). Since I know in prehandler what
databases to use it is simply a replacement and race conditions
would mostly be avoided.
I have 30 or so different databases with the exact same schema, so
the only difference is the DBI connection string. It's a pain to
have to use 30 different handlers just because I can't dynamically
change the DBSource and Session identifiers with a prehandler
hook.
So there is a very good use for it.
>
> There are some example hooks in the file "goodies/hooks.txt".
>
> regards
>
> Hugh
>
>
> On 18 Mar 2004, at 12:06, Nick Rogness wrote:
>
> >
> >
> > Does this version support have the ability to do replacement of
> > SessionDatabase or DBSource by attributes? For example:
> >
> > <Handler ....>
> >
> > SessionDatabase %{Some-attr-I-added-in-PreHandlerHook}
> >
> > <AuthBy SQL>
> > DBSource dbi:mysql:{Another-attr-I-added-in-PreHandlerHook}
> > ...
> > </AuthBy>
> >
> > </Handler>
> >
> >
> > It would be nice to have this feature. Any comments or ways to do this
> > yet without building a custom AuthBy module?
> >
--
Nick Rogness <nick at rogness.net>
-
How many people here have telekenetic powers? Raise my hand.
-Emo Philips
--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list