Re: mod_python compilation error in VS 2008 for py2.7.1

2016-06-16 Thread asimkostas
Τη Τρίτη, 14 Ιουνίου 2016 - 3:36:23 μ.μ. UTC+3, ο χρήστης Pavel S έγραψε: > Have you considered to use rather WSGI-based solution? (for Apache Httpd is > mod_wsgi). Mod_python is totally obsolete. Regarding my blog post, i would like to inform you that someone helped me to overcome this error bu

Re: mod_python compilation error in VS 2008 for py2.7.1

2016-06-14 Thread Pavel S
Have you considered to use rather WSGI-based solution? (for Apache Httpd is mod_wsgi). Mod_python is totally obsolete. -- https://mail.python.org/mailman/listinfo/python-list

Re: mod_python load cx_Oracle error

2010-07-19 Thread Mladen Gogala
On Mon, 19 Jul 2010 09:12:20 -0700, li wang wrote: > It's quite weird when I import cx_Oracle in python interactive shell, it > works perfectly. > but when I import cx_Oracle in a *,py script, handled by > mod_python.publisher, it keep reportint : > > ImportError: libclntsh.so.10.1: cannot open s

Re: mod_python and css

2010-06-24 Thread John Nagle
If you send back a content type of "text/plain", your output will not be rendered as HTML by a browser; it will just be displayed as plain text. Try "text/html". John Nagle On 6/24/2010 12:19 PM, Thomas Jollans wrote: On 06/24/2010 09:10 PM, Bradley Hintze

Re: mod_python and css

2010-06-24 Thread Bradley Hintze
I had some issues with WSGI install. It was duious at best as it failed and seemed very unstable. Is this a trusted application? On Thu, Jun 24, 2010 at 3:19 PM, Thomas Jollans wrote: > On 06/24/2010 09:10 PM, Bradley Hintze wrote: >> Hi all, > > about your question, no idea. > >> >> the mod_pyth

Re: mod_python and css

2010-06-24 Thread Thomas Jollans
On 06/24/2010 09:10 PM, Bradley Hintze wrote: > Hi all, about your question, no idea. > > the mod_python mailing list is pretty dead so I thought I'd try asking > my question here. It comes as no surprise to me that the mod_python mailing list is dead: nobody uses mod_python anymore. For all I

Re: mod_python: Permission denied

2009-08-30 Thread David
Thanks Graham. Let me contact Admin. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python: Permission denied

2009-08-25 Thread David
On Aug 25, 4:00 pm, David wrote: > Thanks Graham. Let me contact Admin. Hi Graham: you are right. it's fixed now. Thanks again. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python: Permission denied

2009-08-25 Thread David
disclaimer: i did not write this code. i copied it and inserted into my cgi code. it is from http://webpython.codepoint.net/mod_python_publisher_big_file_upload. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python: Permission denied

2009-08-25 Thread David
A little more info: "Defrosting.rtf" is a file that I wanted to upload. This file was supposed to upload to folder '/var/www/keyword- query/files/'. My code runs in root. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python: Permission denied

2009-08-25 Thread Graham Dumpleton
On Aug 26, 8:43 am, David wrote: > Hello, > > I googled online however I did not find a clue my question. So I post > it here. > > I created a mod_python CGI to upload a file and saves it in folder "/ > var/www/keyword-query/files/".  My code runs in root. > >      fileitem = req.form['file'] > >

Re: mod_python and xml.dom.minidom

2009-05-15 Thread dpapathanasiou
> Were you getting this issue with xml.dom showing on first request all > the time, or only occasionally occurring? If the latter, were you > running things in a multithreaded configuration and was the server > being loaded with lots of concurrent requests? It was the former. > For your particul

Re: mod_python and xml.dom.minidom

2009-05-13 Thread Graham Dumpleton
On May 12, 1:59 am, dpapathanasiou wrote: > For the record, and in case anyone else runs into this particular > problem, here's how resolved it. > > My original xml_utils.py was written this way: > > from xml.dom import minidom > > def parse_item_attribute (item, attribute_name): >     item_doc =

Re: mod_python and xml.dom.minidom

