Is there any pywin32 odbc connector documentation available?
What is a good pywin32 odbc connector documentation and tutorial on the web? ...
What is a good pywin32 odbc connector documentation and tutorial on the web? ...
What library should I use to connect to odbc from python on windows? Is there a good alternative for pywin32 when it comes to odbc? What about pyodbc? http://code.google.com/p/pyodbc/ Any others? Which one is good documented, robust, actively maintained, what are you guys using? ...
Hello together, I would like to realise a monitor window that reports the user about ongoing computations. To do so I wrote a little class. But as I would like to use it accross different modules in an easy fashion I thought to implement it with classmethods. This allows to use it in the following way without instances: from MonitorMod...
How could one test whether a set of modules is installed, given the names of the modules. E.g. modules = set(["sys", "os", "jinja"]) for module in modules: # if test(module exists): # do something While it's possible to write out the tests as: try: import sys except ImportError: print "No sys!" This is a bit cumbersome f...
I want to programmatically edit python source code. Basically I want to read a .py file, generate the AST, and then write back the modified python source code (i.e. another .py file). There are ways to parse/compile python source code using standard python modules, such as ast or compiler. However, I don't think any of them support way...
I have a Django application I'm developing that must make a system call to an external program on the server. In creating the command for the system call, the application takes values from a form and uses them as parameters for the call. I suppose this means that one can essentially use bogus parameters and write arbitrary commands for t...
There is an "Unofficial Plurk API in Python". Plurk is a twitter-like website. Can I use the API(python) from Objective-C? Or i have to port them? ...
Is there a way to force a gtk.Window object to ignore the Window Manager's show/hide commands, such as "iconify" and "show desktop?" I'm trying to create a persistent window, stuck to the desktop, that will not disappear with all other windows when the desktop is exposed. EDIT: I guess what I'm wondering specifically is whether or not ...
I'm trying to dynamically load modules I've created. Right now this works properly: import structures.index But if I try the same thing by importing it dynamically, it fails. struct = __import__("structures.index") Error supplied is: Error ('No module named structures.index',) Any ideas why? Edit: When using full scope (it s...
I would like to use the entry point functionality in setuptools. There are a number of occasions where I would like to tightly control the list of eggs that are run, and thence the extensions that contribute to a set of entry points: egg integration testing, where I want to run multiple test suites on different combinations of eggs. s...
I'm combing a webapp's log file for statements that stand out. Most of the lines are similar and uninteresting. I'd pass them through Unix uniq, however that filters nothing, as all the lines are slightly different: they all have a different timestamp, similar statements might print a different user ID, etc. What's a way and/or tool to...
My current setup.py (using setuptools) installs two things, one is tvdb_api (an API wrapper), the other is tvnamer (a command line script) I wish to make the two available separately, so a user can do.. easy_install tvdb_api ..to only get the API wrapper, or.. easy_install tvnamer ..to install tvnamer (and tvdb_api, as a requireme...
How do I create an "AND" filter to retrieve objects in Django? e.g I would like to retrieve a row which has a combination of two words in a single field. For example the following SQL query does exactly that when I run it on mysql database: select * from myapp_question where ((question like '%software%') and (question like '%java%')) ...
In Python, I'm trying to read the values on http://utahcritseries.com/RawResults.aspx. How can I read years other than the default of 2002? So far, using mechanize, I've been able to reference the SELECT and list all of its available options/values but am unsure how to change its value and resubmit the form. I'm sure this is a common ...
Hello! I need to make a global hotkey for my application, and it should work under X11 and Windows. Programming language: Python. Thanks. ...
I'm trying to work out what's not working in this code: #!/usr/bin/python import cmd class My_class (cmd.Cmd): """docstring for Twitter_handler""" def __init__(self): super(My_class, self).__init__() if __name__ == '__main__': my_handler = My_class() Here's the error I get Traceback (most recent call last): File...
Assume I have this barebones structure: project/ main.py providers/ __init.py__ acme1.py acme2.py acme3.py acme4.py acme5.py acme6.py Assume that main.py contains (partial): if complexcondition(): print providers.acme5.get() Where __init__.py is empty and acme*.py contain (partial): def get(): v...
I'm developing a gae application on a windows machine. to have session handling I downloaded gaeutilities and added its path (C:\Python25\Lib\site-packages\gaeutilities-1.2.1) to the registry ("PythonPath" item under python25). in my code this is how I import the gaeutilities Session class: from appengine_utilities.sessions import Sess...
I would like to give users access to delete a model instance that they added to the db. In the django docs it says allowing someone to delete from the template is not a good practice. Is there a secure way to let a user click a "delete this" link from the template and remove that model instance? How should I go about doing that? ...
I'm using mod_wsgi and was wondering if it's possible to over-write the print() command (since it's useless). Doing this doesn't work: print = myPrintFunction Since it's a syntax error. :( ...