univention.admindiary package

univention.admindiary.get_events_to_reject()[source]
univention.admindiary.get_logger(name)[source]
class univention.admindiary.DiaryEntry(username, message, args, tags, context_id, event_name)[source]

Bases: object

assert_types()[source]
to_json()[source]
classmethod from_json(body)[source]

Submodules

univention.admindiary.backend module

univention.admindiary.backend.get_query_limit()[source]
univention.admindiary.backend.get_engine()[source]
univention.admindiary.backend.make_session_class()[source]
univention.admindiary.backend.get_session()[source]
class univention.admindiary.backend.Meta(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

id
schema
class univention.admindiary.backend.Event(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

id
name
class univention.admindiary.backend.EventMessage(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

event_id
locale
message
locked
class univention.admindiary.backend.Entry(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

id
username
hostname
message
timestamp
context_id
event_id
main_id
event
args
tags
class univention.admindiary.backend.Tag(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

id
name
entries
class univention.admindiary.backend.Arg(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

id
entry_id
key
value
entry
class univention.admindiary.backend.Client(version, session)[source]

Bases: object

translate(event_name, locale)[source]
options()[source]
add_tag(name)[source]
add_event(name)[source]
add_event_message(event_id, locale, message, force)[source]
add(diary_entry)[source]
query(time_from=None, time_until=None, tag=None, event=None, username=None, hostname=None, message=None, locale='en')[source]
get(context_id)[source]
univention.admindiary.backend.get_client(version)[source]
exception univention.admindiary.backend.UnsupportedVersion[source]

Bases: Exception

univention.admindiary.client module

univention.admindiary.client.exceptionlogging(f)[source]
class univention.admindiary.client.RsyslogEmitter[source]

Bases: object

emit(entry)[source]
univention.admindiary.client.add_comment(message, context_id, username=None)[source]
univention.admindiary.client.write_event(event, args=None, username=None, context_id=None)[source]
univention.admindiary.client.write(message, args=None, username=None, tags=None, context_id=None, event_name=None)[source]
univention.admindiary.client.write_entry(entry)[source]

univention.admindiary.events module

class univention.admindiary.events.DiaryEvent(name, message, args=None, tags=None, icon=None)[source]

Bases: object

classmethod get(name)[source]
classmethod names()[source]