| Home | Trees | Indices | Help |
|---|
|
|
Metodos de install para icsemantic.core @author: Juan Pablo Gimenez @contact: jpg@rcom.com.ar
Author: Juan Pablo Gimenez <jpg@rcom.com.ar>
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Method to install platecom user properties...
@type: portal: PloneSite
@type out: StringIO
@rtype: StringIO
@return: Messages from the GS process
|
Method to uninstall platecom user properties...
@type: portal: PloneSite
@type out: StringIO
@rtype: StringIO
@return: Messages from the GS process
|
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...
|
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.core.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...
>>> 'icSemantic' in [ai.getTitle() for ai in portal.portal_actionicons.listActionIcons()]
True
No se porque este no anda, anda bien en el test funcional...
>>> # [ai['name'] for ai in portal.portal_controlpanel.listActionInfos()] True
|
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.core.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.core.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...
|
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.core.config import *
>>> qi = self.portal.portal_quickinstaller
>>> installed = [ prod['id'] for prod in qi.listInstalledProducts() ]
>>> PACKAGENAME in installed
True
>>> self.setRoles(['Manager',])
>>> 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 Thu May 15 16:10:31 2008 | http://epydoc.sourceforge.net |