Author: aschnell Date: Fri Mar 6 18:23:17 2009 New Revision: 55999 URL: http://svn.opensuse.org/viewcvs/yast?rev=55999&view=rev Log: - added CancelEvent Modified: trunk/yast2/library/modules/Event.ycp Modified: trunk/yast2/library/modules/Event.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/modules/Event.ycp?rev=55999&r1=55998&r2=55999&view=diff ============================================================================== --- trunk/yast2/library/modules/Event.ycp (original) +++ trunk/yast2/library/modules/Event.ycp Fri Mar 6 18:23:17 2009 @@ -74,4 +74,18 @@ return event["ID"]:(symbol)(nil); } + + + /** + * Checks that the EventType is CancelEvent. + * + * return id or nil. + */ + global symbol IsCancel(map event) + { + if (event["EventType"]:"Unknown" != "CancelEvent") + return nil; + + return event["ID"]:(symbol)(nil); + } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org