equal
deleted
inserted
replaced
26 from soc.logic import dicts |
26 from soc.logic import dicts |
27 from soc.views.helper import decorators |
27 from soc.views.helper import decorators |
28 from soc.views.models import timeline |
28 from soc.views.models import timeline |
29 |
29 |
30 from soc.modules.ghop.logic.models import program as ghop_program_logic |
30 from soc.modules.ghop.logic.models import program as ghop_program_logic |
31 from soc.modules.ghop.logic.models import timeline as ghop_timeline_logic |
|
32 from soc.modules.ghop.views.helper import access as ghop_access |
31 from soc.modules.ghop.views.helper import access as ghop_access |
33 |
32 |
34 import soc.modules.ghop.logic.models.timeline |
33 import soc.modules.ghop.logic.models.timeline |
35 |
34 |
36 |
35 |
45 Params: |
44 Params: |
46 params: a dict with params for this View |
45 params: a dict with params for this View |
47 """ |
46 """ |
48 |
47 |
49 rights = ghop_access.GHOPChecker(params) |
48 rights = ghop_access.GHOPChecker(params) |
50 rights['edit'] = [('checkCanEditTimeline', |
49 rights['edit'] = [('checkCanEditTimeline', [ghop_program_logic.logic])] |
51 [ghop_program_logic.logic, ghop_timeline_logic.logic])] |
|
52 |
50 |
53 new_params = {} |
51 new_params = {} |
54 new_params['logic'] = soc.modules.ghop.logic.models.timeline.logic |
52 new_params['logic'] = soc.modules.ghop.logic.models.timeline.logic |
55 new_params['rights'] = rights |
53 new_params['rights'] = rights |
56 |
54 |