Re: Code reformater?

2007-01-21 Thread Vincent Delporte
On Sun, 21 Jan 2007 14:15:46 +1100, Steven D'Aprano <[EMAIL PROTECTED]> wrote: >Still, it is better not to lose the indentation in the first place. Thanks for the tips. But it does happen when copy/pasting code from either a web page or an e-mail that TABs are messed up, which is not a problem wit

Code reformater?

2007-01-19 Thread Vincent Delporte
Hello When I copy/paste Python code from the web, every so often, the TABs are wrong, which means that the code won't work and I have to manually reformat the code. Is there a code reformater that can parse the code to make it right? Thanks. -- http://mail.python.org/mailman/listinfo/py

Re: Good Looking UI for a stand alone application

2006-12-20 Thread Vincent Delporte
On Tue, 19 Dec 2006 08:15:18 -0600, "Chris Mellon" <[EMAIL PROTECTED]> wrote: >There's a few more caveats I haven't addressed, and there are places >where wx isn't perfect. BTW, do you know of a good article/book on writing cross-platform GUI apps, with recommendations, pitfalls, etc. especially

Re: Good Looking UI for a stand alone application

2006-12-18 Thread Vincent Delporte
On 17 Dec 2006 21:20:14 -0800, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >You could write it as a web app, with an executable which launches the >server and points a browser at it. Right, I was thinking of this too, but since the OP was talking of a fat app... >Python GUI work is a bit of a

Re: Good Looking UI for a stand alone application

2006-12-17 Thread Vincent Delporte
On Mon, 18 Dec 2006 01:23:10 +0100, Christophe Cavalaria <[EMAIL PROTECTED]> wrote: >They use QT. Back to read the first part of your post. It doesn't make much difference: - QT is big, so even small apps carry a lot of baggage - by not using the native widgets, you're dependent on that layer to

Re: Good Looking UI for a stand alone application

2006-12-17 Thread Vincent Delporte
On Sun, 17 Dec 2006 09:37:04 +0100, [EMAIL PROTECTED] (Luc Heinrich) wrote: >Crossplatform toolkits/frameworks suck. All of them. No exception. If >you want your app to look *AND* feel great on all platform, abstract the >core of your application and embed it in platform native GUI code. +1. Appli

Re: Mod_python vs. application server like CherryPy?

2006-12-06 Thread Vincent Delporte
On 6 Dec 2006 16:32:14 -0800, "Graham Dumpleton" <[EMAIL PROTECTED]> wrote: >Getting perhaps back to the answer you were seeking right back at the >start, that is if you are new to web application and development and >Python, then you may well be better of just using a higher level >framework as th

Re: Mod_python vs. application server like CherryPy?

2006-12-06 Thread Vincent Delporte
On 6 Dec 2006 14:55:58 -0800, "Graham Dumpleton" <[EMAIL PROTECTED]> wrote: >Although WSGI is an extreme case because of the level it pitches at, >other systems such as CherryPy and Django aren't much different as they >effectively duplicate a lot of stuff that could be achieved using more >basic f

Re: Mod_python vs. application server like CherryPy?

2006-12-06 Thread Vincent Delporte
On 5 Dec 2006 17:05:06 -0800, "fumanchu" <[EMAIL PROTECTED]> wrote: >In a nutshell, mod_python gives you >access from Python to the Apache API, whereas CherryPy and friends give >you their own API. I didn't know Apache had an API of its own, or that it was even needed when writing a web applicatio

Mod_python vs. application server like CherryPy?

2006-12-05 Thread Vincent Delporte
Hi I'm still a newbie when it comes to web applications, so would like some help in choosing a solution to write apps with Python: What's the difference between using running it through mod_python vs. building an application server using Python-based tools like CherryPy, Quixote, Draco, etc.? Tha

Re: "fork and exit" needed?

