~unifield-team/unifield-web/web_aio_24

« back to all changes in this revision

Viewing changes to openerp/addons/base/controllers/listgrid.py

  • Committer: ame (Tiny)
  • Date: 2009-11-09 12:42:57 UTC
  • Revision ID: ame@tinyerp.com-20091109124257-b1mscw0rn779ols5
[IMP] initial work on addons
        - seperated common framework api
        - created `base` addon
        - auto-load controllers based on `_cp_path` attribute

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
from openerp.tools import rpc
35
35
from openerp import tools
36
 
from openerp.base.controllers import SecuredController
 
36
from openerp.controllers import SecuredController
37
37
 
38
38
from openerp.tools import TinyDict
39
39
from openerp.tools import TinyForm
46
46
import wizard
47
47
 
48
48
class List(SecuredController):
 
49
    
 
50
    _cp_path = "/listgrid"
49
51
 
50
52
    @expose('json')
51
53
    def save(self, **kw):
196
198
                    result = res
197
199
 
198
200
            elif btype == 'action':
199
 
                from openerp.controllers import actions
 
201
                import actions
200
202
 
201
203
                action_id = int(name)
202
204
                action_type = actions.get_action_type(action_id)