Re: Other Globals in %once
Ken Miller <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
David Wheeler wrote:
> Hi All,
>
> Can you take a quick look at this thread on bricolage-devel?
>
> http://marc.theaimsgroup.com/?t=108307439800003&r=1&w=2
>
> The upshot is that some globals we're setting for the Bricolage Mason
> burner aren't appearing in %once blocks. This is (somewhat) expected,
> but it's odd that Serge only gets an error periodically. Note that
> we're using the "in_package" parameter.
I'm going to chime in here and say this problem is similar to what I've
been experiencing. I had to remove all my %once blocks and just use
'inline perl' to access set_global() variables. Since <%once> blocks
are setup as closures, perhaps that has something to do with the problem?
I'm also seeing another problem: if I change a Mason component, I get
the same error when the component reloads for the first time - this
happens on each instance of the mod-perl enabled Apache process. Once
the component has reloaded, it's fine.
Very strange.
Cheers!
-klm.
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click