2009-05-11 Thread dpapathanasiou
For the record, and in case anyone else runs into this particular problem, here's how resolved it. My original xml_utils.py was written this way: from xml.dom import minidom def parse_item_attribute (item, attribute_name): item_doc = minidom.parseString(item) ... That version worked und

Re: mod_python and xml.dom.minidom

2009-05-11 Thread dpapathanasiou
> His problem is therefore likely to be something completely different. You are correct. As per the earlier advice, I switched from mod_python to mod_wsgi but I still see the same error: [Mon May 11 10:30:21 2009] [notice] Apache/2.2.11 (Unix) mod_wsgi/2.4 Python/2.5.2 configured -- resuming no

Re: mod_python and xml.dom.minidom

2009-05-10 Thread Graham Dumpleton
On May 10, 3:40 am, Paul Boddie wrote: > On 9 Mai, 01:36, dpapathanasiou wrote: > > > > > Apache's configure utility (I'm using httpd version 2.2.11) doesn't > > explicitly describe an expat library option. > > > Also, if libexpat is version 1.95.2, wouldn't I have to get version > > 2.0 to be co

Re: mod_python and xml.dom.minidom

2009-05-09 Thread Stephen Hansen
> > My only advice is, don't use mod_python. The project is dead, you > should use mod_wsgi instead: http://code.google.com/p/modwsgi/ > To echo what Daniel said, mod_wsgi is really the way to go. It might still not work in "embedded" mode where like mod_python the Python interpreter is in the Ap

Re: mod_python and xml.dom.minidom

2009-05-09 Thread Paul Boddie
On 9 Mai, 01:36, dpapathanasiou wrote: > > Apache's configure utility (I'm using httpd version 2.2.11) doesn't > explicitly describe an expat library option. > > Also, if libexpat is version 1.95.2, wouldn't I have to get version > 2.0 to be compatible with pyexpat? The aim would be to persuade A

Re: mod_python and xml.dom.minidom

2009-05-08 Thread Stefan Behnel
Daniel Fetchinson wrote: > On 5/8/09, dpapathanasiou wrote: >> I wrote a python script called xml_utils.py which parses xml using >> minidom. > > My only advice is, don't use mod_python. The project is dead, you > should use mod_wsgi instead: http://code.google.com/p/modwsgi/ Now that we're at it

Re: mod_python and xml.dom.minidom

2009-05-08 Thread Daniel Fetchinson
On 5/8/09, dpapathanasiou wrote: > I wrote a python script called xml_utils.py which parses xml using > minidom. > > It works when it's run on its own, but when I try to import it and run > it inside a mod_python handler, I get this error: > > File "../common/xml_utils.py", line 80, in parse_ite

Re: mod_python form upload: permission denied sometimes...

2009-04-26 Thread Lawrence D'Oliveiro
In message <0fc15bee-003a-45ca- b6b6-21ed0645b...@q2g2000vbr.googlegroups.com>, psaff...@googlemail.com wrote: > I have a mod_python application that takes a POST file upload from a > form. It works fine from my machine, other machines in my office and > my home machine. It does not work from my

Re: Mod_python, jsonrpc and sessions

2009-01-14 Thread lkcl
On Jan 14, 4:47 pm, p3dda.a...@googlemail.com wrote: > Hi, > > I've got a python web-application being served by apache via > mod_python, in which the users sessions are tracked via the mod_python > Session module. > Some of websites generated contain a java-script function which starts > a jsonrpc

Re: mod_python: delay in files changing after alteration

2009-01-12 Thread psaff...@googlemail.com
On 6 Jan, 23:31, Graham Dumpleton wrote: > Thus, any changes to modules/packages installed on sys.path require a > full restart of Apache to ensure they are loaded by all Apache child > worker processes. > That will be it. I'm pulling in some libraries of my own from elsewhere, which are still b

Re: mod_python: delay in files changing after alteration

2009-01-06 Thread Graham Dumpleton
On Jan 6, 2:39 am, "psaff...@googlemail.com" wrote: > Maybe this is an apache question, in which case apologies. > > I am runningmod_python3.3.1-3 on apache 2.2.9-7. It works fine, but > I find that when I alter a source file during development, it > sometimes takes 5 seconds or so for the changes

