From: Ewan Mellor Date: Sun, 28 Jan 2007 17:21:37 +0000 (+0000) Subject: Make session.this_host and session.this_user ROrun -- they are implicitly set X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15368^2~62 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e0ad524018b2522268e893d98a28055c65c1333c;p=xen.git Make session.this_host and session.this_user ROrun -- they are implicitly set by a call to session.login_with_password, and cannot be created through a constructor. Signed-off-by: Ewan Mellor --- diff --git a/docs/xen-api/xenapi-datamodel.tex b/docs/xen-api/xenapi-datamodel.tex index 644489850c..511ef10d6d 100644 --- a/docs/xen-api/xenapi-datamodel.tex +++ b/docs/xen-api/xenapi-datamodel.tex @@ -284,8 +284,8 @@ The following enumeration types are used: Quals & Field & Type & Description \\ \hline $\mathit{RO}_\mathit{run}$ & {\tt uuid} & string & unique identifier/object reference \\ -$\mathit{RO}_\mathit{ins}$ & {\tt this\_host} & host ref & Currently connected host \\ -$\mathit{RO}_\mathit{ins}$ & {\tt this\_user} & user ref & Currently connected user \\ +$\mathit{RO}_\mathit{run}$ & {\tt this\_host} & host ref & Currently connected host \\ +$\mathit{RO}_\mathit{run}$ & {\tt this\_user} & user ref & Currently connected user \\ $\mathit{RO}_\mathit{run}$ & {\tt last\_active} & int & Timestamp for last time session was active \\ \hline \end{longtable} diff --git a/tools/python/xen/xend/XendAPI.py b/tools/python/xen/xend/XendAPI.py index 2670281943..52e7ba3c4d 100644 --- a/tools/python/xen/xend/XendAPI.py +++ b/tools/python/xen/xend/XendAPI.py @@ -451,7 +451,6 @@ class XendAPI(object): session_attr_ro = ['this_host', 'this_user'] session_methods = [('logout', None)] - # session_funcs = ['login_with_password'] def session_login_with_password(self, *args): if len(args) != 2: @@ -473,8 +472,6 @@ class XendAPI(object): def session_logout(self, session): auth_manager().logout(session) return xen_api_success_void() - def session_destroy(self, session): - return xen_api_error(XEND_ERROR_UNSUPPORTED) def session_get_record(self, session): record = {'this_host': XendNode.instance().uuid, 'this_user': auth_manager().get_user(session)}