summaryrefslogtreecommitdiffstats
path: root/expo/admin.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-22 02:54:09 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-22 02:54:09 +0100
commit7769a35f076211ec13a2b798fd8c84569e619984 (patch)
treefa971d186e3095fd0385b5cdf6cfde6638e4aca6 /expo/admin.py
parentc38dfd20a1f66d40e67d478f5b340557a2ac20c2 (diff)
downloadtroggle-7769a35f076211ec13a2b798fd8c84569e619984.tar.gz
troggle-7769a35f076211ec13a2b798fd8c84569e619984.tar.bz2
troggle-7769a35f076211ec13a2b798fd8c84569e619984.zip
[svn] - Remove feature (admin JSON / XML downloads) which won't work until we have django 1.1 installed (works on my SVN version, but not on seagrass debian package version).
- Copy feincms media to project so that we don't have to serve it separately. Also useful because we may want to customize it.
Diffstat (limited to 'expo/admin.py')
-rw-r--r--expo/admin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/expo/admin.py b/expo/admin.py
index 9f804c2..247b4b1 100644
--- a/expo/admin.py
+++ b/expo/admin.py
@@ -101,22 +101,22 @@ def export_as_json(modeladmin, request, queryset):
serializers.serialize("json", queryset, stream=response)
return response
-admin.site.add_action(export_as_json)
def export_as_xml(modeladmin, request, queryset):
response = HttpResponse(mimetype="text/xml")
response['Content-Disposition'] = 'attachment; filename=troggle_output.xml'
return response
-admin.site.add_action(export_as_xml)
-
def export_as_python(modeladmin, request, queryset):
response = HttpResponse(mimetype="text/python")
response['Content-Disposition'] = 'attachment; filename=troggle_output.py'
serializers.serialize("json", queryset, stream=response)
return response
-admin.site.add_action(export_as_python)
+#These require django newer than 1.0 (SVN version) so we'll have to wait.
+#admin.site.add_action(export_as_xml)
+#admin.site.add_action(export_as_json)
+#admin.site.add_action(export_as_python)
try:
mptt.register(Subcave, order_insertion_by=['name'])