Re: mod_python: delay in files changing after alteration

2009-01-05 Thread Stephen Chapman
I have never noticed any such delay. After making a change I just hit F5 on my browser and its fine. Maybe its a browser issue On 1/5/09, psaff...@googlemail.com wrote: > Maybe this is an apache question, in which case apologies. > > I am running mod_python 3.3.1-3 on apache 2.2.9-7. It works

Re: mod_python resources

2008-12-20 Thread Graham Dumpleton
On Dec 20, 2:47 pm, "Anjanesh Lekshminarayanan" wrote: > Same requirement here. > But isnt there any mod_python for Python 3.0 ? > Or do we need to build it from source ourselves ? > > I was hoping there would bemod_wsgibinaries for Python 3.0. At this stage it looks like there will not be a mod_

Re: mod_python resources

2008-12-19 Thread Anjanesh Lekshminarayanan
Same requirement here. But isnt there any mod_python for Python 3.0 ? Or do we need to build it from source ourselves ? I was hoping there would be mod_wsgi binaries for Python 3.0. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python resources

2008-12-19 Thread Daniel Fetchinson
> Here's my problem (it's a conceptual one). Coming from the world of > mod_php, each file can represent a page with no intervention. I was > not able to achieve the same with mod_python when I tried, and for > that matter, couldn't put the pieces together in a usable way. > > Let me start simply:

Re: mod_python resources

2008-12-19 Thread tmallen
Here's my problem (it's a conceptual one). Coming from the world of mod_php, each file can represent a page with no intervention. I was not able to achieve the same with mod_python when I tried, and for that matter, couldn't put the pieces together in a usable way. Let me start simply: If I wanted

Re: mod_python resources

2008-12-17 Thread Graham Dumpleton
On Dec 17, 11:10 am, Дамјан Георгиевски wrote: > > I'm trying again because I'm stubborn. Maybe the fourth time will be > > the charm... > > > Are there any good tutorials out there for setting up Apache with > > mod_python? > > mod_python is depreceated, nobody uses it. usemod_wsgihttp://www.modw

Re: mod_python resources

2008-12-16 Thread Дамјан Георгиевски
> I'm trying again because I'm stubborn. Maybe the fourth time will be > the charm... > > Are there any good tutorials out there for setting up Apache with > mod_python? mod_python is depreceated, nobody uses it. use mod_wsgi http://www.modwsgi.org/ -- дамјан ( http://softver.org.mk/damjan/

Re: mod_python resources

2008-12-16 Thread Aleksandar Radulovic
On Tue, Dec 16, 2008 at 8:22 PM, tmallen wrote: > Are there any good tutorials out there for setting up Apache with > mod_python? Apart from the (clear and concise) information in the mod_python documentation? Starts here: http://www.modpython.org/live/current/doc-html/installation.html Compilin

Re: mod_python and files directory

2008-12-14 Thread mete
On Monday 08 December 2008 10:31:28 Gabriel Genellina wrote: > os.path.dirname(os.path.abspath(__file__)) thanks a lot it's working. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python and files directory

2008-12-08 Thread Gabriel Genellina
En Sat, 06 Dec 2008 09:26:40 -0200, mete <[EMAIL PROTECTED]> escribió: but i want to take it somewhere else...i want to it work some other path in other system. os.path.dirname(os.path.abspath(__file__)) returns the directory where the current file resides. Execute it early in your code. --

Re: mod_python and files directory

2008-12-08 Thread Gabriel Genellina
En Sat, 06 Dec 2008 09:26:40 -0200, mete <[EMAIL PROTECTED]> escribió: but i want to take it somewhere else...i want to it work some other path in other system. os.path.dirname(os.path.abspath(__file__)) returns the directory where the current file resides. Execute it early in your code. --

Re: mod_python and files directory

