On Aug 18, 2011, at 7:25 AM, Anthony wrote:

> On Thursday, August 18, 2011 10:09:26 AM UTC-4, Carlos wrote:
>  
>    now = request.now
>    from gluon import current
>    # assign any object(s) to current to be shared/accessed via the extended 
> methods.
>    current.now = now
>  
> Be careful about this -- I don't think we have finalized the namespace 
> conventions for the 'current' object yet (i.e., it's possible that in the 
> future the framework will use current.now for its own purpose, so this code 
> would end up overwriting that). I think there was talk about setting aside 
> something like 'current.app' for use by the application code. I suppose we 
> should figure out something more definitive soon.
> 

Good point. I don't recall the state of the discussion as we left it, but we 
really do want to protect the namespace.

BTW, I'd be surprised if the above assignments had any real effect, since 
request is already in current.

Reply via email to