After some more trying out virtual mount points, it looks as if they are half baked and shouldn't be used.
For example, they don't work with getPhysicalPath and so break Plone's URLTool. I have this in my config:
mount-point /mnt_clme:/clme
During a ZEXP import I get a KeyError on 'clme'. This is what investigation shows:
(Pdb) url_tool
<URLTool at /clme/CLME/portal_url used for
/clme/CLME/online-forums/livestock-and-environmnet/794325627/794761425>
(Pdb) url_tool.getPortalPath()
'/clme/CLME'
(Pdb) self.aq_parent.aq_parent.aq_parent.aq_parent.aq_parent.aq_parent.aq_parent.mnt_clme
<Folder at /clme>
(Pdb) self.aq_parent.aq_parent.aq_parent.aq_parent.aq_parent.aq_parent.aq_parent.mnt_clme.getPhysicalPath()
('', 'clme')
The same is reflected in the sort order of the mount points in the ZMI: sorting is according to 'clme' (the underlying object), not 'mnt_clme' (the mount name).
After some more trying out virtual mount points, it looks as if they are half baked and shouldn't be used.
For example, they don't work with getPhysicalPath and so break Plone's URLTool. I have this in my config:
mount-point /mnt_clme:/clme
During a ZEXP import I get a KeyError on 'clme'. This is what investigation shows:
(Pdb) url_tool portal_ url used for online- forums/ livestock- and-environmnet /794325627/ 794761425> getPortalPath( )
<URLTool at /clme/CLME/
/clme/CLME/
(Pdb) url_tool.
'/clme/CLME'
(Pdb) start_path CLME/portal_ skins' restrictedTrave rse(start_ path + '/custom') restrictedTrave rse('/mnt_ clme/CLME/ portal_ skins' + '/custom') portal_ skins/custom>
'/clme/
(Pdb) context.
*** KeyError: 'clme'
(Pdb) context.
<Folder at /clme/CLME/
(Pdb) self.aq_ parent. aq_parent. aq_parent. aq_parent. aq_parent. aq_parent. aq_parent. mnt_clme parent. aq_parent. aq_parent. aq_parent. aq_parent. aq_parent. aq_parent. mnt_clme. getPhysicalPath ()
<Folder at /clme>
(Pdb) self.aq_
('', 'clme')
The same is reflected in the sort order of the mount points in the ZMI: sorting is according to 'clme' (the underlying object), not 'mnt_clme' (the mount name).
This is with Zope 2.9.8