473,503 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mod_python bytecompiling

Hello!

I am writing a small program using mod_python publisher extension. I
have created several python files and imported them in a `main' file.
How can I stop mod_python to byte compile the files? I want to make
changes to the files and see result imediately!

In the current setup only the changes to the `main' file are applied
imediately. I is nearly imposible to develop an application this way.

I want to mention that I'm a newby to mod_python.

Mar 29 '06 #1
3 1342
"mneagul" wrote:
I am writing a small program using mod_python publisher extension. I
have created several python files and imported them in a `main' file.
How can I stop mod_python to byte compile the files? I want to make
changes to the files and see result imediately!

In the current setup only the changes to the `main' file are applied
imediately. I is nearly imposible to develop an application this way.

I want to mention that I'm a newby to mod_python.


the FAQ has the answer:

http://www.modpython.org/FAQ/faqw.py...=faq03.001.htp
"Q. My module imports other modules - how do I reload those?"

(another approach, used by several frameworks, is to use a stand-alone
test server for development, and mod_python for deployment)

</F>

Mar 29 '06 #2

Fredrik Lundh wrote:
"mneagul" wrote:
I am writing a small program using mod_python publisher extension. I
have created several python files and imported them in a `main' file.
How can I stop mod_python to byte compile the files? I want to make
changes to the files and see result imediately!

In the current setup only the changes to the `main' file are applied
imediately. I is nearly imposible to develop an application this way.

I want to mention that I'm a newby to mod_python.


the FAQ has the answer:

http://www.modpython.org/FAQ/faqw.py...=faq03.001.htp
"Q. My module imports other modules - how do I reload those?"

(another approach, used by several frameworks, is to use a stand-alone
test server for development, and mod_python for deployment)


Simply using apache.import_module() is not going to necessarily help
at the moment as it has various problems and shortcomings. One of
them is that it does not check multiple levels of dependencies between
modules. Thus simply replacing global imports in a module with a call
to apache.import_module() will not help.

For a full list of problems and issues with the mod_python module
importer see:

http://www.dscpl.com.au/articles/modpython-003.html

There is a new module importer being tested with mod_python 3.3
which will hopefully eliminate the major problems.

Highly recommend that original poster get onto the mod_python mailing
list to discuss what he can do in the interim.

Graham

Mar 29 '06 #3
Problem solved!!!
Thank You!

Mar 29 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2266
by: wolf | last post by:
i would like to briefly share my experiences with installing mod_python on a w2000 box. i must say that i believe the installation process to be unnecessarily complicated by the simple fact that...
2
2067
by: Robert J. Hansen | last post by:
I'm not entirely certain comp.lang.python is the proper newsgroup for mod_python questions, but "comp.lang.python.web" doesn't seem to exist, so... my apologies in advance if this is considered...
0
1779
by: Python_it | last post by:
I'm going to work with mod_python. I install mod_python 3.2.2b for python 2.4. If i test my install with mptest.py see this link:...
6
1932
by: Anthony L. | last post by:
I am writing a web application that is comparable to a content management system used in blogging. I really want to use Python after having done some evaluation coding using Python 2.3.5 with...
1
4317
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
2
3291
by: exhuma.twn | last post by:
Hi again, as soon as I try to make use of the "session" object inside a psp-template file, I get the following error: Mod_python error: "PythonHandler mod_python.publisher" Traceback (most...
5
3089
by: m.banaouas | last post by:
Hi, bonjour, witch versions are suitable to use for apache & mod_python ? Can i install and use "Apache 2.2.3" & "mod_python 3.2.10" (most recent versions) without facing any known major...
3
1793
by: Michael | last post by:
Hey everyone, Is it possible to automatically insert headers/footers using mod_python? I will be not be using PSP's, so I cannot use the PSP/include solution. Furthermore, the header will be...
3
4925
by: joe jacob | last post by:
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added <Directory...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4689
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.