6 container_type
= fg('container_type')
7 if container_type
== 'portfolio' :
8 from Products
.CMFCore
.utils
import getUtilityByInterfaceName
9 uidh
= getUtilityByInterfaceName('Products.CMFUid.interfaces.IUniqueIdHandler')
10 ctool
= getUtilityByInterfaceName('Products.CMFCore.interfaces.ICatalogTool')
11 dropId
= uidh
.getBrain(int(fg('afterUid'))).getId
13 ids
= [uidh
.getBrain(uid
).getId
for uid
in uids
]
14 context
.REQUEST
.RESPONSE
.setHeader('Content-Type', 'text/xml;;charset=utf-8')
16 context
.moveObjectsAfter(ids
, dropId
)
18 except NotImplementedError :