I've done this before, but I don't remember exactly how. I can check
when I get to work. One thing, though: you might need to remove the --
reload flag when running from within NB.

On Jun 15, 7:11 am, Petr Kobalíček <[email protected]> wrote:
> Hi,
>
> any comments about netbeans here?
>
> I'm using netbeans for development and I'd like to use pylons with it.
> The netbeans is limited allowing only to run a python 'module'. Is
> there any way how to run the pylons application through some .py file?
>
> I tried this:
>
> #!/usr/bin/env python
> from paste.script.command import run
> run(["serve", "--reload", "application.ini"])
>
> But it not works like expected:
>
> ', '  File 
> "c:\\Python26\\lib\\site-packages\\pastescript-1.7.3-py2.6.egg\\paste\\scri 
> pt\\command.py",
> line 84, in run
>     invoke(command, command_name, options, args[1:])
> ', '  File 
> "c:\\Python26\\lib\\site-packages\\pastescript-1.7.3-py2.6.egg\\paste\\scri 
> pt\\command.py",
> line 123, in invoke
>     exit_code = runner.run(args)
> ', '  File 
> "c:\\Python26\\lib\\site-packages\\pastescript-1.7.3-py2.6.egg\\paste\\scri 
> pt\\command.py",
> line 218, in run
>     result = self.command()
> ', '  File 
> "c:\\Python26\\lib\\site-packages\\pastescript-1.7.3-py2.6.egg\\paste\\scri 
> pt\\serve.py",
> line 186, in command
>     return self.restart_with_reloader()
> ', '  File 
> "c:\\Python26\\lib\\site-packages\\pastescript-1.7.3-py2.6.egg\\paste\\scri 
> pt\\serve.py",
> line 416, in restart_with_reloader
>     self.restart_with_monitor(reloader=True)
> ', '  File 
> "c:\\Python26\\lib\\site-packages\\pastescript-1.7.3-py2.6.egg\\paste\\scri 
> pt\\serve.py",
> line 434, in restart_with_monitor
>     _turn_sigterm_into_systemexit()
> ', '  File 
> "c:\\Python26\\lib\\site-packages\\pastescript-1.7.3-py2.6.egg\\paste\\scri 
> pt\\serve.py",
> line 642, in _turn_sigterm_into_systemexit
>     signal.signal(signal.SIGTERM, handle_term)
> ', 'ValueError: signal only works in main thread
> ']
>
> I think I need to create the paster HttpServer manually, any hint will
> be appreciated.
>
> --
> Best regards
> - Petr Kobalicek <http://kobalicek.com>
>
>
>
> On Tue, Mar 2, 2010 at 6:33 PM, Mark <[email protected]> wrote:
> > If IDE is not an issue, I would highly recommend KomodoEdit.  The
> > community offers Mako highlighting, and the IDE itself offers
> > exceptional Python integration.  It works great.
>
> > On Mar 2, 6:44 pm, SystemicPlural <[email protected]> wrote:
> >> A good start would be working out how I start paster from within
> >> netbeans?
>
> >> Any other tips would be great
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "pylons-discuss" 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 
> > athttp://groups.google.com/group/pylons-discuss?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to