fsmi.basic
Module¶
-
class
fsmi.basic.
Benutzer
¶ Bases:
object
@DynamicAttrs
-
static
associate_user_account_with_garfield
(sess, benutzer_id, garfield_user_id)¶
-
classmethod
get_by_garfield_user_id
(sess, garfield_user_id)¶
-
primary_email_address
()¶
-
static
-
fsmi.basic.
setup_tables
(_sess, meta)¶
fsmi.fsdeluxe
Module¶
-
class
fsmi.fsdeluxe.
Fehlkopie
¶ Bases:
object
datumidnachaccountseitenvonaccountuebertragen@DynamicAttrs
-
fsmi.fsdeluxe.
setup_fsdeluxe_environment
(config, _garfield_sess, _garfield_meta, environment_sess)¶
-
fsmi.fsdeluxe.
setup_tables
(_sess, meta)¶
fsmi.rzstud
Module¶
-
exception
fsmi.rzstud.
AuthError
¶ Bases:
exceptions.Exception
-
exception
fsmi.rzstud.
FormatError
¶ Bases:
exceptions.Exception
-
class
fsmi.rzstud.
SshRemoteCommand
(hostname, username, command, password=None, password_query_hook=None)¶ Bases:
object
Connects to hostname as user username and executes command. Provides access to stdin, stdout and stderr as properties. Uses SSH to connect. In case the connection cannot be established without a password, password_query_hook is called to retrieve a password. If the hook is not set or returns
None
, the connection attempt fails.-
close
()¶
-
connect
()¶
-
-
fsmi.rzstud.
retrieve_remote_full_names
(connecting_username, remote_hostname='rzstud.rz.uni-karlsruhe.de', username_regex=None, password=None, password_query_hook=None, feedback_hook=None)¶ Returns the a dictionary of username to full usernames of all users matching regex username_regex and local to remote_hostname.
Users not matching the username_regex are filtered out.
The query is performed as connecting_username.
Returns
None
in case the connection could not be established.Uses SSH to connect.
In case the connection cannot be established without a password and password is None, password_query_hook is called to retrieve a password. If the hook is not set or returns
None
, the connection attempt fails.