Commit 8c0d9db9 authored by Sebastien Robin's avatar Sebastien Robin

modifications for the export of CPSForum


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1114 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fef39e38
......@@ -67,6 +67,10 @@ class PatchedProxyBase(ProxyBase):
'id' : 'default_language',
'type' : 'string'
},
{
'id' : 'default_language',
'type' : 'string'
},
{
'id' : 'sync_language_revisions', # XXX we have to manage dict type
'type' : 'dict'
......@@ -112,3 +116,38 @@ ProxyBase.getSyncRepoHistory = PatchedProxyBase.getSyncRepoHistory
ProxyBase.setSyncRepoHistory = PatchedProxyBase.setSyncRepoHistory
ProxyFolder.asXML = Folder.asXML
from Products.CPSCore.CPSBase import CPSBaseDocument
class PatchedCPSBaseDocument(CPSBaseDocument):
security = ClassSecurityInfo()
def _propertyMap(self):
"""
Returns fake property sheet
"""
property_sheet = []
property_sheet += self._properties
property_sheet += [
{
'id' : 'Title',
'type' : 'string'
},
{
'id' : 'description',
'type' : 'string'
},
]
return tuple(property_sheet + list(getattr(self, '_local_properties', ())))
CPSBaseDocument.getPath = Base.getPath
CPSBaseDocument.getProperty = Base.getProperty
CPSBaseDocument._setProperty = Base._setProperty
CPSBaseDocument._edit = Base._edit
CPSBaseDocument.asXML = Base.asXML
CPSBaseDocument._propertyMap = PatchedCPSBaseDocument._propertyMap
......@@ -229,4 +229,3 @@ CPSDocument.setProperty = Base.setProperty
CPSDocument._setProperty = PatchedCPSDocument._setProperty
CPSDocument.asXML = Base.asXML
CPSDocument._edit = PatchedCPSDocument._edit
CPSDocument.edit = PatchedCPSDocument._edit
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