font-size: 10px;
border-top: 1px solid;
height: 31px;
- padding: 0.5em;
+ padding: 0.5em 0.5em 0.7em 0.5em;
margin-top: 2.5em;
}
#footer :link, #footer :visited { color: #FFF; }
--- /dev/null
+========================
+Help page for Telemeta
+========================
+
+Glossary :
+
+#. Introduction
+#. First time
+#. Models
+#. Interface
+#. Advanced functions
+
+For more informations, see `telemeta.org <http://telemeta.org>`_
+
+
--- /dev/null
+========================
+Page d'aide Telemeta
+========================
+
+Plan :
+
+#. Introduction
+#. Prise en main
+#. Modèles
+#. Interface
+#. Fonctions avancées
+
+Pour plus d'informations, voir `telemeta.org <http://telemeta.org>`_
+
+
+++ /dev/null
-========================
-Page d'aide Telemeta
-========================
-
-Plan :
-
-#. Introduction
-#. Prise en main
-#. Modèles
-#. Interface
-#. Fonctions avancées
-
-Pour plus d'informations, voir `telemeta.org <http://telemeta.org>`_
-
-
--- /dev/null
+===================================================
+Telemeta : Web Audio Content Management System
+===================================================
+
+Telemeta is a web audio archiving program which introduces useful and secure methods to backup, index, transcode, analyse and publish any digitalized audio file with its metadata. It is dedicated to professionnals who wants to easily backup and publish documented sounds from collections of vinyls, magnetic tapes or audio CDs over a strong database, in accordance with open standards.
+
+Here are the main features of Telemeta:
+
+* Secure archiving, editing and publishing of audio files over internet.
+* User friendly web frontend including workflows and high level search methods
+* Smart dynamical and skinnable audio player (thanks to Timeside and soundmanager2)
+* "On the fly" analyzing, transcoding and metadata embedding based on an easy plugin architecture
+* Multi-format support : FLAC, OGG, MP3, WAV and more
+* GEO Navigator for audio geolocalization
+* DublinCore compatibility
+* OAI-PMH data provider
+* XML serialized backup
+* Strong SQL backend
+
+The Telemeta data model is based on 'collections' and 'items'. A collection is described by its metadata and includes original audio items (sounds) and its own metadata. This existing model has been designed to fit the one of the French Centre of Etnomusicology (CREM) but could be easily adapted/overrided to suit other data structures.
+
+
+
--- /dev/null
+===================================================
+Telemeta : Web Audio Content Management System
+===================================================
+
+Telemeta is a web audio archiving program which introduces useful and secure methods to backup, index, transcode, analyse and publish any digitalized audio file with its metadata. It is dedicated to professionnals who wants to easily backup and publish documented sounds from collections of vinyls, magnetic tapes or audio CDs over a strong database, in accordance with open standards.
+
+Here are the main features of Telemeta:
+
+* Secure archiving, editing and publishing of audio files over internet.
+* User friendly web frontend including workflows and high level search methods
+* Smart dynamical and skinnable audio player (thanks to Timeside and soundmanager2)
+* "On the fly" analyzing, transcoding and metadata embedding based on an easy plugin architecture
+* Multi-format support : FLAC, OGG, MP3, WAV and more
+* GEO Navigator for audio geolocalization
+* DublinCore compatibility
+* OAI-PMH data provider
+* XML serialized backup
+* Strong SQL backend
+
+The Telemeta data model is based on 'collections' and 'items'. A collection is described by its metadata and includes original audio items (sounds) and its own metadata. This existing model has been designed to fit the one of the French Centre of Etnomusicology (CREM) but could be easily adapted/overrided to suit other data structures.
+
+
+
+++ /dev/null
-===================================================
-Telemeta : Web Audio Content Management System
-===================================================
-
-Telemeta is a web audio archiving program which introduces useful and secure methods to backup, index, transcode, analyse and publish any digitalized audio file with its metadata. It is dedicated to professionnals who wants to easily backup and publish documented sounds from collections of vinyls, magnetic tapes or audio CDs over a strong database, in accordance with open standards.
-
-Here are the main features of Telemeta:
-
-* Secure archiving, editing and publishing of audio files over internet.
-* User friendly web frontend including workflows and high level search methods
-* Smart dynamical and skinnable audio player (thanks to Timeside and soundmanager2)
-* "On the fly" analyzing, transcoding and metadata embedding based on an easy plugin architecture
-* Multi-format support : FLAC, OGG, MP3, WAV and more
-* GEO Navigator for audio geolocalization
-* DublinCore compatibility
-* OAI-PMH data provider
-* XML serialized backup
-* Strong SQL backend
-
-The Telemeta data model is based on 'collections' and 'items'. A collection is described by its metadata and includes original audio items (sounds) and its own metadata. This existing model has been designed to fit the one of the French Centre of Etnomusicology (CREM) but could be easily adapted/overrided to suit other data structures.
-
-
-
--- /dev/null
+==================
+Legal notices
+==================
+
+...
+
+
--- /dev/null
+==================
+Mentions légales
+==================
+
+...
+
+
+++ /dev/null
-==================
-Mentions légales
-==================
-
-...
-
-==================
-Legal notices
-==================
-
-...
-
-
{{ user.username }}.
{% endif %}
<a href="{% url telemeta-profile-detail user.username %}">{% trans "Account" %}</a> |
-<a href="{% url telemeta-help %}">{% trans "Help" %}</a> |
+<a href="/page/parts/help-{{ LANGUAGE_CODE }}">{% trans "Help" %}</a> |
<a href="{% url telemeta-logout %}">{% trans "Sign out" %}
<img src="images/logout.png" style="vertical-align:middle" /></a>
{% else %}
-<a href="{% url telemeta-help %}">{% trans "Help" %}</a> |
+<a href="/page/parts/help-{{ LANGUAGE_CODE }}">{% trans "Help" %}</a> |
<a href="{% url telemeta-login %}?next={{ request.path|urlencode }}">{% trans "Sign in" %}</a>
{% endif %}
</div>
<p class="right">
Copyright © 2011 Parisson<br />
- <a href="{% url telemeta-flatpage 'parts/legal_notices' %}">{% trans "Legal notices" %}</a>
+ <a href="/page/parts/legal_notices-{{ LANGUAGE_CODE }}">{% trans "Legal notices" %}</a>
</p>
{% endblock %}
</div>
def organization():
return settings.TELEMETA_ORGANIZATION
+class SetVarNode(template.Node):
+
+ def __init__(self, var_name, var_value):
+ self.var_name = var_name
+ self.var_value = var_value
+
+ def render(self, context):
+ try:
+ value = template.Variable(self.var_value).resolve(context)
+ except template.VariableDoesNotExist:
+ value = ""
+ context[self.var_name] = value
+ return u""
+
+@register.tag
+def set_var(parser, token):
+ """
+ {% set <var_name> = <var_value> %}
+ """
+ parts = token.split_contents()
+ if len(parts) < 4:
+ raise template.TemplateSyntaxError("'set' tag must be of the form: {% set <var_name> = <var_value> %}")
+ return SetVarNode(parts[1], parts[3])
+
+
urlpatterns = patterns('',
url(r'^$', web_view.index, name="telemeta-home"),
- url(r'^help$', web_view.help, name="telemeta-help"),
# items
url(r'^items/$', 'django.views.generic.list_detail.object_list',
template = loader.get_template('telemeta/index.html')
ids = [id for id in MediaItem.objects.all().values_list('id', flat=True).order_by('?')[0:3]]
items = MediaItem.objects.enriched().filter(pk__in=ids)
-
context = RequestContext(request, {
- 'page_content': pages.get_page_content(request, 'parts/home', ignore_slash_issue=True),
+ 'page_content': pages.get_page_content(request, 'parts/home-'+request.LANGUAGE_CODE, ignore_slash_issue=True),
'items': items})
return HttpResponse(template.render(context))
else:
playlists = self.get_playlists(request)
revisions = self.get_revisions(request)
searches = Search.objects.filter(username=request.user)
- translation_list = ['Title', 'Description', 'OK', 'Cancel']
- translations = {}
- for term in translation_list:
- translations[term] = ugettext(term)
-
return render(request, template, {'playlists': playlists, 'searches': searches,
- 'revisions': revisions, 'translations': translations})
+ 'revisions': revisions,})
def get_revisions(self, request):
last_revisions = Revision.objects.all().order_by('-time')[0:15]
writer.writerow(data)
return response
- def help(self, request):
- """Render the help page"""
- template = loader.get_template('telemeta/index.html')
- ids = [id for id in MediaItem.objects.all().values_list('id', flat=True).order_by('?')[0:3]]
- items = MediaItem.objects.enriched().filter(pk__in=ids)
- context = RequestContext(request, {
- 'page_content': pages.get_page_content(request, 'parts/help', ignore_slash_issue=True),
- 'items': items})
- return HttpResponse(template.render(context))
-
def rss(self, request):
"Render the RSS feed of last revisions"
rss_item_list = []