Django error tracebacks07 (2/27/2013 5:31:16 PM) comp.lang.python I've been developing in Django for a while now and I often find that when
there is an exception in a view I'm working on, the error traceback screen
does not show the actual error; instead it claims the error... John
Terminal line wrapping and cut/paste417 (9/11/2012 7:19:49 PM) comp.unix.questions I use the PuTTY terminal software to access several different unix host
machines. I've noticed that on some machines, when I select a line of
text that has wrapped and then paste it into another window, it w... John
How to get outer class name from an inner class?522 (5/8/2012 8:05:20 PM) comp.lang.python I'm trying to come up with a scheme for organizing exceptions in my application. Currently, I'm using a base class which knows how to look up the text of a specific error in a database table, keyed on the erro... John
Best way to disconnect from ldap?1224 (3/21/2012 7:30:16 PM) comp.lang.python I'm writing an application that interacts with ldap, and I'm looking for advice on how to handle the connection. Specifically, how to close the ldap connection when the application is done. I wrote a class to... John
How can I catch misnamed variables?618 (2/10/2012 9:06:58 PM) comp.lang.python Recently I was been bitten by some stupid errors in my code, and I'm wondering if there's a simple way to catch them. One error was of the form: my_object.some_function() ... when I hadn't declared an obje... John
re.sub(): replace longest match instead of leftmost match?1423 (12/16/2011 4:49:56 PM) comp.lang.python According to the documentation on re.sub(), it replaces the leftmost matching pattern. However, I want to replace the *longest* matching pattern, which is not necessarily the leftmost match. Any suggestions? ... John
Benefits of xml.dom.minidom?131 (10/20/2011 5:46:31 PM) comp.lang.python I recently inherited some code that uses xml.dom.minidom to build a large XML document, and I noticed that it is quite slow and uses a ton of memory. I converted the same code to use lxml.etree and it is much ... John
Data issues with Django and Apache318 (8/14/2011 2:20:30 AM) comp.lang.python I'm devleoping a website using the Django framework along with Apache, and I'm seeing some odd data issues. During the course of navigating through the website content, a user will cause the creation of some d... John
Repeated output when logging exceptions615 (9/24/2009 7:43:14 PM) comp.lang.python I wrote some code to handle and log exceptions in my application. It works well, but it produces double output for each exception. How can I fix this? Here's the pared-down code: ----- main.py import exceptio... John
Different results for request() vs putrequest()124 (9/3/2009 9:43:51 PM) comp.lang.python According to the documentation, these two sections of code should be equivalent: conn = httplib.HTTPSConnection(host) conn.putrequest("POST", url) conn.putheader("Proxy-Authorization", myProxy) conn.pu... John
unzipping a zipx file45 (4/19/2013 5:59:26 PM) comp.lang.python I have python 2.6.2 and I trying to get it to unzip a file made with winzip=
pro. The file extension is zipx. This is on a windows machine where I ha=
ve to send them all that files necessary to run. I am... brian2710(1)
How to connect to a website?34 (4/22/2013 4:16:01 PM) comp.lang.python Hi,
i just try to connect to a website, read that page and display the rules get from it.
Then i get this error message:
File "D:/Python/Py projects/socket test/sockettest.py", line 21, in
fileobj.... webmaster1637(5)
datetime.strptime() not padding 0's15 (4/23/2013 9:14:50 PM) comp.lang.python --e89a8ff1cdf0cd860504db0daeae
Content-Type: text/plain; charset=ISO-8859-1
I thought I read some where that strptime() will pad 0's for day's for some
reason this isnt working for me and I'm wondering if ... rodrick.brown(83)
RE: Passing special characters in soap data11 (4/30/2013 11:50:31 AM) comp.lang.python --047d7b2e47101fd3cc04db929e30
Content-Type: text/plain; charset=ISO-8859-1
Hi Team,
My provider sends soap data to me as they receive from subscriber. as
expected the messages with special characters l... moraa.lovetakes2(10)
First python program, syntax error in while loop283 (5/3/2013 5:18:58 PM) comp.lang.python title = "Guess my number game:"
print title.title()
raw_input("Press any key to continue..")
import random
tries = 0
number = random.randrange(99) + 1
guess = int(raw_input("Guess my number! Secret - ... ryankoch38(5)
python backup script173 (5/6/2013 7:01:06 PM) comp.lang.python I am trying to backup database on CentOS linux server,I'm getting error when running the following script. anyone can help?
#!/usr/bin/env python
import ConfigParser
import os
import time
config = Co... programmer.toronto(5)
Get filename using filefialog.askfilename41 (5/7/2013 8:27:59 PM) comp.lang.python Well. It's driving me crazy. So simple....
I use:
file = filedialog.askopenfile ( mode....... )
to open a file with an open dialog box, OK. Made it.
How i get the name of the opened file?
i do :
... cheirasacan(5)
pointer doubt (1)212 (5/8/2013 6:46:58 PM) comp.lang.c Can ne1 explain me the difference between.... a NULL pointer ... and a
VOID pointer.
With Many Thanks.
... nospam21(11322)
@staticmethods called more than once61 (5/21/2013 3:26:46 PM) comp.lang.python Hi,
i'm somewhat confused working with @staticmethods. My logger and configuration methods are called n times, but I have only one call.
n is number of classes which import the loger and configuration cl... mining.facts1(5)