Greetings fellow Python People!
I am using the latest debian-unstable Apache 1.3 and mod-python 2.7 with
python 2.3.3
Yesterday I wrote a small mod-python script which returned the URL
entered as a XML snippet.
This morning, I created a new directory, and copied this script and
..htaccess file across to a new directory, and changed the program to
return a list of tables and fields in a MySQL table.
I was making good progress, things were working great. Then I hit
refresh (Ctrl-R), _twice_, in Mozilla, and lo-and-behold, I received an
XML snippet of the URL. The program I wrote _yesterday_ appeared to be
running instead of my current work! This is *not* a caching problem, as
I am able type in different URL's and receive the correct XML snippet
back in the browser.
I am not importing modules, I am writing all my code in the handler.py
file, which is pointed at by my .htaccess file, so this is not a module
reloading problem.
This is extremely bizarre behaviour, and I am unable to track down the
problem. The only solution is to restart apache, which is unacceptable.
What if this happened in a production environment?
Can anyone explain this weirdness? 1 1455
On Wed, 4 Feb 2004 10:53:31 +0800, "Simon Wittber" <dr******@metap lay.com.au> wrote: Greetings fellow Python People!
I am using the latest debian-unstable Apache 1.3 and mod-python 2.7 with python 2.3.3
Yesterday I wrote a small mod-python script which returned the URL entered as a XML snippet.
This morning, I created a new directory, and copied this script and .htaccess file across to a new directory, and changed the program to return a list of tables and fields in a MySQL table.
I was making good progress, things were working great. Then I hit refresh (Ctrl-R), _twice_, in Mozilla, and lo-and-behold, I received an XML snippet of the URL. The program I wrote _yesterday_ appeared to be running instead of my current work! This is *not* a caching problem, as I am able type in different URL's and receive the correct XML snippet back in the browser.
I am not importing modules, I am writing all my code in the handler.py file, which is pointed at by my .htaccess file, so this is not a module reloading problem.
This is extremely bizarre behaviour, and I am unable to track down the problem. The only solution is to restart apache, which is unacceptable. What if this happened in a production environment?
Can anyone explain this weirdness?
Is it possibly executing the .pyc compiled from the previous version for
some reason? What are the paths etc. involved in accessing .py and .pyc?
(or .pyo, if that's involved). What is the default directory when it runs?
Regards,
Bengt Richter This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Todd |
last post by:
I can't find a Mod or remainder function in .net. Does anyone know if these
fuctions exist?
--
Thanks in advance,
Todd
|
by: Ken |
last post by:
Any thoughts on making explicit calls to unexpected()? My sense is
that this function is really intended to be invoked automatically as
part of exception handling. Are there times when explicit calls would
be useful? Or would doing so introduce bug risks or maintanance
headaches unnecessarily?
Thanks for any opinions!
Ken
|
by: Jo |
last post by:
Hi Guys!
I'm sorry for my stupid question.
I want to use the operator "mod" (perhaps mod is pascal and not c++)
to calculate the rest of a division, to separate the odd and even number of
an array.
do you know what is the name of operator I need ? ("mod" is pascal ?)
|
by: Eric Anderson Vianet SAO |
last post by:
hello all
When i tried ´pg_dump -v -f dump.dmp dtbtransporte´ I got the error:
pg_dump: restoring data for table tbdmovimento
pg_dump: dumping out the contents of table tbdmovimento
pg_dump: ERROR: unexpected chunk number 8 (expected 0) for toast value 6935693
|
by: Mark |
last post by:
Why does MsgBox 4.25 MOD 1 display 0? I was hoping to get .25.
Thanks!
Mark
| |
by: Mike Reid |
last post by:
Appreciate any feedback on the MOD function. I am at a loss to
understand its "mathmatics".
From the help
Result = Number1 MOD Number2 where the result should be the remainder
of the division.
Create a quick form with 3 unbound fields where the values are all
stored as either double or long (doesnt seem to make any difference in
|
by: Michael C# |
last post by:
A statement of the form (m mod n) uses the sign of the first operand (m) as
the sign of the result. I've ecnountered an issue where I need it to use
the sign of the second operand. Here's what it looks like now:
-363 mod -60 = -3
-363 mod 60 = -3
363 mod -60 = 3
Anyone have any ideas? Thanks.
|
by: vagos |
last post by:
Can someone please tell me why i get the following error ??
The strange is that sometimes i get the error and sometimes not !!
Also there is no syntax error on line 251
Warning: Unexpected character in input: ' in
/usr/local/apache/htdocs/functions.php on line 251
Thanks,
Vagos
|
by: Rob |
last post by:
I'm looking for a mod 10 script that you know to work well. I have googled
and found a few different ones but I would like a 2nd opinion. If you can
please link me to a mod 10 script that you have used/implimented I would
appreciate it.
Ideally I would like a vbscript over javascript so we can have it
implimented on an access db as well.
Thanks.
|
by: RN1 |
last post by:
79 Mod 92 evaluates to 79
156 Mod 249 evaluates to 156
So while using the Mod operator, if the first number is less than the
second number, will the result be ALWAYS EQUAL to the first number?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 we have to send another system
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |