Thank you, I will give that a shot! :)<br><br>Shane<br><br><br><div class="gmail_quote">On Tue, Feb 2, 2010 at 10:59 AM, Raphael Ritz <span dir="ltr"><<a href="mailto:r.ritz@biologie.hu-berlin.de">r.ritz@biologie.hu-berlin.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Shane Graber wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a couple products that I'm writing that install portlets and custom views for certain content items. Is there a way for me to flag that a product is being re-installed in the install/uninstall routine? The way it's written now, it installs (adding portlets and views as needed) and uninstalls (removes portlets and resets all views to their defaults prior to installation). What I want is some short of flag that I can set in Extensions/Install.py to flag that it's being reinstalled so that it does not remove the portlets and already set views.<br>
<br>
Is there a way to do that? Any code would be appreciated. Thanks!<br>
</blockquote>
<br></div>
IIRC the install/uninstall methods invoked by the quickinstaller<br>
take an optional argument "reinstall=True" (default false) that<br>
QI (should) use to leave a few things untouched already on reinstall<br>
(available from ZMI). You should be able to check for that flag<br>
and have it set when you invoke 'reinstall' in ZMI.<br>
<br>
Raphael<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Shane<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Product-Developers mailing list<br>
<a href="mailto:Product-Developers@lists.plone.org" target="_blank">Product-Developers@lists.plone.org</a><br>
<a href="http://lists.plone.org/mailman/listinfo/product-developers" target="_blank">http://lists.plone.org/mailman/listinfo/product-developers</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
Product-Developers mailing list<br>
<a href="mailto:Product-Developers@lists.plone.org" target="_blank">Product-Developers@lists.plone.org</a><br>
<a href="http://lists.plone.org/mailman/listinfo/product-developers" target="_blank">http://lists.plone.org/mailman/listinfo/product-developers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Shane ∞ <a href="http://google.com/profiles/sgraber">http://google.com/profiles/sgraber</a><br>---------<br>I'm so cool I can be used to prove Bose-Einstein Condensation!<br>