--- a/src/pyams_content/shared/site/zmi/link.py Tue Jan 16 14:23:12 2018 +0100
+++ b/src/pyams_content/shared/site/zmi/link.py Tue Jan 16 14:23:37 2018 +0100
@@ -9,11 +9,7 @@
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
-from pyramid.location import lineage
-from pyams_content.shared.site.zmi.container import SiteContainerTreeTable, SiteContainerTreeNameColumn, \
- SiteContainerTreeOidColumn
-from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
__docformat__ = 'restructuredtext'
@@ -29,11 +25,14 @@
from pyams_skin.interfaces.container import ITableElementName
from pyams_skin.interfaces.viewlet import IToolbarAddingMenu
from pyams_skin.layer import IPyAMSLayer
+from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
from pyams_zmi.layer import IAdminLayer
from zope.intid.interfaces import IIntIds
# import packages
from pyams_content.shared.site.link import ContentLink
+from pyams_content.shared.site.zmi.container import SiteContainerTreeTable, SiteContainerTreeNameColumn, \
+ SiteContainerTreeSequenceColumn
from pyams_content.shared.site.zmi.widget import SiteManagerFoldersSelectorFieldWidget
from pyams_form.form import AJAXAddForm, AJAXEditForm
from pyams_pagelet.pagelet import pagelet_config
@@ -166,13 +165,13 @@
}
})
if 'reference' in changes.get(IContentLink, ()):
- column = SiteContainerTreeOidColumn(self.context, self.request, None)
+ column = SiteContainerTreeSequenceColumn(self.context, self.request, None)
output.setdefault('events', []).append({
'event': 'myams.refresh',
'options': {
'handler': 'MyAMS.skin.refreshRowCell',
'object_id': '{0}::{1}'.format(SiteContainerTreeTable.id, intids.queryId(self.context)),
- 'col_name': 'oid',
+ 'col_name': 'sequence',
'cell': column.renderCell(self.context)
}
})