+from __future__ import with_statement
+
import os, tarfile, datetime, logging, re, ConfigParser, shutil, zipfile
from django.core.cache import cache
import os, tarfile, datetime, logging, re, ConfigParser, shutil, zipfile
from django.core.cache import cache
from django.conf import settings as djsettings
import settings as selfsettings
from django.conf import settings as djsettings
import settings as selfsettings
-# Try to import the with statement
-try:
- from __future__ import with_statement
-except:
- pass
-
CACHE_KEY = "%s_exporter_state" % APP_URL
EXPORT_STEPS = []
CACHE_KEY = "%s_exporter_state" % APP_URL
EXPORT_STEPS = []
+from __future__ import with_statement
+
import os, tarfile, datetime, ConfigParser, logging
from django.utils.translation import ugettext as _
import os, tarfile, datetime, ConfigParser, logging
from django.utils.translation import ugettext as _
from orm import orm
import commands, settings
from orm import orm
import commands, settings
-# Try to import the with statement
-try:
- from __future__ import with_statement
-except:
- pass
-
NO_DEFAULT = object()
import string
NO_DEFAULT = object()
import string
+from __future__ import with_statement
+
import os, tarfile, ConfigParser, datetime
from StringIO import StringIO
import os, tarfile, ConfigParser, datetime
from StringIO import StringIO
from exporter import export, CACHE_KEY, EXPORT_STEPS, DATE_AND_AUTHOR_INF_SECTION, DATETIME_FORMAT
from importer import start_import
from exporter import export, CACHE_KEY, EXPORT_STEPS, DATE_AND_AUTHOR_INF_SECTION, DATETIME_FORMAT
from importer import start_import
-# Try to import the with statement
-try:
- from __future__ import with_statement
-except:
- pass
-
-
@admin_tools_page(_('exporter'), _('XML data export'))
def exporter(request):
state = cache.get(CACHE_KEY)
@admin_tools_page(_('exporter'), _('XML data export'))
def exporter(request):
state = cache.get(CACHE_KEY)