add a path for convocations
parent
5df62bb57e
commit
9c68343e03
|
@ -196,6 +196,23 @@
|
|||
/>
|
||||
</div>
|
||||
|
||||
<div
|
||||
tal:define="error errors/convocationsPath | nothing;
|
||||
convocationsPath python:request.get('convocationsPath', view.settings.convocationsPath)"
|
||||
tal:attributes="class python:'field error' if error else 'field'">
|
||||
<label for="convocationsPath" i18n:translate="label_convocations_path">Convocations</label>
|
||||
<div tal:content="error" tal:condition="error" />
|
||||
<input
|
||||
name="convocationsPath"
|
||||
id="convocationsPath"
|
||||
type="text"
|
||||
size="80"
|
||||
tal:attributes="value convocationsPath"
|
||||
/>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="formControls">
|
||||
<input
|
||||
type="submit"
|
||||
|
|
|
@ -47,6 +47,7 @@ class TabellioControlpanel(BrowserView):
|
|||
persons_path = form.get('personsPath')
|
||||
ministries_path = form.get('ministriesPath')
|
||||
documents_path = form.get('documentsPath')
|
||||
convocations_path = form.get('convocationsPath')
|
||||
dossiers_path = form.get('dossiersPath')
|
||||
questions_path = form.get('questionsPath')
|
||||
polgroups_path = form.get('polgroupsPath')
|
||||
|
@ -59,6 +60,7 @@ class TabellioControlpanel(BrowserView):
|
|||
self.settings.personsPath = persons_path
|
||||
self.settings.ministriesPath = ministries_path
|
||||
self.settings.documentsPath = documents_path
|
||||
self.settings.convocationsPath = convocations_path
|
||||
self.settings.dossiersPath = dossiers_path
|
||||
self.settings.questionsPath = questions_path
|
||||
self.settings.polgroupsPath = polgroups_path
|
||||
|
|
|
@ -15,6 +15,10 @@ class ITabellioSettings(Interface):
|
|||
title=_('deputies_path', 'Deputies Path'),
|
||||
required=False)
|
||||
|
||||
convocationsPath = schema.TextLine(
|
||||
title=_('convocations_path', 'Convocations Path'),
|
||||
required=False)
|
||||
|
||||
documentsPath = schema.TextLine(
|
||||
title=_('documents_path', 'Documents Path'),
|
||||
required=False)
|
||||
|
|
|
@ -16,6 +16,9 @@ def get_questions_path():
|
|||
def get_documents_path():
|
||||
return component.getUtility(IRegistry).forInterface(ITabellioSettings, False).documentsPath
|
||||
|
||||
def get_convocations_path():
|
||||
return component.getUtility(IRegistry).forInterface(ITabellioSettings, False).convocationsPath
|
||||
|
||||
def get_deputies_path():
|
||||
return component.getUtility(IRegistry).forInterface(ITabellioSettings, False).deputiesPath
|
||||
|
||||
|
|
Reference in New Issue