Re: Create a list of dates for same day of week in a year

2017-06-27 Thread waldemar . osuch
> Thoughts or examples? > dateutil.rrule is what you may use e.g. In [38]: from dateutil import rrule In [39]: from datetime import date

Re: [wanted] python-ldap for Python 2.3 / Win32

2011-10-25 Thread Waldemar Osuch
I did try to build it using my current setup but it failed with some linking errors. Oh well. Google gods were nicer to me. Here is a couple alternative links. Maybe they will work for you. http://web.archive.org/web/20081101060042/http://www.agescibs.org/mauro/ http://old.zope.org/Members/volke

Re: Deploying on Windows servers : advice sought a module

2011-03-08 Thread Waldemar Osuch
At my work place I still use py2exe but I do not rely on its automatic discovery and packaging. The setup.py lists all the dependencies explicitly in "packages" and "includes" parameters. These end up in library.zip. Then the source file paths with the actual business logic are gathered with

Re: Making Line Graphs

2011-02-18 Thread Waldemar Osuch
Standard answer in such a case is matplotlib http://matplotlib.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Unix-head needs to Windows-ize his Python script

2010-10-20 Thread Waldemar Osuch
On Oct 20, 11:38 am, gb345 wrote: > I have a handy Python script, which takes a few command-line > arguments, and accepts a few options.  I developed it on Unix, with > very much of a Unix-mindset.  Some Windows-using colleagues have > asked me to make the script "easy to use under Windows 7".  I.

Re: py2exe and msvcp90.dll

2010-04-15 Thread Waldemar Osuch
On Apr 14, 10:19 pm, Alex Hall wrote: > Hi all, > I am still fighting with py2exe; I keep getting "error: msvcp90.dll: > no such file or directory" right after it says it is searching for > required dlls. I have followed the py2exe tutorial, though, and I am > not sure why it is not finding the dl

Re: Use python and Jython together? (newbie)

2010-03-13 Thread Waldemar Osuch
On Mar 13, 8:10 am, Christian Heimes wrote: > Karjer Jdfjdf wrote: > > I'm pretty new at programming and want some advice on mixing Jython and > > Python. > > > I want to use Jython to access some Java libraries, but I want to keep > > developing in normal Python. Some modules I use a lot are no

Re: SOAP 1.2 Python client ?

2010-03-03 Thread Waldemar Osuch
On Mar 3, 9:32 am, BlueBird wrote: > Hi, > > I am looking for a SOAP 1.2 python client. To my surprise, it seems > that this does not exist. Does anybody know about this ? > > The following clients seem to be both unmaintained and still > supporting only SOAP 1.1 : > > - SUDS suds unmaintained? I

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-31 Thread Waldemar Osuch
On Dec 30, 10:05 am, kakarukeys wrote: > I tried on a fresh XP on VM. I moved all dlls in C:\WINDOWS\WinSxS > which are in the file handles shown by Process Explorer including the > 3 CRT dlls to the my dist folder and the two subfolders suggested > byhttp://wiki.wxpython.org/py2exe. It didn't wo

Re: Python WSDL Support

2009-06-16 Thread Waldemar Osuch
On Jun 16, 12:24 pm, Chris wrote: > Is there any modern support for WSDL? The only projects I could find > are ZSI and SOAPpy, and both have been dead for several years. https://fedorahosted.org/suds/ is actively maintained -- http://mail.python.org/mailman/listinfo/python-list

Re: twisted and py2exe

2008-10-16 Thread Waldemar Osuch
On Oct 16, 11:47 am, Linnorm <[EMAIL PROTECTED]> wrote: > I've written an app using twisted to create an ssh forwarding tunnel > for our erp app.  When I run it with the interpreter it works > perfectly, but when I package it up with py2exe it looks like the > tunnel never gets created.  I don't ge

Re: Is there a SOAP module that can do this...?

2008-09-11 Thread Waldemar Osuch
On Sep 11, 3:50 am, thebjorn <[EMAIL PROTECTED]> wrote: > On Sep 10, 9:44 pm, Waldemar Osuch <[EMAIL PROTECTED]> wrote: > > > > > On Sep 10, 1:23 pm, thebjorn <[EMAIL PROTECTED]> > > wrote:> I've been trying to use SOAPpy and ZSI (with and witho

Re: Is there a SOAP module that can do this...?