2006-11-30 Thread Vincent Delporte
On Thu, 30 Nov 2006 10:18:24 -0500, "Mike C. Fletcher" <[EMAIL PROTECTED]> wrote: >which is how Linux knows what interpreter to use for the script. Thanks. That's what I found out after a bit more research. I didn't pay attention to this because it's not needed to run under Windows, and I was focu

Re: "fork and exit" needed?

2006-11-30 Thread Vincent Delporte
On Thu, 30 Nov 2006 15:48:53 +0100, Vincent Delporte <[EMAIL PROTECTED]> wrote: >-- Launched AGI Script /var/lib/asterisk/agi-bin/ncid.python.agi >Failed to execute '/var/lib/asterisk/agi-bin/ncid.python.agi': Exec >format error Stupid me :-/ Forgot the all-important

Re: "fork and exit" needed?

2006-11-30 Thread Vincent Delporte
On Thu, 30 Nov 2006 15:38:11 +0100, Vincent Delporte <[EMAIL PROTECTED]> wrote: >Here's my Python rewrite: >http://codecomplete.free.fr/asterisk/python_cid.txt More information. Here's what Asterisk says when I call in: *CLI> -- Executing LookupCIDName("SIP/f

Re: "fork and exit" needed?

2006-11-30 Thread Vincent Delporte
On Tue, 28 Nov 2006 04:30:09 -0600, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >I'm not sure how you do open stdout to /dev/null in python though! > >I suspect something like this... > > import posix > posix.close(1) > posix.open("/dev/null", posix.O_WRONLY) Thanks everyone, but no go :-/ Neith

Re: "fork and exit" needed?

2006-11-28 Thread Vincent Delporte
On Tue, 28 Nov 2006 08:30:03 -0600, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >> import os,sys,time >> print "pre:", os.getpid() >> sys.stdout = open(os.devnull, 'w') >> print "post:", os.getpid() >> time.sleep(60) >> >> (Granted, I'm on WinXP; I also suspect the original stdout is still op

"fork and exit" needed?

2006-11-27 Thread Vincent Delporte
Hi I'm a Python newbie, and would like to rewrite this Perl scrip to be run with the Asterisk PBX: http://www.voip-info.org/wiki/view/Asterisk+NetCID Anyone knows if those lines are necessary, why, and what their alternative is in Python? --- open STDOUT, '>/dev/null'; fork and exi

Re: Compiling wxPython app for Windows; Single EXE

2006-08-15 Thread Vincent Delporte
On Mon, 14 Aug 2006 17:46:11 -0500, Philippe Martin <[EMAIL PROTECTED]> wrote: >Yes there is a way to make one .exe/.msi for everything ... but it does >require purchasing a tool such as VC++. > >I have python + wxWindows + my stuff + many other libraries in one installer >(takes 120 Megs (sigh))

Re: Compiling wxPython app for Windows; Single EXE

2006-08-14 Thread Vincent Delporte
On 14 Aug 2006 09:39:02 -0700, "ajaksu" <[EMAIL PROTECTED]> wrote: >I'm using PyInstaller (http://pyinstaller.hpcf.upr.edu/) precisely to >"compile" a wxPython-based program. So I'm curious about what makes >py2exe "the best tool...", because I'm about to miss that due to my >ignorance. I didn't k

Re: Compiling wxPython app for Windows; Single EXE

2006-08-13 Thread Vincent Delporte
On 13 Aug 2006 13:46:14 -0700, "Tim N. van der Leeuw" <[EMAIL PROTECTED]> wrote: >I have a wxPython app, which I compile into one EXE file. Then there's >just 1 support file needed: a MS DLL (which, once distributed, you will >not need to update). OK. So you compile the Python app into an EXE usin

Compiling wxPython app for Windows; Single EXE

2006-08-13 Thread Vincent Delporte
Hi I browsed the archives, but since some messages date back a bit, I wanted to make sure that - py2exe is still the best tool in town to compile Python scripts to run on a Windows host that doesn't have Python installed, including wxWidgets/wxPython - there's no way to build a single EXE, to ma

Re: [Linux] What toolkit for a good grid/spreadsheet widget?

2006-08-04 Thread Vincent Delporte
On Fri, 04 Aug 2006 10:58:42 GMT, Dave Cook <[EMAIL PROTECTED]> wrote: >But both pyqt and wxpython also offer that. Try running the demos for each. Thx everyone! -- http://mail.python.org/mailman/listinfo/python-list

Re: [Linux] What toolkit for a good grid/spreadsheet widget?

2006-08-03 Thread Vincent Delporte
On Thu, 3 Aug 2006 22:07:04 +0100, Phil Thompson <[EMAIL PROTECTED]> wrote: >PyQt4 has QTableWidget... Thx for the two pointers. Are those widgets more than just tables, ie. can I edit the contents, including displaying a combo box, can items be grouped or hierarchized, or are they just basic, rea

[Linux] What toolkit for a good grid/spreadsheet widget?

2006-08-03 Thread Vincent Delporte
Hello I'd like to use Python under Linux to write a business application, and I'll need a good grid/spreadsheet editable widget, maybe not on par with eg. ComponentOne's excellent VSFlexGrid (http://www.componentone.com/newimages/flexgrid_02_lg.gif), but somewhat professional-grade. Any recomme

Re: Need a compelling argument to use Django instead of Rails

2006-07-31 Thread Vincent Delporte
On 31 Jul 2006 07:05:27 -0700, "Ben Sizer" <[EMAIL PROTECTED]> wrote: >Typically you run PHP as a module in your webserver, so there should be >no process startup overhead. mod_python provides the same sort of >functionality for Python, but is not as popular or widely installed as >the PHP Apache m

Re: Need a compelling argument to use Django instead of Rails

2006-07-29 Thread Vincent Delporte
On Sat, 29 Jul 2006 04:07:12 GMT, Tim Roberts <[EMAIL PROTECTED]> wrote: >Exactly. The Python interpreter can take a significant fraction of a >second to start. For the typical short web request, the overhead can add >up. > >On the other hand, unless you're handling dozens of requests per minute,

Re: War chest for writing web apps in Python?

2006-07-28 Thread Vincent Delporte
On Fri, 28 Jul 2006 17:33:00 GMT, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >Well, syntax color coding, and block folding are supported by >PythonWin (comes with the ActiveState Windows install) and SciTE. > > The structural browser isn't as easy... Thanks for the input. -- http://mail.p

Re: War chest for writing web apps in Python?

2006-07-28 Thread Vincent Delporte
On Fri, 28 Jul 2006 17:31:47 -0400, Dan Sommers <[EMAIL PROTECTED]> wrote: >You win that bet. (We actually tested on both platforms.) *Not* >testing on the deployment platform is *definitely* asking for trouble. I did intend to validate it on the deployment platform. It's just that I prefer to w

Re: Need a compelling argument to use Django instead of Rails

2006-07-28 Thread Vincent Delporte
On Fri, 28 Jul 2006 17:58:24 +0200, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: >Ben Sizer wrote: >(snip) >> Pretty much every Python web offering revolves around you having your >> own server with the luxury of running your own long-running processes >> on it. BTW, what is the advantage of ru

Re: War chest for writing web apps in Python?

2006-07-28 Thread Vincent Delporte
On Fri, 28 Jul 2006 08:06:10 +0200, Vincent Delporte <[EMAIL PROTECTED]> wrote: (snip) Thanks everyone for the input! For the IDE: Ideally, I'd like something modern that uses language wordlists (to show syntax, variables, etc. in different colors), a window that lists all the proc

War chest for writing web apps in Python?

2006-07-27 Thread Vincent Delporte
Hello I'm thinking of using Python to build the prototype for a business web appplication. The development and test machine is XP, while ultimate deployment will be on a shared Unix web host. What would you recommend I get, besides the Python engine itself? Good IDE (Kodomo?) ? Some kind of GUI d