summaryrefslogtreecommitdiff
path: root/addons/web_linkedin/web_linkedin.py
diff options
context:
space:
mode:
authorAnand Patel (OpenERP) <pan@tinyerp.com>2012-06-19 15:46:30 +0530
committerAnand Patel (OpenERP) <pan@tinyerp.com>2012-06-19 15:46:30 +0530
commitcc659ea35537c1289d7b1f1adb61d7197a2739b9 (patch)
treee5e46be5263f610ca6e84ddedd0fc969f0c04bce /addons/web_linkedin/web_linkedin.py
parent79a911301cea4ca1b9b21bd054c28479bda710af (diff)
[IMP] Improved code.
bzr revid: pan@tinyerp.com-20120619101630-w1sufff8c38egvjl
Diffstat (limited to 'addons/web_linkedin/web_linkedin.py')
-rw-r--r--addons/web_linkedin/web_linkedin.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web_linkedin/web_linkedin.py b/addons/web_linkedin/web_linkedin.py
index 77327b92bde..4ef1c414734 100644
--- a/addons/web_linkedin/web_linkedin.py
+++ b/addons/web_linkedin/web_linkedin.py
@@ -23,6 +23,7 @@ import urllib2
import xmlrpclib
import zlib
+
from web import common
openerpweb = common.http
@@ -69,4 +70,11 @@ class Binary(openerpweb.Controller):
bfile = urllib2.urlopen(url)
return base64.b64encode(bfile.read())
+class Database(openerpweb.Controller):
+ _cp_path = "/web_linkedin/database"
+
+ @openerpweb.jsonrequest
+ def api_key(self, req, key):
+
+ return True
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: