EduploneWebdidactics/Extensions Install.py,1.6,1.7

Jens Klein <[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-serv14740/Extensions

Modified Files:
	Install.py 
Log Message:
added vocabulary for DML


Index: Install.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneWebdidactics/Extensions/Install.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Install.py	2 Nov 2004 08:57:00 -0000	1.6
--- Install.py	2 Nov 2004 22:13:03 -0000	1.7
***************
*** 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:
--- 1,45 ----
! """\
! RCS-ID $id$
! 
! This file is an installation script for this skin.
! 
! use portal_quickinstaller or plone setup to install
! """
! from StringIO import StringIO
! from Products.CMFCore.utils import getToolByName
! from Products.Archetypes import listTypes
! from Products.Archetypes.Extensions.utils import installTypes, install_subskin
! 
! from Products.ATVocabularyManager.config import TOOL_NAME as ATVOCABULARYTOOL
! 
! from Products.EduploneWebdidactics import product_globals
! from Products.EduploneWebdidactics.config import PROJECTNAME
! 
! from Products.ExternalMethod.ExternalMethod import manage_addExternalMethod
! 
! def install(self):
!     out = StringIO()
!     classes=listTypes(PROJECTNAME)
!     installTypes(self, out,
!                  classes,
!                  PROJECTNAME)
! 
!     install_subskin(self, out, product_globals)
! 
!     install_vocabularies(self, out)
! 
!     portal = self.portal_url.getPortalObject()
! 
!     manage_addExternalMethod(portal,'relations_save',
!         'description',
!         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:
***************
*** 69,75 ****
  # LEVEL
  eduplone_vocabularies['level'] = (
!     ('level_easy', u'Leicht'),
!     ('level_medium', u'Mittel'),
!     ('level_expert', u'Schwer'),
  )
  
--- 76,82 ----
  # LEVEL
  eduplone_vocabularies['level'] = (
!     ('easy', u'Leicht'),
!     ('medium', u'Mittel'),
!     ('expert', u'Schwer'),
  )
  



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.