Hello,
I'm writing a little product inspired from the advanced research form
(CPSDefault).
The installation by External Method was ok.
After installation I had to modify the skin of the product.
and now I get the following error message when executing the External
Method again :
Starting bdd install
Verifying skins
FS Directory View 'bdd'
Incorrectly installed, correcting path
Ending bdd install
I stopped and restarted Zope, I run the update CPS - no change.
My product is in the Products directory in a directory named bdd and
contains the following :
__init__.py :
from Products.CMFCore.DirectoryView import registerDirectory
registerDirectory('skins', globals())
Extensions directory :
install.py :
from Products.CPSInstaller.CPSInstaller import
CPSInstaller
CPS_SKINS = { 'bdd': 'Products\\bdd\\skins'
class bddInstaller(CPSInstaller):
product_name = 'bdd'
def install(self):
self.log("Starting bdd install")
self.verifySkins(CPS_SKINS)
self.resetSkinCache()
self.log("Ending bdd install")
self.finalize()
def install(self):
installer = bddInstaller(self)
installer.install()
return installer.logResult()
skins directory :
... (the *.pt et *.py)
I modified then the CMFInstaller.py to see where the error comes from :
the path in skins.items() is : Products\bdd\skins
this path is compared with oldpath which is found like this :
dv = self.portal.portal_skins[skin]
oldpath = dv.getDirPath()
and its value is : 'bdd/skins'
there are 2 differences :
in oldpath there is no Product directory
and the slashes are inversed.
(to make my product working on windows platform I had to modify some
scripts because of error : Not a registered directory
- correction as mentionned in
www.mail-archive.com/[email protected]/msg00241.html )
I already posted on the user mailing list - without any answer
Any help would be appreciated.
Gustav Trennert
IB Solution
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel