Commit 5cac50f8 authored by Bartek Górny's avatar Bartek Górny

fixed security bug, added missing imports

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13264 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 845ccfe0
...@@ -28,7 +28,9 @@ ...@@ -28,7 +28,9 @@
from DateTime import DateTime from DateTime import DateTime
from operator import add from operator import add
from xmlrpclib import Fault
import re import re
import socket
from AccessControl import ClassSecurityInfo, getSecurityManager from AccessControl import ClassSecurityInfo, getSecurityManager
from Acquisition import aq_base from Acquisition import aq_base
...@@ -48,6 +50,7 @@ def makeSortedTuple(kw): ...@@ -48,6 +50,7 @@ def makeSortedTuple(kw):
items.sort() items.sort()
return tuple(items) return tuple(items)
class ConversionError(Exception):pass
class ConversionCacheMixin: class ConversionCacheMixin:
""" """
...@@ -901,7 +904,7 @@ class Document(XMLObject): ...@@ -901,7 +904,7 @@ class Document(XMLObject):
return self._getTypeBasedMethod('finishIngestion', return self._getTypeBasedMethod('finishIngestion',
fallback_script_id='Document_finishIngestion') fallback_script_id='Document_finishIngestion')
security.declareProtected(Permissions.View, 'convert') security.declareProtected(Permissions.View, 'convertToBase')
def convertToBase(self, REQUEST=None): def convertToBase(self, REQUEST=None):
""" """
This is run upon upload of the file to make the first This is run upon upload of the file to make the first
......
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