38 from soc.views import out_of_band |
38 from soc.views import out_of_band |
39 from soc.views.helper import access |
39 from soc.views.helper import access |
40 from soc.views.helper import decorators |
40 from soc.views.helper import decorators |
41 from soc.views.helper import redirects |
41 from soc.views.helper import redirects |
42 from soc.views.helper import widgets |
42 from soc.views.helper import widgets |
43 from soc.views.models import presence_with_tos |
43 from soc.views.models import presence |
44 from soc.views.models import document as document_view |
44 from soc.views.models import document as document_view |
45 from soc.views.models import sponsor as sponsor_view |
45 from soc.views.models import sponsor as sponsor_view |
46 from soc.views.sitemap import sidebar |
46 from soc.views.sitemap import sidebar |
47 |
47 |
48 import soc.logic.models.program |
48 import soc.logic.models.program |
49 import soc.models.work |
49 import soc.models.work |
50 |
50 |
51 |
51 |
52 class View(presence_with_tos.View): |
52 class View(presence.View): |
53 """View methods for the Program model. |
53 """View methods for the Program model. |
54 """ |
54 """ |
55 |
55 |
56 def __init__(self, params=None): |
56 def __init__(self, params=None): |
57 """Defines the fields and methods required for the base View class |
57 """Defines the fields and methods required for the base View class |
99 ugettext('Mentor Agreement Document link ID')), |
99 ugettext('Mentor Agreement Document link ID')), |
100 ('student_agreement_link_id', soc.models.work.Work.link_id.help_text, |
100 ('student_agreement_link_id', soc.models.work.Work.link_id.help_text, |
101 ugettext('Student Agreement Document link ID')), |
101 ugettext('Student Agreement Document link ID')), |
102 ('home_link_id', soc.models.work.Work.link_id.help_text, |
102 ('home_link_id', soc.models.work.Work.link_id.help_text, |
103 ugettext('Home page Document link ID')), |
103 ugettext('Home page Document link ID')), |
104 ('tos_link_id', soc.models.work.Work.link_id.help_text, |
|
105 ugettext('Terms of Service Document link ID')) |
|
106 ] |
104 ] |
107 |
105 |
108 result = {} |
106 result = {} |
109 |
107 |
110 for key, help_text, label in reference_fields: |
108 for key, help_text, label in reference_fields: |