21 from robotide
import utils
53 if sorted(kwargs.keys()) != sorted(self.
datadata):
54 raise TypeError(
'Argument mismatch, expected: %s' % self.
datadata)
55 self.__dict__.update(kwargs)
60 cls_name = cls.__name__
61 if cls_name.endswith(
'Message'):
62 cls_name = cls_name[:-len(
'Message')]
63 topic_name = utils.printable_name(cls_name, code_style=
True).replace(
' ',
'.')
65 topic_name = cls.
_topic_topic
66 return topic_name.lower()
79 PUBLISHER.publish(self.__class__, self)
88 data = [
'message',
'level',
'timestamp',
'notify_user']
97 data = [
'message',
'level',
'timestamp',
'notify_user']
104 def __init__(self, message, level='INFO', notify_user=False):
105 RideMessage.__init__(
106 self, message=message, level=level,
107 timestamp=utils.get_timestamp(), notify_user=notify_user)
118 data = [
'message',
'level',
'timestamp',
'exception',
'notify_user']
126 def __init__(self, message, exception, level='INFO', notify_user=False):
127 exc_type, exc_value, exc_traceback = sys.exc_info()
129 tb = traceback.extract_tb(exc_traceback)
130 message +=
'\n\nTraceback (most recent call last):\n%s\n%s' % \
131 (str(exception),
''.join(traceback.format_list(tb)))
132 RideMessage.__init__(
133 self, message=message, level=level, notify_user=notify_user,
134 timestamp=utils.get_timestamp(), exception=exception)
143 data = [
'message',
'level',
'timestamp',
'notify_user']
150 def __init__(self, message, level='', notify_user=False):
151 RideMessage.__init__(
152 self, message=message, level=level,
153 timestamp=utils.get_timestamp(), notify_user=notify_user)
163 data = [
'controller']
174 data = [
'keys',
'old',
'new']
183 data = [
'node',
'item',
'silent']
188 data = [
'controller']
237 data = [
'oldtab',
'newtab']
249 class RideSaving(RideMessage):
250 data = [
'path',
'datafile']
278 data = [
'path',
'datafile']
287 class RideOpenSuite(RideMessage):
288 data = [
'path',
'datafile']
293 data = [
'path',
'datafile']
307 class RideFileNameChanged(RideDataChanged):
308 data = [
'datafile',
'old_filename']
312 data = [
'path',
'datafile']
316 data = [
'parent',
'suite']
320 data = [
'path',
'datafile']
325 data = [
'datafile',
'type',
'import_controller']
328 return self.
typetype ==
'resource'
334 return self.import_controller.name
338 data = [
'old_controller',
'new_controller']
345 class RideExcludesChanged(_RideExcludes):
393 class RideUserKeywordAdded(RideUserKeyword):
394 data = [
'datafile',
'name',
'item']
399 data = [
'datafile',
'name',
'item']
412 class RideItemNameChanged(RideItem):
414 data = [
'item',
'old_name']
424 data = [
'datafile',
'name',
'item']
429 data = [
'datafile',
'name',
'item']
444 data = [
'datafile',
'name',
'item',
'index']
449 data = [
'datafile',
'name',
'item']
457 data = [
'item',
'other']
465 data = [
'item',
'other']
475 data = [
'includes',
'excludes']
482 __all__ = [name
for name, cls
in globals().items()
483 if inspect.isclass(cls)
and issubclass(cls, RideMessage)]
Sent before files are going to be saved.
Sent when user selects Quit from File menu or via shortcut.
Sent when datafile changes from serialized version.
Base class for all messages notifying that data in model has changed.
Sent when datafiles dirty marking is cleared.
Set when a whole datafile is replaced with new one in a controller.
Sent whenever spec xml import is requested.
Sent whenever an import setting is added.
Sent whenever a value of import setting is changed.
Sent whenever a value of import setting is removed.
Base class for all messages about changes to import settings.
Sent when an item (test, keyword, variable) is moved down.
Sent when an item (test, keyword, variable) is moved up.
Base class for all messages about changes to any data item.
This class represents a general purpose log message with a traceback appended to message text.
def __init__(self, message, exception, level='INFO', notify_user=False)
Initializes a RIDE log exception.
This class represents a general purpose log message.
def __init__(self, message, level='INFO', notify_user=False)
Initializes a RIDE log message.
This class represents a general purpose log message.
Base class for all messages sent by RIDE.
def __init__(self, **kwargs)
Initializes message based on given keyword arguments.
def publish(self)
Publishes the message.
Sent whenever modifying command is prevented for some reason.
Sent when a new project has been created.
Sent after the notebook tab change has completed.
Sent when the notebook tab change has started.
Sent when a new resource has finished loading.
Sent when variable dialog is requested to be open.
This class represents a general purpose log message.
def __init__(self, message, level='', notify_user=False)
Initializes a RIDE log message.
Sent when user selects Save All from File menu or via shortcut.
Sent after the file has been actually saved to disk.
Sent when a resource should be selected.
Sent when settings are changed.
Sent when a new test case is added to a suite.
Sent when a test case is removed from a suite.
Sent whenever new test execution is started.
Sent whenever RIDE has executed a test case, and it failed.
Sent whenever RIDE has executed a test case, and it passed.
Sent whenever RIDE is running a test case and paused.
Sent whenever RIDE is starting to run a test case.
Sent whenever a test is selected or unselected from the tree.
Sent whenever RIDE has executed a test case, and it was skipped.
Sent whenever RIDE was executing a test case, and it was stopped or aborted.
Sent when a user keyword is removed from a suite or resource.
Base class for all messages about changes to any user keyword.
Sent when a new variable is added to a suite.
Sent when a variable is moved down item is the item that has been moved down other is the item that w...
Sent when a variable is moved up item is the item that has been moved up other is the item that was s...
Sent when a variable is removed from a suite.
Sent when the state of a variable is changed.