if node.text or len(node):
file.write(">")
if node.text:
- file.write(_escape_cdata(node.text.replace("\n", (level + 1) * identator + "\n"), encoding))
+ file.write(_escape_cdata(node.text, encoding))
for n in node:
self._write(file, n, encoding, namespaces, level + 1, identator)
if node.text and len(node.text) < 125:
for k, v in xmlns_items:
del namespaces[v]
if node.tail:
- file.write(_escape_cdata(node.tail.replace("\n", level * identator + "\n"), encoding))
+ file.write(_escape_cdata(node.tail.replace("\n", (level * identator )+ "\n"), encoding))
def make_date(date, with_time=True):
try:
with open(os.path.join(tmp, 'backup.inf'), 'wb') as inffile:
inf.write(inffile)
- t.add(os.path.join(tmp, '/backup.inf'), arcname='backup.inf')
+ t.add(os.path.join(tmp, 'backup.inf'), arcname='backup.inf')
state['overall']['status'] = _('Saving backup file')
set_state()
t.close()
from django.views.generic.simple import direct_to_template
from django.utils.translation import ugettext as _
-from views import state, running, download, importer
+from views import state, running, download
urlpatterns = patterns('',
url(r'^%s%s%s$' % (_('admin/'), _('exporter/'), _('state/')), state, name='exporter_state'),
url(r'^%s(?P<mode>\w+)/%s$' % (_('admin/'), _('running/')), running, name='exporter_running'),
url(r'^%s%s%s$' % (_('admin/'), _('exporter/'), _('download/')), download, name='exporter_download'),
-)
\ No newline at end of file
+)