diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-22 02:54:09 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-22 02:54:09 +0100 |
commit | 3784eb97209c00da703036031fa5127197ccef38 (patch) | |
tree | 7ef253ef0c23617f77168445686fa41e896f13b0 /expo/admin.py | |
parent | 49ed6495ad296283ee0977777b2b2d8a72bc23af (diff) | |
download | troggle-3784eb97209c00da703036031fa5127197ccef38.tar.gz troggle-3784eb97209c00da703036031fa5127197ccef38.tar.bz2 troggle-3784eb97209c00da703036031fa5127197ccef38.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.py | 8 |
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'])
|