2008-09-10 Thread Waldemar Osuch
On Sep 10, 1:23 pm, thebjorn <[EMAIL PROTECTED]> wrote: > I've been trying to use SOAPpy and ZSI (with and without the use of > wsdl2py) to communicate with a SOAP server (looks like it's a WebLogic > server(?) in front of some enterprise java bean) and not having much > luck.  I got them to send m

Re: Sending e-mail

2008-08-28 Thread Waldemar Osuch
On Aug 28, 12:52 pm, [EMAIL PROTECTED] wrote: > I work at a training center and I would like to use Python to generate > a number of certificates and then e-mail them. The certificates are a > problem for another day - right now I just want to figure out how to > send an e-mail. > > I confess I don

Re: regex search loops instead of findall

2008-08-05 Thread Waldemar Osuch
On Aug 5, 12:06 pm, brad <[EMAIL PROTECTED]> wrote: > Hi guys... I'm trying to make my Python regex code behave like my C++ > regex code. In order to search large strings for *all* occurrences of > the thing I'm searching for, I loop like this in C++: > > void number_search(const std::string& porti

Re: SAX XML Parse Python error message

2008-07-13 Thread Waldemar Osuch
On Jul 13, 3:00 pm, goldtech <[EMAIL PROTECTED]> wrote: > I would be grateful for support with the code I cited. It's not long > and fairly standard. I'm sure my error(s) would be glaring to more > experienced coders. I appreciated the "heads-up" about other options > but I would be grateful for he

Re: ISO dict => xml converter

2008-06-20 Thread Waldemar Osuch
On Jun 20, 6:37 am, kj <[EMAIL PROTECTED]> wrote: > Hi.  Does anyone know of a module that will take a suitable Python > dictionary and return the corresponding XML structure? > > In Perl I use XML::Simple's handy XMLout function: > >   use XML::Simple 'XMLout'; >   my %h = ( 'Foo' => +{ >        

Re: SOAP/ZSI post/get for Java Web App

2008-05-14 Thread Waldemar Osuch
On May 13, 1:02 pm, Jennifer Duerr <[EMAIL PROTECTED]> wrote: > All, > > I need help concerning SOAP, Python and XML. I am very new to this, so > dumbing it down for me will not offend me! > > I'm using Python and want to send a user-inputted string to an > existing Java web app that > will output

Re: Problem parsing SOAP envelope with ElementTree

2008-05-07 Thread Waldemar Osuch
Zvi wrote: Hi All, Can someone tell me why id the following not working? snip not working code What am I doing wrong? Here is working code. 8<- from xml.etree import ElementTree as ET data = """xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xmlns

Re: Python and SOAP status

2008-05-03 Thread Waldemar Osuch
Heikki Toivonen wrote: I have started researching the Python SOAP (and web services in general) options out there. Python 2.5 should be supported. I used Python for some web services stuff (demo quality) a few years back without major problems. However, it seems many of the libraries I remember

Re: Python and SOAP status

2008-05-03 Thread Waldemar Osuch
Jeff wrote: Twisted has SOAP support. yes but it is based on no longer actively maintained SOAPpy. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to convert latex-based docs written with Python 2.5 to 2.6 framework

2008-03-27 Thread Waldemar Osuch
On Mar 26, 1:37 pm, Michael Ströder <[EMAIL PROTECTED]> wrote: > HI! > > I had a look on how Doc/ is organized with Python 2.6. There are files with > suffix .rst. Hmm... > > I'm maintaing existing docs for python-ldap which I might have to convert to > the new concept in the long run. What's the r

Re: Why does python behave so? (removing list items)

2008-03-26 Thread Waldemar Osuch
On Mar 26, 4:04 pm, "Michał Bentkowski" <[EMAIL PROTECTED]> wrote: > Why does python create a reference here, not just copy the variable? > > >>> j=range(0,6) > >>> k=j > >>> del j[0] > >>> j > [1, 2, 3, 4, 5] > >>> k > > [1, 2, 3, 4, 5] > > Shouldn't k remain the same? http://www.effbot.org/zone/

Re: ZSI and attachments

2008-03-14 Thread Waldemar Osuch
On Mar 11, 8:59 am, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > Hi All, > > I wonder if the newest ZSI has support for attachments? Last time I > checked (about a year ago) this feature was missing. I desperately need > it. Alternatively, is there any other SOAP lib for python that can > handle atta

Re: Another dumb scope question for a closure.

2008-01-09 Thread Waldemar Osuch
On Jan 9, 3:52 pm, Waldemar Osuch <[EMAIL PROTECTED]> wrote: > On Jan 9, 11:47 am, "Steven W. Orr" <[EMAIL PROTECTED]> wrote: > > > > > So sorry because I know I'm doing something wrong. > > > 574 > cat c2.py > > #! /usr/local/bin/pyt

Re: Another dumb scope question for a closure.

2008-01-09 Thread Waldemar Osuch
On Jan 9, 11:47 am, "Steven W. Orr" <[EMAIL PROTECTED]> wrote: > So sorry because I know I'm doing something wrong. > > 574 > cat c2.py > #! /usr/local/bin/python2.4 > > def inc(jj): > def dummy(): > jj = jj + 1 > return jj > return dummy > > h = inc(33) > print 'h() = '

Re: pdf library.

2007-12-29 Thread Waldemar Osuch
On Dec 29, 11:54 am, Shriphani <[EMAIL PROTECTED]> wrote: > Hi, > I am looking for a pdf library that will give me a list of pages where > new chapters start. Can someone point me to such a module ? > Regards, > Shriphani P. pyPdf may help you with that: http://pybrary.net/pyPdf/ -- http://mail.p

Re: .NET and Python Integration Problem and PDF Library (Need Help and Suggestions)

2007-12-18 Thread Waldemar Osuch
On Dec 18, 6:42 am, "Ravi Kumar" <[EMAIL PROTECTED]> wrote: > In continuation of last mail [since pressing tab+space sent the mail :( ] > Things on high priorities right now are: > - How to integrate Python calling from .NET If I had to do something like this I would host a Python web server liste

Re: How to generate pdf file from an html page??

2007-12-16 Thread Waldemar Osuch
On Dec 16, 3:51 am, abhishek <[EMAIL PROTECTED]> wrote: > Hi everyone, I am trying to generate a PDF printable format file from > an html page. Is there a way to do this using python. If yes then > which library and functions are required and if no then reasons why it > cant be done. > > Thank yo

Re: Elementtree tag

2007-12-13 Thread Waldemar Osuch
On Dec 13, 7:52 pm, Sean DiZazzo <[EMAIL PROTECTED]> wrote: > I have a another question... > > using elementtree, is there a proper way to get at the data > '123456789' in this tag? > > '' > > I tried making it an element, but the only attribute that returns > anything is the "tag" attribute. Does

Re: Advice for editing xml file using ElementTree and wxPython

2007-12-08 Thread Waldemar Osuch
On Dec 8, 8:35 pm, Rick Muller <[EMAIL PROTECTED]> wrote: > I'm a computational chemist who frequently dabbles in Python. A > collaborator sent me a huge XML file that at one point was evidently > modified by a now defunct java application. A sample of this file > looks something like: > > > T

Re: Using python as primary language

2007-11-09 Thread Waldemar Osuch
On Nov 8, 12:52 am, Michel Albert <[EMAIL PROTECTED]> wrote: > In our company we are looking for one language to be used as default > language. So far Python looks like a good choice (slacking behind > Java). A few requirements that the language should be able cope with > are: > > * Database access

Re: Codec lookup fails for bad codec name, blowing up BeautifulSoup

2007-11-09 Thread Waldemar Osuch
On Nov 9, 4:15 pm, John Nagle <[EMAIL PROTECTED]> wrote: > Waldemar Osuch wrote: > >> This is a known bug. It's in the old tracker on SourceForge: > >> [ python-Bugs-960874 ] codecs.lookup can raise exceptions other > >> than LookupError &

Re: Codec lookup fails for bad codec name, blowing up BeautifulSoup

2007-11-09 Thread Waldemar Osuch
> > This is a known bug. It's in the old tracker on SourceForge: > [ python-Bugs-960874 ] codecs.lookup can raise exceptions other > than LookupError > but not in the new tracker. The new tracker has it too. http://bugs.python.org/issue960874 > > The "resolution" back in

Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Waldemar Osuch
On Jun 11, 6:42 am, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > Thorsten Kampe schreef: > > > >> I'm on Vista (boohoo :(), what's your platform? > > > XP SP2 > > Hmmm it thought so. > So in my case it would be interesting to know how to build it so i can > make a build that works on Vista too.

Re: python-ldap for Python 2.5 on Windows?

2007-06-08 Thread Waldemar Osuch
On Jun 8, 6:36 am, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > Hi, > > i found python-ldap for version Python 2.4. > Is there i place i can find a version for 2.5? > > If not, how can i build it myself for Windows? > I have managed to build it for myself using MinGW: http://www.osuch.org-a.goog

Re: excel library without COM

2007-06-03 Thread Waldemar Osuch
On Jun 3, 6:59 pm, james_027 <[EMAIL PROTECTED]> wrote: > is there any library to help me write excel files without using win > com? One option is: https://secure.simplistix.co.uk/svn/xlwt/trunk -- http://mail.python.org/mailman/listinfo/python-list

Re: pyExcelerator bug?

2007-05-20 Thread Waldemar Osuch
On May 16, 4:42 pm, [EMAIL PROTECTED] wrote: > My program creates three lists: the first has dates expressed as > strings, the second has floats that are strictly positive, and the > third has floats that are strictly negative. I have no trouble writing > the data in these lists to a .csv file usin

Re: Setting Up SOAPpy for Python v2.5 on Windows?

2007-03-14 Thread Waldemar Osuch
On Mar 14, 10:22 am, "Steve" <[EMAIL PROTECTED]> wrote: > All, > > Thanks for the suggestions! > > I think that I will move forward with elementsoap instead of soappy... > Maybe worth checking out the new kid on the block too: http://trac.optio.webfactional.com/wiki -- http://mail.python.org/ma

Re: When will 2.5.1 be released?

2007-03-06 Thread Waldemar Osuch
On Mar 6, 12:12 pm, "A. Lloyd Flanagan" <[EMAIL PROTECTED]> wrote: > On Mar 4, 2:49 pm, "Nile" <[EMAIL PROTECTED]> wrote: > > And while we're waiting for 2.5.1, can somebody post a clear (as > opposed to the one that comes with Tix ;)) explanation of how to > manually install Tix into python 2.5?

Re: PyExcelerator: how to set colours?

2006-12-23 Thread Waldemar Osuch
Gerry wrote: > I'd like some cell to be a Blue "ABCDE". > > Here's come code thatv tries various values for pattern_for_colour and > font.colour_index, to no avail. > > Can anyone suggest the right way to set colours? > > Thanks! > > Gerry > > == > > from pyExcelerator import *

Re: The status of Python and SOAP?

2006-10-24 Thread Waldemar Osuch
Thomas W wrote: > I'm going to give a presentation of python to my co-workers at a very > pro-microsoft workplace. Almost everything we need is currently > supported by the standard distro + the win32all package, but we also > need support for SOAP. I've tried SOAPpy ( didn't get it to compile, >

Re: Oracle database export

2006-10-05 Thread Waldemar Osuch
On Oct 5, 9:05 am, Tor Erik Soenvisen <[EMAIL PROTECTED]> wrote: > Hi, > > I need to export an Oracle database to a DDL-formated file. On the Web, I > found a Python script that did exactly this for a MS Access database, but > not one for Oracle databases. > > Does anyone know of such a tool or P

Re: pyXLWriter - grid lines and if formula

2006-07-09 Thread Waldemar Osuch
Luis P. Mendes wrote: > Gregory Piñero escreveu: > > On 7/7/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> I know that pyExelerator is the supported project now, but I can't use > >> it because I'd need it to generate files from a web platform. Since I > >> can not save a file to

Re: Python equivalent of Perl-ISAPI?

2006-03-19 Thread Waldemar Osuch
What Roger says and also: http://pyisapie.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-18 Thread Waldemar Osuch
- xlrd seems to be focused on extracting data. - pyexcelerator can also generate Excel files. -- http://mail.python.org/mailman/listinfo/python-list

Re: How To Request Delivery Receipts On Emails

2006-03-08 Thread Waldemar Osuch
Gregory Piñero wrote: > Does anyone know how to program a Python script to send out emails > with a request delivery receipt? Is it something I can build into the > email message via the mime stuff? You have to add 'Disposition-Notification-To' header >>> from email.MIMEText import MIMEText >>>

Re: how to write file with cp1250 encodings?

2006-02-26 Thread Waldemar Osuch
Grzegorz Smith wrote: > Hi all. I have got situation: i load data from database(MSSQL) wchich are > encoded cp1250 and I fill template with that data (Cheetah Template), after > all i want to save template to file on disk. I'm using One way to do it: >>> from Cheetah.Template import Template >>>