diff options
| author | vta vta@openerp.com <> | 2012-11-08 13:23:43 +0100 |
|---|---|---|
| committer | vta vta@openerp.com <> | 2012-11-08 13:23:43 +0100 |
| commit | f6885da5af11bef8926cb05bbac10b05fe12288c (patch) | |
| tree | d9d2deb4f4b18147e9277e7192c9e042bcf362a4 /addons/web_analytics | |
| parent | 9e758119b16eccd783030d13ea7300f29db54e6f (diff) | |
[REM] Remove unused files.
bzr revid: vta@openerp.com-20121108122343-7lfzcntwugdc1qxw
Diffstat (limited to 'addons/web_analytics')
| -rw-r--r-- | addons/web_analytics/controllers/__init__.py | 3 | ||||
| -rw-r--r-- | addons/web_analytics/controllers/main.py | 34 |
2 files changed, 0 insertions, 37 deletions
diff --git a/addons/web_analytics/controllers/__init__.py b/addons/web_analytics/controllers/__init__.py deleted file mode 100644 index 9f828025b8e..00000000000 --- a/addons/web_analytics/controllers/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -import main - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/web_analytics/controllers/main.py b/addons/web_analytics/controllers/main.py deleted file mode 100644 index 82c42efecb0..00000000000 --- a/addons/web_analytics/controllers/main.py +++ /dev/null @@ -1,34 +0,0 @@ -import json -import textwrap - -import simplejson -import werkzeug.wrappers - -import web.common.http as openerpweb -import web.controllers.main - -class web_analytics(openerpweb.Controller): - - # This controllers redirects virtual urls of the form /web_analytics/MODEL/VIEW - # as provided to google by the analytics modules to a real url that openerp can - # understand of the form /#model=MODEL&view_type=VIEW - # So that the user can click openerp urls inside google analytics. - - _cp_path = "/web_analytics" - - @openerpweb.httprequest - def redirect(self, req): - url = req.httprequest.base_url - suburl = url.split('/') - suburl = suburl[suburl.index('redirect')+1:] - - rurl = "/#" - if len(suburl) >=1 and suburl[0]: - rurl += "model="+str(suburl[0]) - if len(suburl) >=2 and suburl[1]: - rurl += "&view_type="+str(suburl[1]) - - redirect = werkzeug.utils.redirect(rurl, 303) - - return redirect - |
