Hi All,
I am using Django and Lighttpd Webserver, for one of our tool.
I am initializing one variable as a global at the top of file and updating the
same on some particular function call. What I am observing is it works fine for
some time but after some time variable defined on the top get reinitialized but
happening with random pattern of time-- (can be confirmed from the log
message), I guess complete module is getting loaded again
I was facing the same problem in Django Development server also, but I am able
to come across the same using '--noreload' option, python manage.py runserver
--noreload, and updation of my variable is working properly
but i cant able to find any thing similar for runfcgi, python manage.py runfcgi
daemonize=true.
Any one do let me know, what can be done to avoid reinitialize of a source file
(i.e. once get loaded in a memory, should not be updated until web server
restarts), I tried removing py file and start server with .pyc files, then also
same problem is coming.
Thankx in advance
Thanks and Regards,
Hussain Bohra
________________________________
From: "sibt...@infotechsw.com" <sibt...@infotechsw.com>
To: bangpypers@python.org
Sent: Monday, 2 February, 2009 11:19:21 AM
Subject: [BangPypers] how to create data to dump into yaml file
hi
I have to create a yaml file using my list of objects.shall i need to
create a string using my objects and then load and dump that string or
is there any other way to create the yaml file.
i want a yaml file to be created from [Text, Author,......]in this format
Text:
- value1
- value2
- value 3
Author:
name: bookName
Thanks
Sibtey Mehdi
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers
Add more friends to your messenger and enjoy! Go to
http://messenger.yahoo.com/invite/
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers