oerppy-hackers team mailing list archive
-
oerppy-hackers team
-
Mailing list archive
-
Message #00004
[Branch ~oerppy-hackers/oerppy/trunk] Rev 24: * Removed unnecessary base64 encoding.
------------------------------------------------------------
revno: 24
committer: duncan@xxxxxxxxxx
branch nick: trunk
timestamp: Wed 2011-06-01 14:37:05 -0600
message:
* Removed unnecessary base64 encoding.
* Fixed service attribute typo.
modified:
oerppy/service.py
--
lp:oerppy
https://code.launchpad.net/~oerppy-hackers/oerppy/trunk
Your team oerppy Hackers is subscribed to branch lp:oerppy.
To unsubscribe from this branch go to https://code.launchpad.net/~oerppy-hackers/oerppy/trunk/+edit-subscription
=== modified file 'oerppy/service.py'
--- oerppy/service.py 2011-06-01 18:55:24 +0000
+++ oerppy/service.py 2011-06-01 20:37:05 +0000
@@ -1,6 +1,6 @@
-import base64
+import xmlrpclib
-from oerppy import util
+from oerppy import client, util
class Credentials(object):
@@ -8,7 +8,7 @@
"""
def __init__(self, user, password):
self.user = user
- self.password = base64.b64decode(password)
+ self.password = password
self.uid = None
def set_uid(self, uid):
@@ -78,7 +78,7 @@
Get an XML-RPC proxy for the endpoint.
"""
uri = self.get_uri()
- if purge or not self.proxy:
+ if purge or not self._proxy:
self._proxy = xmlrpclib.ServerProxy(uri)
return self._proxy