[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Make session.this_host and session.this_user ROrun -- they are implicitly set



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1170004897 0
# Node ID 207ee547b193865e669b75326472970e8c6054ed
# Parent  1e88f0b736b5ecb6a241ab5ea5f205bef07a94fa
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 <ewan@xxxxxxxxxxxxx>
---
 docs/xen-api/xenapi-datamodel.tex |    4 ++--
 tools/python/xen/xend/XendAPI.py  |    3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff -r 1e88f0b736b5 -r 207ee547b193 docs/xen-api/xenapi-datamodel.tex
--- a/docs/xen-api/xenapi-datamodel.tex Sun Jan 28 17:11:40 2007 +0000
+++ b/docs/xen-api/xenapi-datamodel.tex Sun Jan 28 17:21:37 2007 +0000
@@ -284,8 +284,8 @@ Quals & Field & Type & Description \\
 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 -r 1e88f0b736b5 -r 207ee547b193 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Sun Jan 28 17:11:40 2007 +0000
+++ b/tools/python/xen/xend/XendAPI.py  Sun Jan 28 17:21:37 2007 +0000
@@ -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)}

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.