ucsschool.netlogon package

ucsschool.netlogon package

ucsschool.netlogon.get_netlogon_path_list()[source]
exception ucsschool.netlogon.SqliteQueueException[source]

Bases: Exception

class ucsschool.netlogon.Cursor(filename)[source]

Bases: object

Open DB, execute command, close DB.

execute(query, params=None)[source]
fetchone()[source]
class ucsschool.netlogon.SqliteQueue(logger, filename=None)[source]

Bases: object

Holds items (user DNs) in a FIFO queue.

IDX_DB_DN = 0
setup_database()[source]

Open DB connection, optionally create it, create cursor.

truncate_database()[source]
add(users)[source]

Adds a user DN to user queue if not already existant. If the user DN already exists in queue, the queue item remains unchanged. userdn and username have to be UTF-8 encoded strings or unicode strings.

Parameters

2-tuples (users - list of) – (userdn, username)

remove(userdn)[source]

Removes a specific user DN from queue. userdn has to be a UTF-8 encoded string or unicode string.

query_next_user()[source]

Returns next user dn and username of user_queue as UTF-8 encoded strings.