from cStringIO import StringIO from Products.IslandGoatsSite.Extensions.utils import * from Products.IslandGoatsSite.config import * def install(self): out = StringIO() setupSkins(self, out, GLOBALS, SKINSELECTIONS, SELECTSKIN, DEFAULTSKIN, ALLOWSELECTION, PERSISTENTCOOKIE) registerStylesheets(self, out, STYLESHEETS) registerScripts(self, out, JAVASCRIPTS) print >> out, "Installation completed." return out.getvalue() def uninstall(self): out = StringIO() removeSkins(self, out, SKINSELECTIONS, DEFAULTSKIN, FULLRESET)