Commit 3ad0d119 authored by Jérome Perrin's avatar Jérome Perrin

TemplateTool: remove unused importBase64EncodedText

parent 958eac77
Pipeline #33265 failed with stage
in 0 seconds
......@@ -64,7 +64,6 @@ import struct
from base64 import b64encode, b64decode
from Products.ERP5Type.Message import translateString
from zLOG import LOG, INFO, WARNING
from base64 import decodebytes
import subprocess
import time
from Products.ERP5Type.Utils import bytes2str, str2bytes, unicode2str
......@@ -406,16 +405,6 @@ class TemplateTool (BaseTool):
bt.setPublicationUrl(url)
return bt
security.declareProtected('Import/Export objects', 'importBase64EncodedText')
def importBase64EncodedText(self, file_data=None, id=None, REQUEST=None,
batch_mode=False, **kw):
"""
Import Business Template from passed base64 encoded text.
"""
import_file = StringIO(decodebytes(file_data))
return self.importFile(import_file = import_file, id = id, REQUEST = REQUEST,
batch_mode = batch_mode, **kw)
security.declareProtected('Import/Export objects', 'importFile')
def importFile(self, import_file=None, id=None, REQUEST=None,
batch_mode=False, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment