Stable API Documentation

class problem.Problem(typ, reason, analyzer=None)[source]

Base class for the other problem types.

No need to use this class directly, use one of the specific problem classes.

add_current_environment()[source]

Add environment of current process to this problem object

add_current_process_data()[source]

Add pid, gid and executable of current process to this problem object

delete()[source]

Delete this problem

save()[source]

Create this problem or update modified data

Create or update the project if some of its fields were modified.

Return None in case of modification, identifier if new problem was created.

problem.list(auth=False)[source]

Return the list of the problems

Use auth=True if authentication should be attempted.

If authentication via polkit fails, function behaves as if auth=False was specified (only users problems are returned).

problem.get(identifier, auth=False)[source]

Return problem object matching identifier

Return None in case the problem does not exist. Use auth=True if authentication should be attempted.

problem.get_problem_watcher(auth=False)[source]

Return ProblemWatcher object which can be used to attach callbacks called when new problem is created

Use auth=True if authentication should be attempted for new problem that doesn’t belong to current user. If not set such a problem is ignored.

Specific problem types

class problem.Ccpp(reason)[source]

C, C++ problem

class problem.Java(reason)[source]

Java problem

class problem.Kerneloops(reason)[source]

Kerneloops problem

class problem.Python(reason)[source]

Python problem

class problem.Runtime(reason)[source]

Runtime problem

class problem.Selinux(reason)[source]

Selinux problem

class problem.Unknown(reason)[source]

Unknown problem

class problem.Xorg(reason)[source]

Xorg problem

ProblemWatcher

class problem.watch.ProblemWatcher(auth)[source]

New problem signal handler attached to DBus signal

Use auth=True if authentication should be attempted for new problem that doesn’t belong to current user. If not set such a problem is ignored.

add_callback(fun)[source]

Add callback to be called when new problem occurs.

Each callback function receives Problem instance

quit()[source]

Stop event listener loop

run()[source]

Start event listener loop

Table Of Contents

Previous topic

Usage examples

Next topic

Problem object properties

This Page