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

[Cluster-devel] conga/luci/site/luci/Extensions ricci_communic ...



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe sourceware org	2006-06-21 23:07:06

Modified files:
	luci/site/luci/Extensions: ricci_communicator.py 

Log message:
	

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_communicator.py.diff?cvsroot=cluster&r1=1.2&r2=1.3

--- conga/luci/site/luci/Extensions/ricci_communicator.py	2006/06/19 17:10:29	1.2
+++ conga/luci/site/luci/Extensions/ricci_communicator.py	2006/06/21 23:07:06	1.3
@@ -70,15 +70,20 @@
         
         return self.authed()
 
-	def unauth(self):
-		doc = minidom.Document()
-		ricci = doc.createElement('ricci')
-		ricci.setAttribute('version', '1.0')
-		ricci.setAttribute('function', 'authenticate')
-		doc.appendChild(ricci)
-		self.__send(doc)
-		resp = self.__receive()
-		return resp.firstChild.getAttribute('success')
+
+    def unauth(self):
+        doc = minidom.Document()
+        ricci = doc.createElement('ricci')
+        ricci.setAttribute('version', '1.0')
+        ricci.setAttribute('function', 'unauthenticate')
+        doc.appendChild(ricci)
+        self.__send(doc)
+        resp = self.__receive()
+        ret = resp.firstChild.getAttribute('success')
+        if ret != '0':
+            raise Exception(str(ret))
+        return True
+
 
     def process_batch(self, batch_xml, async=False):
         if not self.authed():
@@ -212,3 +217,5 @@
     return ricci.authed()
 def ricci_authenticate(self, ricci, password):
     return ricci.auth(password)
+def ricci_unauthenticate(self, ricci):
+    return ricci.unauth()


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