热搜: 活动 交友 discuz
查看: 6402|回复: 1

Removing custom property sheet with uninstall profile

发表于 2012-2-21 14:42:53 | 显示全部楼层 |阅读模式
This is confusing for at least two reasons:
  • We have both "old style" and "new style" technologies actively in use. Old style refers to Extensions/ (Python code) and new style refers to profiles/default (GS XML + Python code).
  • Successfully installing and uninstalling add-ons in all possible cases still requires the use of both old and new style technologies.

If you don't care about uninstall, you never need to use Extensions/ If you do care about uninstall, create an Extensions/ with install and uninstall methods. Also create an "uninstall" profile (in addition to the "default" profile) e.g. profiles/uninstall. Configure the Extensions/ method to execute your "normal" profiles/default steps on installation. Now comes the "fun" part.
Because some technologies can be uninstalled "properly" via GS i.e. they respect the remove=True parameter, your Extensions/ method should execute the "proper" GS profiles to do the uninstall. But if your add-on uses technologies that cannot be uninstalled "properly" via GS i.e. those that do not respect the remove=True parameter, then you will need to write Python code to perform the uninstall.
for more information.


使用道具 举报

wildin 该用户已被删除
发表于 2012-5-3 20:40:20 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册


QQ|小黑屋|Archiver|手机版|Plone技术资料 ( 湘ICP备14006519号-1 )

GMT+8, 2019-12-8 09:23 , Processed in 0.047581 second(s), 19 queries , Gzip On.

Powered by Plone! X3.4

© 2001-2019

快速回复 返回顶部 返回列表