@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from demeter.core import *
+#CREATE DATABASE IF NOT EXISTS yourdbname DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
def manage():
model = Demeter.model('manage_admin')
model.id = 1
@@ -112,6 +112,7 @@ class Convert(object):
return False
def command(self, info):
+ File.mkdir(info['path'])
convert = 'cd ' + info['path'] + ' && '
convert = convert + 'libreoffice --invisible --convert-to pdf ' + info['local']
convert = convert + ' && '