Ags.Controller

g Ags.Controller Ags.Controller GObject.Object GObject.Object GObject.Object->Ags.Controller

Subclasses:

Ags.FrontController

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_resource (resource_name, controller_resource)

lookup_resource (resource_name)

query_security_context (security_context, login)

remove_resource (resource_name)

Virtual Methods

Inherited:

GObject.Object (7)

do_query_security_context (security_context, login)

Properties

Name

Type

Flags

Short Description

context-path

str

r/w

The context path provided by this controller

server

Ags.Server

r/w

The assigned server

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

context_path

str

r

gobject

GObject.Object

r

obj_mutex

GLib.RecMutex

r

resource

{object: object}

r

server

GObject.Object

r

Class Details

class Ags.Controller(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Ags.ControllerClass

classmethod new()
Returns:

the Ags.Controller

Return type:

Ags.Controller

Instantiate new Ags.Controller

New in version 3.0.0.

add_resource(resource_name, controller_resource)
Parameters:

Add controller_resource with key resource_name to hash table.

New in version 3.0.0.

lookup_resource(resource_name)
Parameters:

resource_name (str) – the resource name as string

Returns:

the matching Ags.ControllerResource-struct

Return type:

object or None

Lookup key resource_name in hash table.

New in version 3.0.0.

query_security_context(security_context, login)
Parameters:
Returns:

True if allowed to proceed, otherwise False

Return type:

bool

Query security_context for login.

New in version 3.0.0.

remove_resource(resource_name)
Parameters:

resource_name (str) – the resource name as string

Remove key resource_name from hash table.

New in version 3.0.0.

do_query_security_context(security_context, login) virtual
Parameters:
Returns:

True if allowed to proceed, otherwise False

Return type:

bool

Query security_context for login.

New in version 3.0.0.

Property Details

Ags.Controller.props.context_path
Name:

context-path

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The context path provided.

New in version 3.0.0.

Ags.Controller.props.server
Name:

server

Type:

Ags.Server

Default Value:

None

Flags:

READABLE, WRITABLE

The assigned Ags.Server

New in version 3.0.0.