Yes, you can.  Since we require threaded_multihost, do this:

from threaded_multihost import threadlocals

user=threadlocals.get_current_user()

On Fri, Aug 28, 2009 at 3:55 PM, neridaj<[email protected]> wrote:
>
> Is it possible to access request.user from outside views? I have a
> receiver function that is connected to a request_finished signal, so
> that whenever a user logs in only products tagged with that username
> will be available. I'm using the satchmo simple demo and I have the
> function 'my_callback' defined in utils.py and the signal is
> registered in models.py, both located in localsite. Do I import the
> function and pass the username from the view, and then pass the query
> set on to the template?
>
> Thanks,
>
> Jason
>
>
> >
>



-- 
Bruce Kroeze
http://www.ecomsmith.com
It's time to hammer your site into shape.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" 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/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to