I did this and it worked
1. However will be nice to print output into filenames without me using
>
2. Another problem: when run in Linux the output is OK BUT when runs in
windows active python the output is no good

# modify1: PRINT THE ABOVE CALL IT SORTEDkanz.TXT

I commented the last lines in the script:
#write the merged items
#print "writing ",len(hadithItems),"..."
#map(HadithEntry.write,hadithItems)

I added the following


# Ahmad to insert here the print the SORTEDkanz.TXT using
>SORTEDkanz.TXT
#write the merged items
print "writing ",len(hadith2Items),"..."
map(HadithEntry.write,hadith2Items)
print "successMerges=",successMerges
# END Ahmad to insert here the print command


# modify1: PRINT THE ABOVE CALL IT SORTEDkanz.TXT

# Ahmad to insert here the print command

#write the merged items
#print "writing ",len(hadithItems),"..."
#map(HadithEntry.write,hadithItems)
#print "successMerges=",successMerges


# END Ahmad to insert here the print command


will be nice to print SORTEDkanz.TXT, newKanzMater.txt etc
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004
 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to