TELEMETA_ORGANIZATION = name of the organization which hosts this installation
TELEMETA_SUBJECTS = tuple of subject keywords (used for Dublin Core), such as "Ethnology", etc...
+ TELEMETA_DESCRIPTION = the description of the site
TELEMETA_CACHE_DIR = absolute path to the cache directory that you just created
TELEMETA_GMAP_KEY = your Google Map API key
TELEMETA_DOWNLOAD_ENABLED = True to enable raw audio data download
TELEMETA_PUBLIC_ACCESS_PERIOD = number of years above which item files are automagically published
EMAIL_HOST = your default SMTP server
DEFAULT_FROM_EMAIL = the default sending email address
- TELEMETA_OAI_REPOSITORY_NAME = the description of the OAI data provider
Just paste the lines below::
TELEMETA_ORGANIZATION = 'Parisson'
TELEMETA_SUBJECTS = ('test', 'telemeta', 'sandbox')
+TELEMETA_DESCRIPTION = "Telemeta TEST sandbox"
TELEMETA_GMAP_KEY = '***************************************************************************'
TELEMETA_DOWNLOAD_ENABLED = True
TELEMETA_STREAMING_FORMATS = ('mp3', 'ogg')
TELEMETA_PUBLIC_ACCESS_PERIOD = 51
AUTH_PROFILE_MODULE = 'telemeta.userprofile'
-TELEMETA_OAI_REPOSITORY_NAME = "Telemeta TEST sandbox"
-
LOGIN_URL = '/login'
LOGIN_REDIRECT_URL = '/'
EMAIL_HOST = 'smtp.free.fr'
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
-<title>{%block head_title %}{% organization %} - Telemeta{% endblock %}</title>
+<title>{%block head_title %}{% organization %} - Telemeta - {% description %}{% endblock %}</title>
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% url telemeta-css "telemeta.css" %}" />
{% endif %}
{% endfor %}
</table>
- <div align="center">
+ <div align="center" style="margin-top:3ex;">
<a href="{% url telemeta-collections %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
<a href="#" class="component_icon button icon_save"
onclick="document.getElementById('_addCollectionForm').submit(); return false;">{% trans "Save" %}</a>
{% endif %}
{% endfor %}
</table>
- <div align="center">
+ <div align="center" style="margin-top:3ex;">
<a href="{% url telemeta-collection-detail collection.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
<a href="#" class="component_icon button icon_save"
onclick="document.getElementById('_editCollectionForm').submit(); return false;">{% trans "Save" %}</a>
{% endif %}
{% endfor %}
</table>
- <div align="center">
+ <div align="center" style="margin-top:3ex;">
<a href="{% url telemeta-items %}"
class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
<a href="#" class="component_icon button icon_save"
{% endif %}
{% endfor %}
</table>
- <div align="center">
+ <div align="center" style="margin-top:3ex;">
<a href="{% url telemeta-item-detail item.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
<a href="#" class="component_icon button icon_save"
onclick="document.getElementById('_mediaItemCopyForm').submit(); return false;">{% trans "Save" %}</a>
{% endif %}
{% endfor %}
</table>
- <div align="center">
+ <div align="center" style="margin-top:3ex;">
<a href="{% url telemeta-item-detail item.public_id %}"
class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
<a href="#" class="component_icon button icon_save"
def organization():
return settings.TELEMETA_ORGANIZATION
+@register.simple_tag
+def description():
+ try:
+ description = settings.TELEMETA_OAI_REPOSITORY_NAME
+ except:
+ description = settings.TELEMETA_DESCRIPTION
+ pass
+ return description
+
class SetVarNode(template.Node):
def __init__(self, var_name, var_value):
return render(request, template, {'forms': forms, 'usr': user, 'user_hidden_fields': user_hidden_fields})
-
class LastestRevisionsFeed(Feed):
"the RSS feed of the lastest revisions"
title = organization + ' - Telemeta - ' + ugettext('Last changes')
link = ""
description = ' '.join([subject.decode('utf-8') for subject in subjects])
+ n_items = 100
def items(self):
- return get_revisions(25)
+ return get_revisions(self.n_items)
def item_title(self, r):
element = r['element']