add setting for audio files path

This commit is contained in:
Frédéric Péters 2011-11-25 11:29:59 +01:00
parent ca47a9824d
commit 69a8ca390f
3 changed files with 19 additions and 0 deletions

View File

@ -355,6 +355,21 @@
/>
</div>
<div
tal:define="error errors/audiofiles_path | nothing;
audiofiles_path python:request.get('audiofiles_path', view.settings.audiofiles_path)"
tal:attributes="class python:'field error' if error else 'field'">
<label for="audiofiles_path" i18n:translate="label_audiofiles_path">Audio Files Path</label>
<div tal:content="error" tal:condition="error" />
<input
name="audiofiles_path"
id="audiofiles_path"
type="text"
tal:attributes="value audiofiles_path"
/>
</div>
<div class="formControls">
<input
type="submit"

View File

@ -91,6 +91,7 @@ class TabellioControlpanel(BrowserView):
submitted = True
self.settings.ical_username = form.get('ical_username')
self.settings.ical_password = form.get('ical_password')
self.settings.audiofiles_path = form.get('audiofiles_path')
if submitted and not self.errors:
self._setup()

View File

@ -70,3 +70,6 @@ class ITabellioSettings(Interface):
title=_('ical_password', 'ICal Password'),
required=False)
audiofiles_path = schema.TextLine(
title=_(u'Audio Files Path'),
required=False)