logging file putok
This commit is contained in:
@@ -328,9 +328,9 @@ script#macros-template(type="text/x-template")
|
|||||||
button.submit-macros(title="Cancel Macros",@click="cancelMacros",
|
button.submit-macros(title="Cancel Macros",@click="cancelMacros",
|
||||||
style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||||
|
|
||||||
//- button.submit-macros(title="Cancel Macros",@click="printState",
|
button.submit-macros(title="Cancel Macros",@click="printState",
|
||||||
//- style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Print State
|
style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Print State
|
||||||
//- button.submit-macros(title="Cancel Macros",@click="printConfig",
|
button.submit-macros(title="Cancel Macros",@click="printConfig",
|
||||||
//- style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Print Config
|
style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Print Config
|
||||||
//- button.submit-macros(title="Cancel Macros",@click="resetMacrosList",
|
button.submit-macros(title="Cancel Macros",@click="resetMacrosList",
|
||||||
//- style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Reset Macros List
|
style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Reset Macros List
|
||||||
|
|||||||
@@ -87,8 +87,11 @@ class FileHandler(bbctrl.APIHandler):
|
|||||||
if not os.path.exists(self.get_upload()):
|
if not os.path.exists(self.get_upload()):
|
||||||
os.mkdir(self.get_upload())
|
os.mkdir(self.get_upload())
|
||||||
|
|
||||||
|
self.get_log('FileHandler').info('uploadFilename ' + self.uploadFilename)
|
||||||
filename = self.get_upload(self.uploadFilename).encode('utf8')
|
filename = self.get_upload(self.uploadFilename).encode('utf8')
|
||||||
|
self.get_log('FileHandler').info('uploadFilename ' + filename)
|
||||||
safe_remove(filename)
|
safe_remove(filename)
|
||||||
|
self.get_log('FileHandler').info('uploadFile.name ' + self.uploadFile.name)
|
||||||
os.link(self.uploadFile.name, filename)
|
os.link(self.uploadFile.name, filename)
|
||||||
|
|
||||||
self.uploadFile.close()
|
self.uploadFile.close()
|
||||||
|
|||||||
@@ -157,6 +157,7 @@ class State(object):
|
|||||||
|
|
||||||
|
|
||||||
def add_file(self, filename):
|
def add_file(self, filename):
|
||||||
|
self.log.info('filename %s' % filename)
|
||||||
files = copy.deepcopy(self.get('files'))
|
files = copy.deepcopy(self.get('files'))
|
||||||
if not filename in files:
|
if not filename in files:
|
||||||
files.append(filename)
|
files.append(filename)
|
||||||
|
|||||||
Reference in New Issue
Block a user