Re: webapp development in pure python

2011-10-26 Thread 88888 Dihedral
OK, lets start a framework in using python in the server side and the client side. (1). requirements of the server side first: 1. sending HTML, XML documents to be displayed in the browsers of the clients and receiving for user inputs are easy in modpython, django, and etc. 2. Da

Re: webapp development in pure python

2011-10-26 Thread Chris Angelico
On Thu, Oct 27, 2011 at 4:04 PM, 8 Dihedral wrote: > I am thinking one has to distinguish between programs for database servers of >   the commercial applications in banks or insurance companies that cant be > hacked in low costs, and experiments to chunk out database servers for games > an

Re: webapp development in pure python

2011-10-26 Thread 88888 Dihedral
I am thinking one has to distinguish between programs for database servers of the commercial applications in banks or insurance companies that cant be hacked in low costs, and experiments to chunk out database servers for games and videos all over the world! -- http://mail.python.org/mailman

Re: passing Python data to a javascript function

2011-10-26 Thread Chris Angelico
On Thu, Oct 27, 2011 at 2:51 PM, Bill Allen wrote: > Chris, > > Wow, that seems so simple now that I see it.  I was dancing around that all > day, but just not landing on it.   Thanks so very much for the assist. > > --Bill > > Final code that works perfectly, passes the value from the Python scri

Re: webapp development in pure python

2011-10-26 Thread Chris Angelico
On Thu, Oct 27, 2011 at 8:47 AM, Prasad, Ramit wrote: > You technically can connect to databases from JavaScript. It is a terrible > idea, but achievable. Not really sure how it would get "compiled" into > JavaScript, so it is possible that is the stumbling block. > http://stackoverflow.com/ques

Re: passing Python data to a javascript function

2011-10-26 Thread Chris Rebert
On Wed, Oct 26, 2011 at 7:25 PM, Bill Allen wrote: > > Benjamin, > > I was afraid I was doing that.   I have simplified it quite a bit, still not > getting the output I am looking for.   I am down to that I am not passing > the value in the onload=showPID() call correctly.  I know this is getting

Re: No more Python support in NetBeans 7.0

2011-10-26 Thread web
Sorry to comment on an old topic, but I wanted to clarify for others like me who might get the wrong idea. It looks like this is no longer true. Netbeans 7 might be supporting python after all. http://wiki.netbeans.org/Python70Roadmap -- http://mail.python.org/mailman/listinfo/python-list

Re: inserting \ in regular expressions

2011-10-26 Thread MRAB
On 26/10/2011 20:48, Ross Boylan wrote: I want to replace every \ and " (the two characters for backslash and double quotes) with a \ and the same character, i.e., \ -> \\ " -> \" I have not been able to figure out how to do that. The documentation for re.sub says "repl can be a string or a f

RE: webapp development in pure python

2011-10-26 Thread Prasad, Ramit
I am not really an expert web developer, so this is just my two cents. > My Python module would connect to a database server and query >some data, then display it in a grid. This cannot be compiled into >javascript because of the database server connection. You technically can connect to datab

Re: inserting \ in regular expressions

2011-10-26 Thread Dave Angel
On 10/26/2011 03:48 PM, Ross Boylan wrote: I want to replace every \ and " (the two characters for backslash and double quotes) with a \ and the same character, i.e., \ -> \\ " -> \" I have not been able to figure out how to do that. The documentation for re.sub says "repl can be a string or

Re: [wanted] python-ldap for Python 2.3 / Win32

2011-10-26 Thread Michael Ströder
Waldemar Osuch wrote: > I did try to build it using my current setup but it failed with some linking > errors. > Oh well. Waldemar, I really appreciate your Win32 support. > Google gods were nicer to me. Here is a couple alternative links. > Maybe they will work for you. > http://web.archive.or

Re: inserting \ in regular expressions

2011-10-26 Thread Ian Kelly
On Wed, Oct 26, 2011 at 1:48 PM, Ross Boylan wrote: > Or perhaps I'm confused about what the displayed results mean.  If a > string has a literal \, does it get shown as \\? In the repr, yes. If you try printing the string, you'll see that it only contains one \. By the way, regular expressions

inserting \ in regular expressions

2011-10-26 Thread Ross Boylan
I want to replace every \ and " (the two characters for backslash and double quotes) with a \ and the same character, i.e., \ -> \\ " -> \" I have not been able to figure out how to do that. The documentation for re.sub says "repl can be a string or a function; if it is a string, any backslash es

Re: Forking simplejson

2011-10-26 Thread Terry Reedy
On 10/26/2011 5:14 AM, Amirouche Boubekki wrote: Héllo, I would like to fork simplejson [1] and implement serialization rules based on protocols instead of types [2], plus special cases for protocol free objects, that breaks compatibility. The benefit will be a better API for json serialization

Re: spawnl issues with Win 7 access rights

