Re: [BangPypers] what is python frameworks

2014-06-02 Thread Rohit Chormale
Django , web2py etc. are some example of python web frameworks. While Twisted, Medusa etc. are examples of python network frameworks. Many times organizations build their own frameworks using native third party libraries to fulfil their specific requirements. This is useful to them when they

[BangPypers] Replying to digests (was: BangPypers Digest, Vol 82, Issue 1)

2014-06-02 Thread Noufal Ibrahim KV
On Mon, Jun 02 2014, JERIN JACOB wrote: Dear friends thanks for all your supports [...] Please reply to individual threads rather than to a digest. It's hard to follow the conversations. -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers

[BangPypers] Restart when python script hangs

2014-06-02 Thread Rahul Gopan
Hello, When I run a python script it hangs at random places. Is there any way to identify when the script hangs and to resume it automatically. When I see that it is not responding i do ^Z (Ctrl -Z) to stop and then use fg command to start it again. I want to automate this. Kindly help me how it

Re: [BangPypers] Restart when python script hangs

2014-06-02 Thread Rohit Chormale
You might need to find first where it hangs. You can do this using test cases. Also if you give some code snippet, we might able to help you. Have a good luck On Mon, Jun 2, 2014 at 3:14 PM, Rahul Gopan rahulpce...@gmail.com wrote: Hello, When I run a python script it hangs at random

Re: [BangPypers] Restart when python script hangs

2014-06-02 Thread ashish makani
hi rahul, as rohit mentioned, it would be helpful, if you can share the code of the script in question you can share upload the script here https://gist.github.com/ cheers, ashish *The only way to do great work is to love what you do. If you haven’t found it yet, keep looking. Don’t settle.

Re: [BangPypers] Restart when python script hangs

2014-06-02 Thread Noufal Ibrahim KV
On Mon, Jun 02 2014, Rahul Gopan wrote: Hello, When I run a python script it hangs at random places. Is there any way to identify when the script hangs and to resume it automatically. When I see that it is not responding i do ^Z (Ctrl -Z) to stop and then use fg command to start it again. I

Re: [BangPypers] Restart when python script hangs

2014-06-02 Thread Sateesh Kumar
On Mon, Jun 2, 2014 at 3:14 PM, Rahul Gopan rahulpce...@gmail.com wrote: Hello, When I run a python script it hangs at random places. Is there any way to identify when the script hangs and to resume it automatically. When I see that it is not responding i do ^Z (Ctrl -Z) to stop and then use

Re: [BangPypers] Restart when python script hangs

2014-06-02 Thread Amit Sethi
If by any chance you are trying to write a deamon, you could monitor it using http://supervisord.org/ On Mon, Jun 2, 2014 at 6:56 PM, Sateesh Kumar sateeshpy...@gmail.com wrote: On Mon, Jun 2, 2014 at 3:14 PM, Rahul Gopan rahulpce...@gmail.com wrote: Hello, When I run a python script it

Re: [BangPypers] BangPypers Digest, Vol 81, Issue 11

2014-06-02 Thread Venu Murthy
Hello Jessica, While I am waiting for some more projects to listed here, I thought of sharing with you the Social Impact Projects that my friends in ThoughtWorks has undertaken in India. About the project Built using For more info Vikalpsangam is a platform that showcases and shares

[BangPypers] Django using syncdb does not work

2014-06-02 Thread Senthil
Hi All, I am in process of writing an application. While designing models, I have the database tables created first and tried using syncdb to create the models. When i try to access the models from view I get error. Upon searching in google, I found that only after designing models, the

Re: [BangPypers] Django using syncdb does not work

2014-06-02 Thread Gora Mohanty
On 3 June 2014 08:48, Senthil skksun...@yahoo.co.in wrote: Hi All, I am in process of writing an application. While designing models, I have the database tables created first and tried using syncdb to create the models. When i try to access the models from view I get error. Upon searching

Re: [BangPypers] Django using syncdb does not work

2014-06-02 Thread Senthil
Gora, Thanks for the prompt response. Sorry that I mentioned syncdb to create models from database instead of inspectdb; But in practice, i used inspectdb only and i am facing error condition. In  short time, let me share the error. Thanks again. --SSK. On Tuesday, 3 June 2014 9:02 AM,

Re: [BangPypers] Restart when python script hangs

2014-06-02 Thread Senthil
Sateesh, I have a question. In your sample code you are registering the method signal_handler prior to its definition. Does that work? --SSK. On Monday, 2 June 2014 6:57 PM, Sateesh Kumar sateeshpy...@gmail.com wrote: On Mon, Jun 2, 2014 at 3:14 PM, Rahul Gopan rahulpce...@gmail.com

Re: [BangPypers] BangPypers Digest, Vol 81, Issue 11

2014-06-02 Thread Rajiv Subramanian M
Hello Venu Murthy, When posting mail to bangpypers user group, Please edit your SUBJECT to proper Thread Name rather than replying to BangPypers Digest. Its hard to follow what thread you are replying to. Thanks, Rajiv ___ BangPypers mailing list

Re: [BangPypers] Restart when python script hangs

2014-06-02 Thread Sateesh Kumar
On Tue, Jun 3, 2014 at 9:18 AM, Senthil skksun...@yahoo.co.in wrote: Sateesh, I have a question. In your sample code you are registering the method signal_handler prior to its definition. Does that work? --SSK. You are right. The registration of signal handler should be after the