how to make fillable forms with reportlab in python
hi, can anyone please help me with creating forms in python using the reportlab lib. i am totally new to this and i would appreciate sample code thanks ...
hi, can anyone please help me with creating forms in python using the reportlab lib. i am totally new to this and i would appreciate sample code thanks ...
Which linux distro is better suited for Python web development? Background: I currently develop on Windows and it's fine, but I am looking to move my core Python development to Linux. I'm sure most any distro will work fine, but does anyone have any reasons to believe one distro is better than another? ...
I have a small script that use urllib2 to get the contents of a site, find all the link tags, appends a small piece of HTML in on the top and bottom, and then I try to prettify it. It keeps returning TypeError: sequence item 1: expected string, Tag found. I have looked around, can't really find the issue. As always, any help, much apprec...
Why do these two operations give different results? >>> c = [1, 2, 3] >>> c [1, 2, 3] >>> c += c >>> c [1, 2, 3, 1, 2, 3] >>> c = [1, 2, 3] >>> c.append(c) >>> c [1, 2, 3, [...]] >>> In the last case there's actually infinite recursion. c[-1] and c are the same. Why is it different with the + operation? ...
I'm looking for a payment gateway company so we can avoid tiresome PCI-DSS certification and its associated expenses. I'll get this out the way now, I don't want Paypal. It does what I want but it's really not a company I want to trust with any sort of money. It needs to support the following flow: User performs actions on our site, g...
Brand new to django. We have a legacy django project using django 0.96x that does authentication, ldap, etc., and it's pretty involved so we don't want to rewrite that code. We want to add a forum solution (off the shelf) but all of the ones I've seen so far require django 1.x I'm trying to figure out how to get this working and I've ...
Hi, i'm stress testing 2 different projects: one is proxsmtpd - smtp proxy written in C And the other one, smtp_proxy.py, which i developed under 1 hour, with use of asyncore and smtpd python modules. I stressed both projects under heavy load, and found out that proxsmtpd is able to hold 400 smtp sessions / sec, while my python program,...
I'm familiar with yeild to return a value thanks mostly to this question but what does yield do when it is on the right side of an assignment? @coroutine def protocol(target=None): while True: c = (yield) def coroutine(func): def start(*args,**kwargs): cr = func(*args,**kwargs) cr.next() return c...
Hi there, I'm writing and app in Python that must be able to send keys or text to other app. For example, If I have Firefox open, I should be able to send it an URL to open it. I've already have the SendKeys module, and I read about the win32 module too, but I don't know if there's a way to filter out process without open windows. Any ...
I'm trying to make a cherrypy application with a wxpython ui. The problem is both libraries use closed loop event handlers. Is there a way for this to work? If I have the wx ui start cherrypy is that going to lock up the ui? ...
I'm working on a python application that runs on 2 different platforms, namely regular desktop linux and Maemo 4. We use PyGTK on both platforms but on Maemo there are a bunch of little tweaks to make it look nice which are implemented as follows: if util.platform.MAEMO: # do something fancy for maemo else: # regular pygtk The...
I need to create a diff file using standard UNIX diff command with python subprocess module. The problem is that I must compare file and stream without creating tempopary file. I thought about using named pipes via os.mkfifo method, but didn't reach any good result. Please, can you write a simple example on how to solve this stuff? I tri...
Hi, I'm using a GtkSheet widget in PyGTK to power my application's spreadsheet, and it gives me an API to pull and push data out of cells. (I looked at using GtkTreeView, but it seemed to be too much work) What I don't understand is how to intercept paste requests (via ie. CTRL+V) so that I can process them rather than passing it throu...
How can I check files that I already processed in a script so I don't process those again? and/or What is wrong with the way I am doing this now? Hello, I am running tshark with the ring buffer option to dump to files after 5MB or 1 hour. I wrote a python script to read these files in XML and dump into a database, this works fine. My ...
I'm interested in getting started w/ developing Python based applications for a desktop environment and have a few (seemingly simple) questions: What is the best method for developing GUI applications? I've seen several frameworks but the indexes I've found are a bit convoluted and mix (what seem to be) legacy packages. In your opinion...
I am python newbie from the asp.net MVC world, looking to start a new web application project in python. How do I go about choosing a web application framework in python? Python website points to a lot of frameworks. So much that I am confused to the core. I have some rudimentary knowledge about the frameworks. Here’s based on what...
import httplib def httpCode(theurl): if theurl.startswith("http://"): theurl = theurl[7:] head = theurl[:theurl.find('/')] tail = theurl[theurl.find('/'):] response_code = 0 conn = httplib.HTTPConnection(head) conn.request("HEAD",tail) res = conn.getresponse() response_code = int(res.status) return res...
Very simple. >>> import socket >>> socket.gethostbyname('http://yahoo.com') Traceback (most recent call last): File "<stdin>", line 1, in <module> socket.gaierror: [Errno -2] Name or service not known ...
Hi, the front end and end-user data-collection we want to build in RoR since it's just some simple forms connected to a database. The integration with other external api's such as twitter and facebook and parsing of the data entered by the users we want to do in python, mostly because the developer for that part knows python. Is that p...
It's something like this, but this example seems a little complicated. import simplejson as json json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) My dictionary is: myfruits = {'fruit':4, 'color':11} How can I turn this into a JSON, and then use render_to_response to shoot it to a template? I'm using ...