[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.
This commit is contained in:
substantialnoninfringinguser
2009-05-22 02:54:09 +01:00
parent c38dfd20a1
commit 7769a35f07
35 changed files with 10699 additions and 4 deletions

View File

@@ -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'])