Commit 0d38c899 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Moved more imports and methods from Document to cached_convertable

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29861 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64e31908
...@@ -42,7 +42,7 @@ from Products.ERP5Type.Utils import convertToUpperCase ...@@ -42,7 +42,7 @@ from Products.ERP5Type.Utils import convertToUpperCase
from Products.ERP5Type.Base import WorkflowMethod from Products.ERP5Type.Base import WorkflowMethod
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.ERP5Type.ExtensibleTraversable import ExtensibleTraversableMixIn from Products.ERP5Type.ExtensibleTraversable import ExtensibleTraversableMixIn
from Products.ERP5Type.Cache import getReadOnlyTransactionCache, DEFAULT_CACHE_SCOPE from Products.ERP5Type.Cache import getReadOnlyTransactionCache
from Products.ERP5.Document.Url import UrlMixIn from Products.ERP5.Document.Url import UrlMixIn
from Products.ERP5.Tool.ContributionTool import MAX_REPEAT from Products.ERP5.Tool.ContributionTool import MAX_REPEAT
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
...@@ -62,11 +62,6 @@ VALID_ORDER_KEY_LIST = ('user_login', 'content', 'file_name', 'input') ...@@ -62,11 +62,6 @@ VALID_ORDER_KEY_LIST = ('user_login', 'content', 'file_name', 'input')
# these property ids are unchangable # these property ids are unchangable
FIXED_PROPERTY_IDS = ('id', 'uid', 'rid', 'sid') FIXED_PROPERTY_IDS = ('id', 'uid', 'rid', 'sid')
def makeSortedTuple(kw):
items = kw.items()
items.sort()
return tuple(items)
class SnapshotMixin: class SnapshotMixin:
""" """
This class provides a generic API to store in the ZODB This class provides a generic API to store in the ZODB
......
...@@ -34,6 +34,11 @@ from Products.ERP5Type import Permissions ...@@ -34,6 +34,11 @@ from Products.ERP5Type import Permissions
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from Products.ERP5Type.Cache import DEFAULT_CACHE_SCOPE from Products.ERP5Type.Cache import DEFAULT_CACHE_SCOPE
def makeSortedTuple(kw):
items = kw.items()
items.sort()
return tuple(items)
class CachedConvertableMixin: class CachedConvertableMixin:
""" """
This class provides a generic implementation of IConvertable. This class provides a generic implementation of IConvertable.
......
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