2011-10-26 Thread Terry Reedy
On 10/26/2011 10:38 AM, Tim Golden wrote: On 26/10/2011 02:11, Terry Reedy wrote: OP reports 2.6 with XP works. Where do you see that, Terry? (Or was there an offlist email?) The first message of http://bugs.python.org/issue8036 "Python 2.6 is however happy and just reports invalid arg." --

Re: Data acquisition

2011-10-26 Thread Dietmar Schwertberger
Am 26.10.2011 17:58, schrieb spintronic: Thank you for the discussion. It was really helpful. As mentioned, it was necessary to have a longer delay. Previously I have used a delay of 5 and 10 s but it was not long enough. Now it is 25 s and everything works fine. If you use the correct sequence

Re: Forking simplejson

2011-10-26 Thread Nathan Rice
Since this happily went off to the wrong recipient the first time... The python json module/simpljson are badly in need of an architecture update. The fact that you can't override the encode method of JSONEncoder and have it work reliably without monkey patching the pure python encoder is a sign

Review Python site with useful code snippets

2011-10-26 Thread Chris Hall
I am looking to get reviews, comments, code snippet suggestions, and feature requests for my site. I intend to grow out this site with all kinds of real world code examples to learn from and use in everyday coding. The site is: http://www.pythonsnippet.com If you have anything to contribute or co

Re: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Mike C. Fletcher
On 11-10-26 10:51 AM, Vinay Sajip wrote: ... > auto-translation via 2to3 (because you generally are calling log.warn() >> rather than logging.warning, but sometimes you are doing getattr( log, >> log_level ) and then passing that method around a few times), and it > That doesn't sound like a good u

Re: Data acquisition

2011-10-26 Thread spintronic
Dear friends! Thank you for the discussion. It was really helpful. As mentioned, it was necessary to have a longer delay. Previously I have used a delay of 5 and 10 s but it was not long enough. Now it is 25 s and everything works fine. Thank you again! Best, AS -- http://mail.python.org/mailma

Re: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Vinay Sajip
Mike C. Fletcher vrplumber.com> writes: > More: an undocumented entry point is not "deprecated" because, after > all, it shows up in PyDoc as a regular method. Deprecated methods also show up in PyDoc. Of course, if the deprecation is mentioned in the docstring, users would see this - but if it

Re: spawnl issues with Win 7 access rights

2011-10-26 Thread Tim Golden
On 26/10/2011 02:11, Terry Reedy wrote: OP reports 2.6 with XP works. Where do you see that, Terry? (Or was there an offlist email?) Did that use VS 2005? Maybe C runtime changed (regressed). That's possible -- and is essentially my main guess (faute de mieux). I've got the same results on

services/daemons

2011-10-26 Thread Andrea Crotti
Running pypiserver as a service? I'm writing some scripts which in theory should be able to: - start up a local pypi server as a daemon (or well a service on Windows) - run "python setup.py develop" on a potentially very big set of eggs, possibly discovering automatically for changes. In the

Parsing using one gramar with contexts

2011-10-26 Thread projetmbc
Hello, I'm seeking for one friendly library to parse one language with taking care of the context. For example, I would like to parse text in one docstring differently than the other code, or to add special keyword for the parsing when I'm in one class... Is there existing python tools for that

Re: webapp development in pure python

2011-10-26 Thread Roy Smith
In article <18902163.1637.1319614150053.JavaMail.geo-discussion-forums@yqp37>, Rebelo wrote: > Try Pylons. Use html templates which get populated with data from your > database and then just render them. If you just want to display data, with > simple forms for editing and adding Pylons frame

Re: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Mike C. Fletcher
On 11-10-26 05:12 AM, Vinay Sajip wrote: > Mike C. Fletcher vrplumber.com> writes: > >> I actually consider .warning() a nit :) . After all, it's 3 extra >> characters :) , and *who* actually reads documentation instead of just >> poking around and finding the shortest-named method in the instanc

Forking simplejson

2011-10-26 Thread Amirouche Boubekki
Héllo, I would like to fork simplejson [1] and implement serialization rules based on protocols instead of types [2], plus special cases for protocol free objects, that breaks compatibility. The benefit will be a better API for json serialization of custom classes and in the case of iterable it wi

Re: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Vinay Sajip
Mike C. Fletcher vrplumber.com> writes: > I actually consider .warning() a nit :) . After all, it's 3 extra > characters :) , and *who* actually reads documentation instead of just > poking around and finding the shortest-named method in the instance? Readability counts :-) Are you saying there

Re: webapp development in pure python

2011-10-26 Thread Rebelo
Try Pylons. Use html templates which get populated with data from your database and then just render them. If you just want to display data, with simple forms for editing and adding Pylons framework is more then enough. http://pylonsbook.com/en/1.1/ http://www.pylonsproject.org/ -- http://mail.