#: templates/telemeta_default/login.html:21
msgid "Password forgotten"
msgstr "Mot de passe oublié"
+
+#: templates/telemeta_default/collection_list.html:9
+msgid "All"
+msgstr "Toutes"
+
+#: templates/telemeta_default/collection_list.html:10
+msgid "Novel"
+msgstr "Inédites"
+
+#: templates/telemeta_default/collection_list.html:1&
+msgid "Published"
+msgstr "Éditées"
{% block submenu %}
<div class="buttons">
+ <a href="{% url telemeta-collections %}" class="component_icon button icon_search">{% trans "All" %}</a>
+ <a href="{% url telemeta-collections-novel %}" class="component_icon button icon_search">{% trans "Novel" %}</a>
+ <a href="{% url telemeta-collections-published %}" class="component_icon button icon_search">{% trans "Published" %}</a>
{% if user.is_authenticated and perms.telemeta.add_mediacollection %}
<a href="{% url telemeta-collection-add %}" class="component_icon button icon_add">{% trans "Add" %}</a>
{% endif %}
all_items = { 'queryset': MediaItem.objects.enriched(), }
all_collections = { 'queryset': MediaCollection.objects.enriched(), }
+# CREM collections
+all_collections_novel = { 'queryset': MediaCollection.objects.filter(code__contains='_I_'), }
+all_collections_published = { 'queryset': MediaCollection.objects.filter(code__contains='_E_'), }
+
# ID's regular expressions
export_extensions = "|".join(web_view.list_export_extensions())
# collections
url(r'^collections/$', 'django.views.generic.list_detail.object_list',
- dict(all_collections, paginate_by=20,
- template_name="telemeta/collection_list.html"),
- name="telemeta-collections"),
+ dict(all_collections, paginate_by=20, template_name="telemeta/collection_list.html"), name="telemeta-collections"),
+ url(r'^collections_novel/$', 'django.views.generic.list_detail.object_list',
+ dict(all_collections_novel, paginate_by=20, template_name="telemeta/collection_list.html"), name="telemeta-collections-novel"),
+ url(r'^collections_published/$', 'django.views.generic.list_detail.object_list',
+ dict(all_collections_published, paginate_by=20, template_name="telemeta/collection_list.html"), name="telemeta-collections-published"),
url(r'^collections/?page=(?P<page>[0-9]+)$',
'django.views.generic.list_detail.object_list',
dict(all_collections, paginate_by=20)),
form.save()
if form.files:
self.cache_data.delete_item_data(code)
- self.item_analyze(item)
+# self.item_analyze(item)
item.set_revision(request.user)
return HttpResponseRedirect('/items/'+code)
else:
subpipe = analyzer()
analyzers_sub.append(subpipe)
pipe = pipe | subpipe
- if not self.cache_data.exists(image_file):
- path = self.cache_data.dir + os.sep + image_file
- for grapher in self.graphers:
- if grapher.id() == grapher_id:
- break
- graph = grapher(width = int(width), height = int(height))
- pipe = pipe | graph
+# if not self.cache_data.exists(image_file):
+# path = self.cache_data.dir + os.sep + image_file
+# for grapher in self.graphers:
+# if grapher.id() == grapher_id:
+# break
+# graph = grapher(width = int(width), height = int(height))
+# pipe = pipe | graph
pipe.run()
- if not self.cache_data.exists(image_file):
- f = open(path, 'w')
- graph.render(path)
- f.close()
+# if not self.cache_data.exists(image_file):
+# f = open(path, 'w')
+# graph.render(path)
+# f.close()
mime_type = decoder.format()
analyzers.append({'name': 'Mime type', 'id': 'mime_type', 'unit': '', 'value': mime_type})
analyzers.append({'name': 'Channels', 'id': 'channels', 'unit': '', 'value': decoder.channels()})