Sounds like you want something like threading.local
It's not my area of expertise, but you may be able to pick up some
hints on how to use it from 
http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser

On Oct 27, 8:53 am, "William Battersea" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I'm probably describing this poorly because I've never done this and I come
> from a PHP background, but...
>
> Is there anyway that I can have some variable available to all the user
> sessions without resorting to a database.
>
> E.g. I suppose I want a variable 'busy'. If any user initiates a piece of
> code, it sets busy to 1, and when the process is over, it sets it to 0. If
> another user attempts to initiate the process while busy is 1, some other
> action is taken.
>
> I don't want to have to use a database to do this.
>
> And it might sound like a weird problem, but basically I have django
> triggering a physically process with a microcontroller (via serial
> communication).
>
> If I'm totally going about this the wrong way, please let me know.
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.15.10/1091 - Release Date: 10/24/2007
> 2:31 PM


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

Reply via email to