10.6.21. Class cerebro.events.Event

class cerebro.events.Event(event_type, event_id)[source]

Event base class. All event classes are inhereited from this one.

Methods

EVENT_ = ''

Event types

EVENT_CHANGING_OF_ATTACHMENT_HASHTAGS = 1010

The attachment hashtags changing event. It is generated by changing the attachment hashtags in the table or in the Attachment Edit hashtags window.

The objects being input into the event functions:
EVENT_CHANGING_OF_MESSAGE = 10

The message editing event. It is generated in the message editing interface.

The objects being input into the event functions:
EVENT_CHANGING_OF_MESSAGE_APPROVED = 13

The message approved editing event. It is generated by editing appruved of messages.

The objects being input into the event functions:
EVENT_CHANGING_OF_MESSAGE_CLIENT_VISIBLE = 14

The message client visible event.

The objects being input into the event functions:
EVENT_CHANGING_OF_MESSAGE_HASHTAGS = 12

The message hashtags editing event. It is generated by editing hashtags of messages in the Forum interface.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_ACTIVITY = 111

The task activity changing event. It is generated by changing the activity attribute in the table or in the Task Properties window.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_ALLOCATED = 118

The event of allocating/dismissing users/resources to/from tasks. It is generated by changing the list of allocated users/resources in the table or in the Task Properties window.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_BUDGET = 117

The task budget changing event. It is generated by changing the budget amount in the table or in the Task Properties window.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_FINISH = 116

The event of task finishing point change. It is generated by changing the finish time in the table or in the Task Properties window, or in the Gantt chart.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_HASHTAGS = 124

The task hashtags changing event. It is generated by changing the task hashtags in the table or in the Task Properties window.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_NAME = 110

The task name changing event. It is generated by changing a task name in the table or in the Task Properties window.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_PLANNED_TIME = 114

The event of changing of the estimated time to complete a task. It is generated by changing the estimated time in the table or in the Task Properties window.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_PRIORITY = 112

The task priority changing event. It is generated by changing the task priority in the table or in the Task Properties window.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_PROGRESS = 113

The task progress changing event. It is generated by changing the task progress in the table or in the Task Properties window or by pressing the “Mark the task Done” button.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_START = 115

The event of task starting point change. It is generated by changing the start time in the table or in the Task Properties window, or in the Gantt chart.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_STATUS = 123

The task status changing event. It is generated by changing the task status in the table or in the Task Properties window or in the task forum.

The objects being input into the event functions:
EVENT_CHANGING_OF_TASKS_TAG = 121

The task tag changing event. It is generated by changing tag values in the table or in the Task Properties window.

The objects being input into the event functions:
EVENT_CREATION_OF_MESSAGE = 1

The message creation event. It is generated by pressing the “Send” button in the message creation interface.

Note

The event is generated only when a message is being created. The messages copied (cut) and then being pasted from other forum threads will call other events, that we’re going to develop in future.

The objects being input into the event functions:
EVENT_CREATION_OF_TASK = 100

The new task creation event. It is generated by pressing the “Send” button in the task creation interface.

On creation of a new task, a new message of the “Definition” type is being created, so the task creation event handles the creation of this message as well.

Note

The event is generated only when a new task is being created by pressing the “Send” button. The tasks being created by other means (duplicated, pasted, created by file(s) drag-n-drop) will call other events, that we’re going to develop in future.

The objects being input into the event functions:
EVENT_TEST = 0

Test event. It is generated by pressing the test event generation button.

The objects being input into the event functions:
event_type()[source]
Returns:event type.
Return type:int
type_str()[source]
Returns:string name of the event type.
Return type:string