EduploneWebdidactics/Extensions Install.py,1.5,1.6
Nils Haagen <[email protected]>
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneWebdidactics/Extensions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17732/Extensions
Modified Files:
Install.py
Log Message:
implementing Daniel's 'Relations' - _very_ _basic_ interface!!
Index: Install.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneWebdidactics/Extensions/Install.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Install.py 1 Nov 2004 17:07:57 -0000 1.5
--- Install.py 2 Nov 2004 08:57:00 -0000 1.6
***************
*** 1,33 ****
! """\
! $id$
!
! This file is an installation script for this skin.
!
! use portal_quickinstaller or plone setup to install
! """
! from StringIO import StringIO
! from Products.Archetypes.Extensions.utils import install_subskin
! from Products.EduploneWebdidactics import product_globals
!
! from Products.CMFCore.utils import getToolByName
! from Products.ATVocabularyManager.config import TOOL_NAME as ATVOCABULARYTOOL
!
! def install(self):
! out=StringIO()
!
! install_subskin(self, out, product_globals)
!
! install_vocabularies(self, out)
!
! ## manage_addExternalMethod(portal,'id_to_be_used',
! ## 'description',
! ## PROJECTNAME+'.methodname',
! ## 'methodname')
!
! out.write('EduploneWebdidactics skins installation completed.\n')
! return out.getvalue()
!
! def install_vocabularies(self, out):
! atvm=getToolByName(self,ATVOCABULARYTOOL)
for vkey in eduplone_vocabularies.keys():
# create vocabulary if it doesnt exist:
--- 1,38 ----
! """\
! $id$
!
! This file is an installation script for this skin.
!
! use portal_quickinstaller or plone setup to install
! """
! from StringIO import StringIO
! from Products.Archetypes.Extensions.utils import install_subskin
! from Products.EduploneWebdidactics import product_globals, config
!
! from Products.CMFCore.utils import getToolByName
! #from Products.CMFCore.URLTool import getPortalObject
!
! from Products.ATVocabularyManager.config import TOOL_NAME as ATVOCABULARYTOOL
!
! from Products.ExternalMethod.ExternalMethod import manage_addExternalMethod
!
!
! def install(self):
! out=StringIO()
! portal=getToolByName(self,'portal_url').getPortalObject()
! install_subskin(self, out, product_globals)
!
! install_vocabularies(self, out)
!
! manage_addExternalMethod(portal,'relations_save',
! 'description',
! config.PROJECTNAME+'.wd_relations',
! 'relations_save')
!
! out.write('EduploneWebdidactics skins installation completed.\n')
! return out.getvalue()
!
! def install_vocabularies(self, out):
! atvm=getToolByName(self,ATVOCABULARYTOOL)
for vkey in eduplone_vocabularies.keys():
# create vocabulary if it doesnt exist:
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click