2008-12-06 Thread mete
but i want to take it somewhere else...i want to it work some other path in other system. On Saturday 06 December 2008 12:34:07 Graham Dumpleton wrote: > On Dec 6, 1:52 am, "mete bilgin" <[EMAIL PROTECTED]> wrote: > > Hi all, > > I try to make a websevice with python and mod_python. İ try to make

Re: mod_python and files directory

2008-12-06 Thread Graham Dumpleton
On Dec 6, 1:52 am, "mete bilgin" <[EMAIL PROTECTED]> wrote: > Hi all, > I try to make a websevice with python and mod_python. İ try to make a po > files, but i can not reach them in the page. When i ask the page like " > os.listdir('.') " but i want to get files directory, what can i do? sorry > fo

Re: mod_python and file not found

2008-11-10 Thread Steve Holden
Simo D wrote: > Hello, I'm trying to configure the apache to handle the python scripts. My > platform is a CentOs server. > I wrote these directives in the conf.d/python.conf: > > Options Indexes FollowSymLinks MultiViews > AllowOverride None > Order allow,deny > allow from all > AddHand

Re: Mod_python permission denied

2008-11-07 Thread Simo D
Ok, solved: apache is unable to follow relative paths from the script. Putting ol absolute paths it's ok! Simo D wrote: > > Hi, I'm using a script.py to write a file in a dir on the server. > Mod_python work but i get: > Mod_python error: "PythonHandler mod_python.publisher" > > Traceback (most

Re: mod_python and updated files

2008-08-18 Thread Daniel Klein
On Mon, 18 Aug 2008 09:16:13 -0700 (PDT), Aaron Scott <[EMAIL PROTECTED]> wrote: >I have mod_python running on my server, but when I chance a Python >file on the server, Apache needs to be restarted in order to have the >changes take effect. I assume this is so mod_python can run >persistently, bu

Re: mod_python

2008-04-14 Thread Daniel Fetchinson
> I want to rewrite a request url under apache2.0 based on its special > header, like, the "Accept-Encoding:" one. > > With C I think I can do it, but since I get begin with python,so I ask > that can I do it under mod_python? what's the guide? The guide is this: http://modpython.org/live/current/

Re: mod_python and storing binary form data

2008-04-10 Thread Gabriel Genellina
En Thu, 10 Apr 2008 15:43:23 -0300, <[EMAIL PROTECTED]> escribió: > Hi, I have a little python webservice that I created, and in one of > the methods I need to store some binary data that was "posted"... I > want to do something like this, but it doesn't work. > > username = form.get("username", "

Re: mod_python Unable to create file

2008-03-02 Thread Kaushik Barat
Hey thanks a lot Sean.Setting the permissions on the directory path solved the problem. On Sun, Mar 2, 2008 at 11:09 AM, Sean Allen <[EMAIL PROTECTED]> wrote: > > On Mar 2, 2008, at 3:24 AM, kaush wrote: > > > On Mar 1, 11:24 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > >> On Sat, 01

Re: mod_python Unable to create file

2008-03-02 Thread Sean Allen
On Mar 2, 2008, at 3:24 AM, kaush wrote: > On Mar 1, 11:24 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> On Sat, 01 Mar 2008 22:47:02 -0800, kaush wrote: >>> I am using Apache and mod_python to service POST/GET requests on MAC >>> OS. My script tries to create a file >> >>> file = op

Re: mod_python Unable to create file

2008-03-02 Thread kaush
On Mar 1, 11:24 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Sat, 01 Mar 2008 22:47:02 -0800, kaush wrote: > > I am using Apache and mod_python to service POST/GET requests on MAC > > OS. My script tries to create a file > > > file = open(file_path, 'w') > > > This fails with the fo

Re: mod_python Unable to create file

2008-03-01 Thread Marc 'BlackJack' Rintsch
On Sat, 01 Mar 2008 22:47:02 -0800, kaush wrote: > I am using Apache and mod_python to service POST/GET requests on MAC > OS. My script tries to create a file > > file = open(file_path, 'w') > > This fails with the following error > > EACCES > Permission denied > > What is missing? To state t

Re: mod_python

2007-11-26 Thread Aaron Watters
On Nov 24, 1:19 am, Vernon Wenberg III <[EMAIL PROTECTED]> wrote: > Why do I receive a "File not found" error on a perfect good and simple > script but properly receive errors when I deliberately add errors in the > script? The file is there, it just doesn't do anything. > > Any help would be appre

Re: mod_python

2007-11-25 Thread [EMAIL PROTECTED]
On Nov 24, 1:19 am, Vernon Wenberg III <[EMAIL PROTECTED]> wrote: > Why do I receive a "File not found" error on a perfect good and simple > script but properly receive errors when I deliberately add errors in the > script? The file is there, it just doesn't do anything. > > Any help would be appre

Re: mod_python

2007-11-24 Thread Bruno Desthuilliers
Vernon Wenberg III a écrit : > Why do I receive a "File not found" error on a perfect good and simple > script but properly receive errors when I deliberately add errors in the > script? The file is there, it just doesn't do anything. > > Any help would be appreciated. Sorry, my crystal ball is

Re: mod_python, ElementTree and Aapche 2.0

2007-10-27 Thread Graham Dumpleton
On Oct 28, 3:02 am, Rajarshi <[EMAIL PROTECTED]> wrote: > Hi, this is a slightly vague question but I'm really puzzled as to > when I write a mod_python (3.1.3) program that makes use of > ElementTree and call it via a URL, the program simply stops when I do > something like > > s = # some XML docu

Re: MOD_PYTHON + packages reloading

2007-10-18 Thread Graham Dumpleton
On Oct 18, 6:55 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I came across annoying problem during my fun with mod_python. I turned > > out that mod_python load package only onca and don't care about any > > changes to it. Obviously it makes sense on production server

Re: MOD_PYTHON + packages reloading

2007-10-18 Thread lukasz . f24
On 18 Oct, 09:55, Duncan Booth <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I came across annoying problem during my fun with mod_python. I turned > > out that mod_python load package only onca and don't care about any > > changes to it. Obviously it makes sense on production server bu

Re: MOD_PYTHON + packages reloading

2007-10-18 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > I came across annoying problem during my fun with mod_python. I turned > out that mod_python load package only onca and don't care about any > changes to it. Obviously it makes sense on production server but > during development is more then annoying. Have you read the

Re: mod_python preprocess/filter before proxy

2007-09-27 Thread Graham Dumpleton
Yes, use PythonInputFilter directive to specify an input filter. http://www.modpython.org/live/current/doc-html/dir-filter-if.html Input filters which modify the length of the data may be an issue though when doing proxying however. If you cant work it out, possibly more appropriate to take yo

Re: mod_python and pysvn

2007-09-12 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Gabriel Genellina wrote: > If that's really actual code, looks wrong. You should double all your > backslashes or use a raw string. And \\P:... doesn't look well formed > either. DOSlexia strikes again. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python and pysvn

2007-09-12 Thread Gabriel Genellina
En Tue, 11 Sep 2007 15:35:00 -0300, Sjoerd <[EMAIL PROTECTED]> escribi�: > The actual command: > > client = Client() > repLog = client.log("\\P:\\tools\builds\publish\\") > I used an UNC path. The forming of the repository path must be inside > the pysvn > library. If that's really actual code, l

Re: mod_python and pysvn

2007-09-11 Thread Sjoerd
On Sep 11, 7:41 pm, Bjoern Schliessmann wrote: > Tim Golden wrote: > > Sjoerd wrote: > >> ClientError: Unable to open an ra_local session to URL > >> Unable to open repository 'file:///P:/tools/builds/repository' > > >> does anyone know how I can fix this? > > > Usually means that the process whic

Re: mod_python and pysvn

2007-09-11 Thread Bjoern Schliessmann
Tim Golden wrote: > Sjoerd wrote: >> ClientError: Unable to open an ra_local session to URL >> Unable to open repository 'file:///P:/tools/builds/repository' >> >> does anyone know how I can fix this? > > Usually means that the process which Apache is running under > (may well be LocalSystem) do

Re: mod_python and pysvn

2007-09-11 Thread Tim Golden
Sjoerd wrote: > Hello all, > > I have a script that uses pySVN. It gets the latest build information. > I want to create a call to that function in a PSP file but everytime I > try I get an error message: > > ClientError: Unable to open an ra_local session to URL > Unable to open repository 'file

Re: mod_python & doc file system layout

2007-07-04 Thread Graham Dumpleton
On Jul 5, 12:22 am, Jan Danielsson <[EMAIL PROTECTED]> wrote: > Hello all, > >This is probably more of an apache question, but I'm guessing there > will be other mod_python-beginners who are wondering the same thing. > >Let's say I have a web app called MyApp. It uses the usual images and >

Re: mod_python performs several magnitudes slower than PHP?

2007-05-21 Thread Graham Dumpleton
On May 21, 5:51 pm, Winfried Tilanus <[EMAIL PROTECTED]> wrote: > On 05/20/2007 Graham Dumpleton wrote: > > Hi, > > > A more suitable example for comparison would have been: > > And are there any benchmarks with this new version available? Just > curious... Unless someone else posts that specific

Re: mod_python performs several magnitudes slower than PHP?

2007-05-21 Thread Winfried Tilanus
On 05/20/2007 Graham Dumpleton wrote: Hi, > A more suitable example for comparison would have been: And are there any benchmarks with this new version available? Just curious... best wishes, Winfried -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python performs several magnitudes slower than PHP?

2007-05-19 Thread Graham Dumpleton
On May 20, 10:01 am, John Nagle <[EMAIL PROTECTED]> wrote: > That's puzzling, because withmod_python, you're only invoking > the compiler once per Apache restart. With CGI programs, you pay > the loading penalty on every request. > > John Nagle > > [EMAIL PROTEC

Re: mod_python performs several magnitudes slower than PHP?

2007-05-19 Thread John Nagle
That's puzzling, because with mod_python, you're only invoking the compiler once per Apache restart. With CGI programs, you pay the loading penalty on every request. John Nagle [EMAIL PROTECTED] wrote: > Recently I've had to move my site to a new dedicated ser

Re: mod_python & Cookie - unexpected dictionary value

2007-04-13 Thread Jan Danielsson
Jan Danielsson wrote: [---] Never mind. Cookie objects have a "value" attribute -- that's what I was doing wrong. -- Kind regards, Jan Danielsson And now a word from our sponsor -- Want to have instant messaging, and chat rooms, and discussion groups for your loca

Re: mod_python demo

2007-03-15 Thread Gabriel Genellina
En Wed, 14 Mar 2007 09:02:36 -0300, Jan Danielsson <[EMAIL PROTECTED]> escribió: > Hello all, > >I have written a web-based voting system (add question, add possible > answers to that question, and let users vote) in python. It uses: [...] >Is there any Python/web community site anywhere

Re: mod_python and Content-Type

2007-01-13 Thread Paul Rudin
"Graham Dumpleton" <[EMAIL PROTECTED]> writes: > All headers which come from the client are available through the > 'headers_in' > attribute of the request object. Eg. > > def handler(req): > ct = req.headers_in.get('Content-Type') > ... Thanks - it's even mentioned in the mod_python m

Re: mod_python and Content-Type

2007-01-13 Thread Graham Dumpleton
Paul Rudin wrote: > I'm have a little experiment with mod_python. I'm trying to figure out > how to get hold of the original Content-Type header. > > In my config file I have: > > > AddHandler mod_python .py > PythonHandler atomserv > PythonDebug On > PythonAutoReload

Re: Mod_python

2006-12-27 Thread Graham Dumpleton
Maxim Sloyko wrote: > Lad wrote: > > In my web application I use Apache and mod_python. > > I allow users to upload huge files( via HTTP FORM , using POST method) > > I would like to store the file directly on a hard disk and not to > > upload the WHOLE huge file into server's memory first. > > C

Re: Mod_python

2006-12-27 Thread J. Clifford Dyer
Lad wrote: > Maxim Sloyko wrote: >> Lad wrote: >>> In my web application I use Apache and mod_python. >>> I allow users to upload huge files( via HTTP FORM , using POST method) >>> I would like to store the file directly on a hard disk and not to >>> upload the WHOLE huge file into server's memory

Re: Mod_python

2006-12-27 Thread Lad
Maxim Sloyko wrote: > Lad wrote: > > In my web application I use Apache and mod_python. > > I allow users to upload huge files( via HTTP FORM , using POST method) > > I would like to store the file directly on a hard disk and not to > > upload the WHOLE huge file into server's memory first. > > C

Re: Mod_python

2006-12-27 Thread Maxim Sloyko
Lad wrote: > In my web application I use Apache and mod_python. > I allow users to upload huge files( via HTTP FORM , using POST method) > I would like to store the file directly on a hard disk and not to > upload the WHOLE huge file into server's memory first. > Can anyone suggest a solution? Th

Re: Mod_python vs. application server like CherryPy?

2006-12-09 Thread Graham Dumpleton
Damjan wrote: > > For example, consider an extreme case such as WSGI. Through a goal of > > WSGI being portability it effectively ignores practically everything > > that Apache has to offer. Thus although Apache offers support for > > authentication and authorisation, a WSGI user would have to imp

Re: Mod_python vs. application server like CherryPy?

2006-12-08 Thread Damjan
> For example, consider an extreme case such as WSGI. Through a goal of > WSGI being portability it effectively ignores practically everything > that Apache has to offer. Thus although Apache offers support for > authentication and authorisation, a WSGI user would have to implement > this functiona

Re: Mod_python vs. application server like CherryPy?

2006-12-06 Thread fumanchu
Graham Dumpleton wrote: > For example, consider an extreme case such as WSGI. > Through a goal of WSGI being portability it effectively > ignores practically everything that Apache has to offer. > Thus although Apache offers support for authentication > and authorisation, a WSGI user would have to

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 Graham Dumpleton
Vincent Delporte wrote: > 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 co

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 Graham Dumpleton
Vincent Delporte wrote: > 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

Re: Mod_python vs. application server like CherryPy?

2006-12-06 Thread Paul Boddie
Vincent Delporte wrote: > 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 n

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

Re: Mod_python vs. application server like CherryPy?

2006-12-05 Thread fumanchu
Vincent Delporte wrote: > 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

Re: mod_python installation problem ..severity High

2006-11-14 Thread Graham Dumpleton
boney wrote: > On doing this and duly following the installation and testing > instructions at www.modpython.org and then pointing the url as > http://localhost/test/mptest.py, i get the following error on the > server log file: > > [Tue Nov 14 15:17:47 2006] [error] make_obcallback: could not impo

Re: mod_python fails to load under wamp

2006-07-11 Thread Ant
> Uh... this may sound silly, but aren't .so files UNIX/Linux/Solaris > "shared object" files... Yes, but apache uses them (or at least the same file extension) for modules on Windows and Linux, so mod_python.so is correct. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python fails to load under wamp

2006-07-11 Thread Ant
> I suggest you search the download files on Xampp's sourceforge site and > look for an older version with Apache 2.0.55 . I'm not sure, but I > think xampp version 1.5.1 will be ok I did this just a few days ago, you could be right, but version 1.5.1 had no release notes, and a dodgy release num

Re: mod_python fails to load under wamp

2006-07-10 Thread Luis M. González
Gaurav Agarwal wrote: > Hi, > > Am using WAMP5 and python 2.4.3. I tried to install mod_python 3.2.5 > for python2.4. When i tried starting wamp, Firstly there was no error > message in the apache error log. I saw error message in windows event > viewer : > > "The Apache service named Apache.exe re

Re: mod_python fails to load under wamp

2006-07-10 Thread Ant
> "The Apache service named Apache.exe reported the following error: > >>> Cannot load c:/wamp/apache/modules/mod_python.so into server: (126) The > >>> specified module could not be found: <<< > before the error.log file could be opened." I have just had a similar problem (same error message),

Re: [mod_python] using nested blocks in psp

2006-06-12 Thread cloc3
[EMAIL PROTECTED] wrote: See: > > http://www.modpython.org/pipermail/mod_python/2005-May/018102.html > > Comment hints may still be needed in certain cases to turn off scopes > even if 8 space or tab indents are needed so it is good to understand > what they are about. > Thank you. That solves m

Re: [mod_python] using nested blocks in psp

2006-06-12 Thread grahamd
cloc3 wrote: > I'm a newbie in python, and I'm fighting against nested blocks in psp. > Thats a little example with a funny behaviour: > [code] > > > > > > <% > for i in range(50, 350, 50): > if 'List' in form and int(form['List'])==i: > sel="selected" > else: > sel="pippo" > %> ><%=i%>

Re: mod_python, COM, on win2k3 server

2006-05-20 Thread drs
Some details, and this is weirder than I thought. It is working fine with internet explorer or mozilla as the client, but only crashes with Firefox. Moreover, even while firefox is getting errors, IE stilll works fine. The error I get is: Mod_python error: "PythonHandler mod_python.publisher"

Re: mod_python web-dav management system

2006-04-23 Thread Kyler Laird
[EMAIL PROTECTED] writes: >What about if there existed a mod_dav_python for Apache. Would >that be of interest. To me it would only be of interest if it's combined with Apache's suid capabilities. > The idea is that the module could bridge the >C API hooks and structures of mod_dav module to Pyt

Re: mod_python web-dav management system

2006-04-19 Thread grahamd
Kyler Laird wrote: > Damjan <[EMAIL PROTECTED]> writes: > > >Now I've been thinking that it might be pretty easy to implement a > >authorization layer with mod_python (but living handling of the web-dav > >protocol to apache)... So, has anyone already done something similar? > > Yup. I'm in the p

Re: mod_python web-dav management system

2006-04-19 Thread Kyler Laird
Damjan <[EMAIL PROTECTED]> writes: >I wouldn't use Zope as file storage. The ZODB is inefficient for storing big >files. It sounds like you're describing Zope FileStorage. There are certainly other options for Zope storage. I still use DirectoryStorage sometimes but Zope Local File System

Re: mod_python web-dav management system

2006-04-19 Thread Kyler Laird
Damjan <[EMAIL PROTECTED]> writes: >Now I've been thinking that it might be pretty easy to implement a >authorization layer with mod_python (but living handling of the web-dav >protocol to apache)... So, has anyone already done something similar? Yup. I'm in the process. I'm using mod_python to

Re: mod_python + apache + winxp => nogo

2006-04-09 Thread cyberco
yep -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python + apache + winxp => nogo

2006-04-09 Thread cyberco
Hi Jim, Thanks, I'll sign up for the mailinglist, but to finish the story here: - I only have one version of Python installed - From the Python interpreter I can import the mod_python module just fine - At starup the Apache log states: [Sun Apr 09 22:16:38 2006] [notice] Apache/2.0.55 (Win32) mod

Re: mod_python + apache + winxp => nogo

2006-04-09 Thread Jim Gallacher
cyberco wrote: > Thanks Jim, I indeed did not look in the mailinglist archive (you have > to subscribe for that and Google didn't cache it yet). > > The problem was indeed the missing .DLL's. After adding them to my > 'PATH' variable apache was at least able to start. Unfortunately things > still

Re: mod_python + apache + winxp => nogo

2006-04-09 Thread cyberco
Thanks Jim, I indeed did not look in the mailinglist archive (you have to subscribe for that and Google didn't cache it yet). The problem was indeed the missing .DLL's. After adding them to my 'PATH' variable apache was at least able to start. Unfortunately things still don't work. When I try to l

Re: mod_python + apache + winxp => nogo

2006-04-08 Thread Damjan
> to apache's httpd.conf, apache refuses to start, saying: > "cannot load c://mod_python.so into server: the specified module > could not be found" which probably means that mod_python.so is not in that directory? -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python + apache + winxp => nogo

2006-04-07 Thread Jim Gallacher
Fuzzyman wrote: > cyberco wrote: > >>And I thought this would be trivial...getting mod_python to run within >>apache on windows XP. >> >>= >>mod_python 3.2.8 >>apache 2.0.55 >>python2.4 >>winxp >>= >> >>After adding: >>"LoadModule python_module modules/mod_python.so" >> >

  1   2   >