On 10/7/2010 10:20 AM, jimgardener wrote:
[...]
> 
> When the view add_new_threadobj() is executed a couple of times,this
> is the print output
> adding for the first time,
> tm= <mytm.TM object at 0x94a83ec>
> TM::before::threads: {}
> TM:: <mytm.TM object at 0x94a83ec> add_thread()::added=threadname1
> TM::after::threads: {'threadname1':<MyThread(threadname1, initial
> daemon)>}
> 
> adding another,
> tm= <mytm.TM object at 0x94a83ec>
> TM::before::threads: {}
> TM::after::threads: {'threadname2':<MyThread(threadname2, initial
> daemon)>}
> 
> This is what I couldn't make out, the dictionary should now contain 2
> kv pairs.Since the tm instance is the same,the self.threads should
> have  printed  the initially added thread's name and instance.
> Please tell me if I am missing something
> 
Are you sure that everything is being run in the same process? If (for
example) you are using Apache as a front-end then, as I understand it,
there are no guarantees about that.

regards
 Steve
-- 
DjangoCon US 2010 September 7-9 http://djangocon.us/

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

Reply via email to