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
.moveObjectsAfter(ids
, dropId
)