Hi,

   First the question, then the explanation why a ask this...

   1. Are all the commands issued in an interactive shell run in the
same
      thread?

   2. Is it possible to make functions (eg: Model.objects.all())
called
      within the interactive shell read variables in the interactive
shell's
      namespace?

   3. Is there a way to test if I'm running in an interactive
environment?

   I use interactive shell for debugging. That works normally well
   unless I use a model manager that checks the user in the thread
(via
   thread_local) to grant different permissions.

   When using interactive shell I never ended to a suitable solution,
since
   thread_local does not work, I don't know how to write a variable
that
   could be read from within the manager (or any other function...),

Thanks

sandro
*:-)


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

Reply via email to