weird exception : AttributeError: 'module' object has no attribute 'logException'

2006-09-18 Thread kepioo
I am running a script (summary.py) which is calling the method logException in another module ( pytool). Yesterday, ard 18:50, all of a sudden summary.py was throwing the exception : AttributeError: 'module' object has no attribute 'logException' What I did to fix it was to delete the compiled

PIL and solaris

2006-08-13 Thread kepioo
Hi all, I am trying to install PIL with python 2.3 on solaris X86, but I get this error message : building '_imaging' extension creating build/temp.solaris-2.10-i86pc-2.3 creating build/temp.solaris-2.10-i86pc-2.3/libImaging /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc -i -xO4 -xspace -xs

pass parameters in SPYCE

2006-07-30 Thread kepioo
Hi all, I started to use the so good spyce server. I manage to do all the basics, however, I still block on one problem : How can I pass parameters to a spy page : example I have an index page : link1 link2 link3 link4 I want all theses html links to point to process.spy with the value of the

Re: xml aggregator

2006-07-10 Thread kepioo
Thank you so much, it works and it rocks ! bad thing i need ot figure out is why mozilla cannot parse my xsl sheet, but it works in IE ( most of my users are using IE) so the module u wrote is to top up element tree with Xpath capabilities, is it? Does the new element tree does that? which one is

Re: xml aggregator

2006-07-10 Thread kepioo
so i don't have to produce a file in output, just print the xml to the screen and it is automatically wrting to the html page we view. Thanks again for your help. Gerard Flanagan wrote: > Gerard Flanagan wrote: > > kepioo wrote: > > > Hi all, > > > > > > I

xml aggregator

2006-07-09 Thread kepioo
Hi all, I am trying to write an xml aggregator, but so far, i've been failing miserably. what i want to do : i have entries, in a list format :[[key1,value],[key2,value],[ key3,value]], value] example : [["route","23"],["equip","jr2"],["time","3pm"]],"my first value"] [["route","23"],["equip",

How to access the content of notepad with Python?

2006-05-31 Thread kepioo
Hi, I have a software running on my computer that really looks like notepad ( same interface, different name). I need to write a script that will capture the content of this software --> the text written inside. Is it possible using win32 libs? any clue? Thanks! -- http://mail.python.org/mailm

Re: fnmatch on filename (without specific extension)

2006-04-09 Thread kepioo
i agree with you, it is better to find by ourself. i managed to do it, but i left the code at work. i used the re module , using a re.match("Results Log") and a re.search(date) with a function to find the date og the day with the appropriate format. Is it ok to use re for file names? or fnmatch i

fnmatch on filename (without specific extension)

2006-04-08 Thread kepioo
Hi, I have some files in a directory : Results Log, 11;21AM, Apr 09 2006.txt Results Log, 11;21AM, Apr 08 2006.txt Results Log, 03;59AM, Apr 07 2006.txt otherfile1.txt otherfile2.txt ... I'd like to copy all the Results Log file, whatever the hour but with a specific day. For instance, today (

looking for atomixlib

2006-03-12 Thread kepioo
Hi all, I am looking for atomixlib 0.3.0. Previously it could be downloaded on Sylvain webpage ( http://www.defuze.org/oss/atomixlib/) but as explained on the webpage : "Well the hard-drive of the server hosting my data (blog, projects and mails) died last Sunday. It would not have affected me th

Re: SAX/Python : read an xml from the end to the top

2006-03-07 Thread kepioo
An example ( i changed the content to make it easier) : ### input file 3 fruits 5 10 25 names vincent Robert open the car fruits 25 8

Re: SAX/Python : read an xml from the end to the top

2006-03-07 Thread kepioo
An example ( i changed the content to make it easier) : ### input file 3 fruits 5 10 25 names vincent Robert open the car fruits 25 8

Re: SAX/Python : read an xml from the end to the top

2006-03-07 Thread kepioo
Thanks Diez for your suggestion, I'll look around to find out more about the seek function ( i learnt python 2 weeks ago and I do not have a programmer background, but so far, I am doing well). Peter, I cannot really process as your advice : it is not that stereotypical entrieswe built a data

Re: SAX/Python : read an xml from the end to the top

2006-03-07 Thread kepioo
Hi Diez, thank you for your answer. Let me give you more background on the project. The input xml I am parsing is always well formed. It is coming out from another application that append to this xml. I didn't see the source code of the application, but i know that it is not re-writing the whole

SAX/Python : read an xml from the end to the top

2006-03-06 Thread kepioo
I currently have an xml input file containing lots of data. My objectiv is to write a script that reports in another xml file only the data I am interested in. Doing this is really easy using SAX. The input file is continuously updated. However, the other xml file should be updated only on request