1 from Products
.Plinn
.HugePlinnFolder
import HugePlinnFolder
3 IGNORED_ATTRIBUTES
= ('_objects',)
5 def migrateFolder(old
, container
) :
6 print 'migrate %s' % old
.absolute_url()
10 toBeSkipped
= IGNORED_ATTRIBUTES
+ tuple(old
.objectIds())
12 new
= HugePlinnFolder(origid
, title
=title
)
14 for name
in old
.__dict
__.keys() :
15 if name
in toBeSkipped
:
18 setattr(new
, name
, getattr(old
, name
))
20 new
._populateFromFolder
(old
)
22 container
._delOb
(origid
)
23 container
._setOb
(origid
, new
)
25 return container
._getOb
(origid
)