equal
deleted
inserted
replaced
47 |
47 |
48 class View(base.View): |
48 class View(base.View): |
49 """View methods for the Presence model. |
49 """View methods for the Presence model. |
50 """ |
50 """ |
51 |
51 |
52 def __init__(self, params=None): |
52 def __init__(self, params): |
53 """Defines the fields and methods required for the base View class |
53 """Defines the fields and methods required for the base View class |
54 to provide the user with list, public, create, edit and delete views. |
54 to provide the user with list, public, create, edit and delete views. |
55 |
55 |
56 Params: |
56 Params: |
57 params: a dict with params for this View |
57 params: a dict with params for this View |
73 } |
73 } |
74 |
74 |
75 new_params['edit_extra_dynafields'] = { |
75 new_params['edit_extra_dynafields'] = { |
76 'home_link_id': widgets.ReferenceField( |
76 'home_link_id': widgets.ReferenceField( |
77 reference_url='document', filter=['scope_path'], |
77 reference_url='document', filter=['scope_path'], |
|
78 filter_fields={'prefix': params['document_prefix']}, |
78 required=False, label=ugettext('Home page Document link ID'), |
79 required=False, label=ugettext('Home page Document link ID'), |
79 help_text=soc.models.work.Work.link_id.help_text), |
80 help_text=soc.models.work.Work.link_id.help_text), |
80 } |
81 } |
81 |
82 |
82 patterns = [] |
83 patterns = [] |