Home | Trees | Indices | Help |
---|
|
$Id: platecom.langview.Extensions.install-module.html 236 2008-06-10 20:28:23Z crocha $ @author: Juan Pablo Gimenez @contact: jpg@rcom.com.ar
Author: Juan Pablo Gimenez <jpg@rcom.com.ar>
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Method to install dependencies... @type portal: PloneSite @param portal: The Plone site object @type out: StringIO @param out: The object to append the output @rtype: StringIO @return: Messages from the GS process some tests here... >>> from icsemantic.langfallback.config import * >>> qi = portal.portal_quickinstaller >>> installed = [ prod['id'] for prod in qi.listInstalledProducts() ] >>> for dependency in DEPENDENCIES: ... dependency in installed True |
Method to install GS profiles... @type portal: PloneSite @param portal: The Plone site object @type out: StringIO @param out: The object to append the output @rtype: StringIO @return: Messages from the GS process some tests here... >>> from icsemantic.langfallback.config import * >>> psetup = self.portal.portal_setup just test we have registered the profile... >>> profilename = PROJECTNAME + ':default' >>> PACKAGENAME in [profile['product'] for profile in psetup.listProfileInfo()] True >>> profilename in [profile['id'] for profile in psetup.listProfileInfo()] True now we can test some stuff modified but that template... >>> memberdata = self.portal.portal_memberdata >>> [property for property in memberdata.propertyMap() if property['id'] == 'icsemantic.langfallback.language'] [{'type':...'lines', 'id': 'platecom.language'}] |
External module to install the product... @type self: PloneSite @param self: The Plone site object @rtype: StringIO @return: Messages from the install process some tests here... >>> from icsemantic.langfallback.config import * >>> qi = self.portal.portal_quickinstaller >>> installed = [ prod['id'] for prod in qi.listInstalledProducts() ] >>> PACKAGENAME in installed True |
Method to uninstall GS profiles... @type portal: PloneSite @param portal: The Plone site object @type out: StringIO @param out: The object to append the output @rtype: StringIO @return: Messages from the GS process some tests here... >>> from icsemantic.langfallback.config import * >>> psetup = self.portal.portal_setup just test we have registered the profile... >>> profilename = PROJECTNAME + ':default' >>> PACKAGENAME in [profile['product'] for profile in psetup.listProfileInfo()] True >>> profilename in [profile['id'] for profile in psetup.listProfileInfo()] True now we can test some stuff modified but that template... >>> memberdata = self.portal.portal_memberdata >>> [property for property in memberdata.propertyMap() if property['id'] == 'icsemantic.langfallback.language'] [] |
External module to uninstall the product... @type self: PloneSite @param self: The Plone site object @rtype: StringIO @return: Messages from the install process some tests here... >>> from icsemantic.langfallback.config import * >>> qi = self.portal.portal_quickinstaller >>> installed = [ prod['id'] for prod in qi.listInstalledProducts() ] >>> PACKAGENAME in installed True >>> qi.uninstallProducts((PACKAGENAME,)) >>> installed = [ prod['id'] for prod in qi.listInstalledProducts() ] >>> PACKAGENAME in installed False |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Apr 4 11:23:36 2008 | http://epydoc.sourceforge.net |