Tu Bui
9 years ago
committed by
Moisés López
No known key found for this signature in database
GPG Key ID: F49F27BE918BFA35
3 changed files with
19 additions and
9 deletions
-
profiler/__openerp__.py
-
profiler/controllers.py
-
profiler/views/profiler.xml
|
|
@ -22,7 +22,7 @@ |
|
|
|
#============================================================================== |
|
|
|
{ |
|
|
|
'name': 'profiler', |
|
|
|
'version': '0.1', |
|
|
|
'version': '8.0.0.1', |
|
|
|
'category': 'devtools', |
|
|
|
'description': """ |
|
|
|
cprofile integration for Odoo/OpenERP. Check the Profiler menu in admin menu |
|
|
@ -32,16 +32,11 @@ |
|
|
|
'depends': ['base', 'web'], |
|
|
|
'data': [ |
|
|
|
'security/group.xml', |
|
|
|
], |
|
|
|
'js': [ |
|
|
|
'static/src/js/player.js', |
|
|
|
'views/profiler.xml' |
|
|
|
], |
|
|
|
'qweb': [ |
|
|
|
'static/src/xml/player.xml', |
|
|
|
], |
|
|
|
'css': [ |
|
|
|
'static/src/css/player.css', |
|
|
|
], |
|
|
|
'installable': True, |
|
|
|
'application': False, |
|
|
|
'auto_install': False, |
|
|
|
|
|
@ -56,9 +56,10 @@ class ProfilerController(openerpweb.Controller): |
|
|
|
return request.make_response( |
|
|
|
stream, |
|
|
|
headers=[ |
|
|
|
('Content-Disposition', 'attachment; filename="%s"' % filename), |
|
|
|
('Content-Disposition', |
|
|
|
'attachment; filename="%s"' % filename), |
|
|
|
('Content-Type', 'application/octet-stream') |
|
|
|
], cookies={'fileToken': int(token)}) |
|
|
|
], cookies={'fileToken': token}) |
|
|
|
|
|
|
|
@openerpweb.jsonrequest |
|
|
|
def initial_state(self, request): |
|
|
|
|
|
@ -0,0 +1,14 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<!-- vim:fdn=3: --> |
|
|
|
<openerp> |
|
|
|
<data> |
|
|
|
|
|
|
|
<template id="profiler_assets_backend" name="profiler assets" inherit_id="web.assets_backend"> |
|
|
|
<xpath expr="." position="inside"> |
|
|
|
<link rel="stylesheet" href="/profiler/static/src/css/player.css" /> |
|
|
|
<script type="text/javascript" src="/profiler/static/src/js/player.js" /> |
|
|
|
</xpath> |
|
|
|
</template> |
|
|
|
|
|
|
|
</data> |
|
|
|
</openerp> |