Re: [DB-SIG] dbf files and compact indices

2013-11-08 Thread Paul Hemans
If you can read c code, have a look at the Harbour (clipper) open source project. It works with CDX files. -- https://mail.python.org/mailman/listinfo/python-list

Regular expression

2010-11-05 Thread Paul Hemans
I need to extract the quoted text from : _("get this") The following works: re.compile( "_\(['\"]([^'\"]+)['\"]\)" ) However, I don't want to match if there is A-Z or a-z or 0-9 or _ immediately preceding the "_" so I have tried: "[^0-9a-zA-Z]*_\(['\"]([^'\"]+)['\"]\)" "[^\w]{0,1}_\(['\"]([^'\"]+

Re: Newbie: Win32 COM problem

2010-08-25 Thread Paul Hemans
Yes, that was it. I just needed to restart the host process. Thanks "Mark Hammond" wrote in message news:mailman.51.1282784920.29448.python-l...@python.org... > On 25/08/2010 10:33 PM, Paul Hemans wrote: >>File "C:\development\PyXLS\pyXLS.py", line 13, in creat

Newbie: Win32 COM problem

2010-08-25 Thread Paul Hemans
Simple class to wrap the xlwt module for COM access pyXLS.py: from xlwt import Workbook class WrapXLS: _reg_clsid_ = "{c94df6f0-b001-11df-8d63-00e09103a9a0}" _reg_desc_ = "XLwt wrapper" _reg_progid_ = "PyXLS.Write" _public_methods_ = ['createBook','createSheet','writeSheetCell',

Re: Extract a bordered, skewed rectangle from an image

2010-05-09 Thread Paul Hemans
Thanks David, that is a 'tonne' of information. I am going to have a play with it, probably looking at masking out the contents of the label and finding the label border within the scanned document is the place to start. Looks like there is going to be a learning curve here. Thanks again for yo

Extract a bordered, skewed rectangle from an image

2010-05-06 Thread Paul Hemans
We have a scanned document on which a label has been attached. The label has been designed to have a border that makes it easy to determine the correct orientation and area of the label. The label portion of the scanned image needs to be extracted and deskewed as an image. The contents of the la

Managing a multiple threaded service

2009-06-16 Thread Paul Hemans
Hi, New to Python I've got 2 threads 1 is the SimpleHTTPRequestHandler, the other polls a site for data. I want to run the program as a windows service. My questions are: Should both of them run as threads and then just have an infinite loop with a sleep in the main thread in order to stop t

Re: distutils and building an distribution that includes other packages

2009-05-19 Thread Paul Hemans
On May 20, 3:01 pm, Chris Rebert wrote: > > "Chris Rebert" wrote in message > >news:mailman.426.1242792992.8015.python-l...@python.org... > >> On Tue, May 19, 2009 at 8:55 PM, Paul Hemans wrote: > >>> Hi, > >>> I am new to Python, and af

Re: distutils and building an distribution that includes other packages

2009-05-19 Thread Paul Hemans
org... > On Tue, May 19, 2009 at 8:55 PM, Paul Hemans wrote: >> Hi, >> I am new to Python, and after a lot of sweat and tears, I have my first >> app. >> Now I need to deploy it to end-users. The application includes the use of >> lxml and sqlAlchemy so I need t

distutils and building an distribution that includes other packages

2009-05-19 Thread Paul Hemans
Hi, I am new to Python, and after a lot of sweat and tears, I have my first app. Now I need to deploy it to end-users. The application includes the use of lxml and sqlAlchemy so I need those to install automatically as part of the installation process. I really don't want the users having to dow

Help with a HTTP GET request

2009-05-12 Thread Paul Hemans
I am trying to build a HTTP request that looks like: http://localhost/common/foxisapi.dll/tmsmail.x2.isapi? Works in a browser. lxml.parse() gives me: failed to load external entity urllib2.urlopen() gives me: Bad request So I am trying httplib I have encoded the GET request with urllib.quote ()

Re: What do you think of ShowMeDo

2009-05-01 Thread Paul Hemans
2009 07:53:35 +1000, Paul Hemans wrote: > [snip] >> them as they have been recorded in the anals of the web, however I > .^ > > That's the second time in this thread. The first might have been > deliberate gross wordplay, but no

Re: What do you think of ShowMeDo

2009-05-01 Thread Paul Hemans
I also am new to Python and found the site. The main barrier to me was the price. Pay as you use with credits might be less of a problem in an community environment where so much is available. The interface did not lead me to understand where I could find the free stuff, I also did not realize how

Re: What do you think of ShowMeDo

2009-05-01 Thread Paul Hemans
I also am new to Python and found the site. The main barrier to me was the price. Pay as you use with credits might be less of a problem in an community environment where so much is available. The interface did not lead me to understand where I could find the free stuff, I also did not realize

Memory problems - fixed!

2009-05-01 Thread Paul Hemans
Taking into account that I am very new to Python and so must be missing something important dumping xml.dom and going to lxml made a WORLD of difference to the performance of the application. -- http://mail.python.org/mailman/listinfo/python-list

Problems resolved

2009-04-29 Thread Paul Hemans
Thanks to everyone for all the suggestions. Here's what I did: Stuck with sqlAlchemy because I like the idea of ORMs and I like being able to abstract from the database vendor. Left the schema definitions to be generated in a separate file, so that it could be re-used Dumped xml.dom and went to l

Re: Is there a maximum size to a Python program?

2009-04-27 Thread Paul Hemans
Hi, Please see my post titled "The whole story" "Martin P. Hellwig" wrote in message news:qokdnqz7zfefw2junz2dnuvz8jqdn...@bt.com... > Carbon Man wrote: >> I have a program that is generated from a generic process. It's job is to >> check to see whether records (replicated from another system)

The whole story

2009-04-27 Thread Paul Hemans
Hi Andrew, The reason I am using mapped objects is that I need to abstract from the database implementation allowing the replication to target a number of different platforms. This will definitely slow things down. > process a whole pile in memory and then (perhaps every 10,000 - when your > mem

Re: Is there a maximum size to a Python program?

2009-04-27 Thread Paul Hemans
y problem. "John Machin" wrote in message news:3215638c-2408-4cf6-9321-f85f560e6...@u39g2000pru.googlegroups.com... On Apr 27, 3:31 pm, "Paul Hemans" wrote: > Thanks John, I understand where you are coming from and will try and > digest > it all. One problem though

Re: Is there a maximum size to a Python program?

2009-04-26 Thread Paul Hemans
Thanks John, I understand where you are coming from and will try and digest it all. One problem though that I didn't mention in my original posting was that the replication may only require updating one or more fields, that is a problem with a generating a single SQL statement to cover all reque

Re: Is there a maximum size to a Python program?

2009-04-26 Thread Paul Hemans
Thanks for the reply, > Sounds like a needlessly complicated way of doing things. Surely > replicating data from a database is a solved problem? The data is coming from a legacy system and going into SQLalchemy to give database independence. We will probably update the legacy apps in the future