Re: [Tutor] Text matching and replacing

2007-07-25 Thread Tiger12506
> Cheers for the critique I'll take you points on board .especially > this schoolboy error It's not an error, really. It will work. Just... not intuitive Errors are things that do not work. > One thing to note about the re expression is that the products are not > these were just substitutes

Re: [Tutor] Text matching and replacing

2007-07-25 Thread Gardner, Dean
ssage: 3 Date: Tue, 24 Jul 2007 14:18:46 -0500 From: "Tiger12506" <[EMAIL PROTECTED]> Subject: Re: [Tutor] Text matching and replacing To: Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original

Re: [Tutor] Text matching and replacing

2007-07-24 Thread Tiger12506
def findTestDirectories(path): os.chdir(path) directory_listing = os.listdir(os.getcwd()) -- Change this to directory_listing = os.listdir(path) Why look up the current directory when you have *just* set what it is? test_record_directories = [] fo

[Tutor] Text matching and replacing

2007-07-24 Thread Gardner, Dean
Hi I have implemented some functionality that now forces test records to be stored against the product they were run against. This is fine however it was apparent that we needed to bring the legacy records in line with new format. So I wrote a script that went through each test record and append

[Tutor] Text matching

2007-05-15 Thread Jason Massey
heh... forwarding to the list, too. -- Forwarded message -- From: Jason Massey <[EMAIL PROTECTED]> Date: May 15, 2007 6:51 AM Subject: Re: [Tutor] Text matching To: "Gardner, Dean" <[EMAIL PROTECTED]> Look at it a different way. If the one thing that is s

Re: [Tutor] Text matching

2007-05-15 Thread Kent Johnson
+ logTextFile > os.system(commandline) > > Dean Gardner > Test Engineer > Barco > Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK > Tel + 44 (0) 131 472 5731 Fax + 44 (0) 131 472 4799 > www.barco.com > [EMAIL PROTECTED] > > > -Original

Re: [Tutor] Text matching

2007-05-15 Thread Gardner, Dean
os.system(commandline) Dean Gardner Test Engineer Barco Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK Tel + 44 (0) 131 472 5731 Fax + 44 (0) 131 472 4799 www.barco.com [EMAIL PROTECTED] -----Original Message- From: Kent Johnson [mailto:[EMAIL PROTECTED] Sent: 04 May 20

Re: [Tutor] Text matching

2007-05-04 Thread Kent Johnson
Gardner, Dean wrote: > > So here it isit might not be pretty (it seems a bit un-python like > to me) but it works exactly as required. If anyone can give any tips for > possible optimisation or refactor I would be delighted to hear from > them. > > Thanks > > uid = self.item.Uid()

Re: [Tutor] Text matching

2007-05-04 Thread Gardner, Dean
er Barco Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK Tel + 44 (0) 131 472 5731 Fax + 44 (0) 131 472 4799 www.barco.com [EMAIL PROTECTED] -Original Message- From: Kent Johnson [mailto:[EMAIL PROTECTED] Sent: 03 May 2007 14:39 To: Gardner, Dean Cc: tutor@python.org Subject: Re: [

Re: [Tutor] Text matching

2007-05-03 Thread Gardner, Dean
:[EMAIL PROTECTED] Sent: 03 May 2007 14:39 To: Gardner, Dean Cc: tutor@python.org Subject: Re: [Tutor] Text matching Gardner, Dean wrote: > Here is a test sample of what I have: This currently correctly > identifies the start and the end of the changelog entries and I can > identify the

Re: [Tutor] Text matching

2007-05-03 Thread Kent Johnson
Gardner, Dean wrote: > Here is a test sample of what I have: This currently correctly > identifies the start and the end of the changelog entries and I can > identify the requested item records. What I am struggling with at > present is to how to create records of the full changelog entries for > e

Re: [Tutor] Text matching

2007-05-03 Thread Gardner, Dean
.com [EMAIL PROTECTED] -Original Message- From: Kent Johnson [mailto:[EMAIL PROTECTED] Sent: 03 May 2007 13:46 To: Gardner, Dean Cc: tutor@python.org Subject: Re: [Tutor] Text matching Gardner, Dean wrote: > Hi Folks > > I wish to isolate certain changelog ent

Re: [Tutor] Text matching

2007-05-03 Thread Kent Johnson
Gardner, Dean wrote: > Hi Folks > > I wish to isolate certain changelog entries and display them to the > user, for example: > > Changelog.txt > > --Some Module -- > M 000751 - Title >> what was amended > Reviewed by: Someone > > For this text file I wish to find all entries

[Tutor] Text matching

2007-05-03 Thread Gardner, Dean
Hi Folks I wish to isolate certain changelog entries and display them to the user, for example: Changelog.txt --Some Module -- M 000751 - Title > what was amended Reviewed by: Someone --Some Module -- A 000752 - Title > what was amended Reviewed by: Someone ---