[wpdev-commits] xmlscripts/scripts/deeds multideed.py,1.1,1.2
Brought to you by:
rip,
thiagocorrea
From: Jorge P. <ke...@us...> - 2004-08-24 18:11:10
|
Update of /cvsroot/wpdev/xmlscripts/scripts/deeds In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28093/deeds Modified Files: multideed.py Log Message: - Replaced access to .events with the calls hasevent/addevent/removeevent in all relevant places. Notice that addevent() is expected to add the event to the head of the list. I recognized no situation (of those changed) where it would make a difference adding the event to the end of the list, so in those cases used addevent aswell. - Fixed a copy&paste error in trap.py on removing the tags (pointed out by Incannus). note: .events can now be made read only, bearing in mind that in doing so there is no way to make a distinction between adding an event at the top or at the end of the event list. Index: multideed.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/deeds/multideed.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** multideed.py 25 Apr 2004 22:03:36 -0000 1.1 --- multideed.py 24 Aug 2004 18:10:26 -0000 1.2 *************** *** 199,203 **** sign.moveto( newpos ) sign.settag( 'house', multi.serial ) ! sign.events = ["signpost"] #woodenpost.update() signpost.update() --- 199,203 ---- sign.moveto( newpos ) sign.settag( 'house', multi.serial ) ! sign.addevent( 'signpost' ) #woodenpost.update() signpost.update() |