[wpdev-commits] xmlscripts/scripts book.py,1.1,1.2
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-09-01 22:15:42
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv14044 Modified Files: book.py Log Message: blabla Index: book.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/book.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** book.py 30 Aug 2003 17:07:59 -0000 1.1 --- book.py 1 Sep 2003 22:15:11 -0000 1.2 *************** *** 30,41 **** # Author / Title author = '' ! title = '' if item.hastag( 'author' ): author = str( item.gettag( 'author' ) ) ! ! if item.hastag( 'title' ): ! title = str( item.gettag( 'title' ) ) ! # Calculate Packet Length packetlength = 15 + len( author ) + 1 + len( title ) + 1 --- 30,38 ---- # Author / Title author = '' ! title = item.name if item.hastag( 'author' ): author = str( item.gettag( 'author' ) ) ! # Calculate Packet Length packetlength = 15 + len( author ) + 1 + len( title ) + 1 *************** *** 118,120 **** item.settag( 'author', author ) ! item.settag( 'title', title ) --- 115,117 ---- item.settag( 'author', author ) ! item.name = title |