热搜: 活动 交友 discuz
查看: 3567|回复: 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.


使用道具 举报

发表于 2012-5-3 20:40:20 | 显示全部楼层
回复 支持 反对

使用道具 举报

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


小黑屋|手机版|Archiver|Plone技术论坛 ( 湘ICP备07003419

GMT+8, 2018-5-27 07:37 , Processed in 0.331793 second(s), 13 queries , Gzip On, Memcache On.

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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