Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28093/commands
Modified Files:
events.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: events.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/events.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** events.py 12 Jul 2004 00:48:54 -0000 1.3
--- events.py 24 Aug 2004 18:10:23 -0000 1.4
***************
*** 95,97 ****
wolfpack.registercommand('addevent', commandAddevent)
wolfpack.registercommand('removeevent', commandRemoveevent)
- #wolfpack.registercommand('addevent', commandAddevent)
--- 95,96 ----
|