EduploneTest/Extensions Install.py,1.1.1.1,1.2

Jens Klein <[email protected]>
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneTest/Extensions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26529/Extensions

Modified Files:
	Install.py 
Log Message:
cleanup of install, we dont need vocabs for this product.


Index: Install.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/Extensions/Install.py,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** Install.py	28 Sep 2004 21:08:48 -0000	1.1.1.1
--- Install.py	28 Sep 2004 22:02:36 -0000	1.2
***************
*** 1,5 ****
  #-----------------------------------------------------------------------------
  # Name:        Install.py
! # Purpose:     (Un-)Installation of EduploneTypes (quickinstaller)
  #
  # Author:      Nils Haagen <[email protected]> and others
--- 1,5 ----
  #-----------------------------------------------------------------------------
  # Name:        Install.py
! # Purpose:     (Un-)Installation of EduploneTest (quickinstaller)
  #
  # Author:      Nils Haagen <[email protected]> and others
***************
*** 17,21 ****
  
  from Products.EduploneTest import PROJECTNAME, GLOBALS
- from Products.ATVocabularyManager.config import TOOL_NAME as ATVOCABULARYTOOL
  
  product_globals = GLOBALS
--- 17,20 ----
***************
*** 45,50 ****
      print >> out, 'Successfully installed %s' % PROJECTNAME
      
-     install_vocabularies(self, out)
-     
      return out.getvalue()
  
--- 44,47 ----
***************
*** 68,155 ****
  
  def install_dependencies(self, out):
!     deps = ['GoZip','ATVocabularyManager']
      print >> out, '%s depends on %s, try to auto-install.' % (PROJECTNAME,','.join(deps))
      qi = getToolByName(self,'portal_quickinstaller')
      qi.installProducts(deps, stoponerror=1)
  
- def install_vocabularies(self, out):
-     atvm=getToolByName(self,ATVOCABULARYTOOL)
-     for gkey in eduplone_vocabularies.keys():
-         vocabgroup=eduplone_vocabularies[gkey]
-         for vkey in vocabgroup.keys():
-             # create vocabulary if it doesnt exist:
-             vocabname= "eduplone_%s_%s" % (gkey, vkey)
-             if not hasattr(atvm, vocabname):
-                 print >>out, "adding vocabulary %s" % vocabname
-                 atvm.invokeFactory('SimpleVocabulary',vocabname)
-                 vocab = atvm[vocabname]
-                 for ikey, value in vocabgroup[vkey]:
-                     vocab.invokeFactory('SimpleVocabularyItem', ikey)
-                     vocab[ikey].setTitle(value)
-                     
-                     
-     
-     
- eduplone_vocabularies = {}
- 
- # CLASSIFICATION
- eduplone_vocabularies['classification'] = {}
- eduplone_vocabularies['classification']['common'] = (
-     ('orientation', u'Orientierung'),
-     ('summary', u'Zusammenfassung'),
-     ('overview', u'Ueberblick'),
-     ('explanation', u'Erklaerung'),
-     ('example', u'Beispiel'),
-     ('action', u'Handlung'),
-     ('rule', u'Regel'),
-     ('procedure', u'Prozedur'),
-     ('checklist', u'Checkliste'),
-     ('source', u'Quelle'),
-     ('assignment', u'Aufgabe'),
-     ('question', u'Frage'),
- )
- 
- # LEVEL
- eduplone_vocabularies['level'] = {}
- eduplone_vocabularies['level']['common'] = (
-     ('level_easy', u'Leicht'),
-     ('level_medium', u'Mittel'),
-     ('level_expert', u'Schwer'),
- )
- 
- eduplone_vocabularies['mediatype'] = {}
- eduplone_vocabularies['mediatype']['document'] = (
-     ('pres_text', u'Praesentation - Text'),
-     ('pres_table', u'Praesentation - Tabelle'),
-     ('pres_graphic', u'Praesentation - Grafik'),
-     ('pres_animatedgraphic', u'Praesentation - animierte Grafik'),
-     ('pres_image', u'Praesentation - Bild'),
-     ('pres_video', u'Praesentation - Film/Video'),
-     ('pres_sound', u'Praesentation - Sound'),
-     ('interact_simulation', u'Interaktion - Simulation'),
-     ('interact_voting', u'Interaktion - Abstimmung'),
-     ('interact_rating', u'Interaktion - Bewertung'),
-     ('communication_chat', u'Kommunikation - Chat'),
-     ('communication_email', u'Kommunikation - E-Mail'),
-     ('communication_directmail', u'Kommunikation - interne Nachricht'),
-     ('communication_board', u'Kommunikation - Forum')
- )
- 
- eduplone_vocabularies['mediatype']['file'] = (
-     ('pres_text', u'Praesentation - Text'),
-     ('pres_table', u'Praesentation - Tabelle'),
-     ('pres_graphic', u'Praesentation - Grafik'),
-     ('pres_animatedgraphic', u'Praesentation - animierte Grafik'),
-     ('pres_image', u'Praesentation - Bild'),
-     ('pres_video', u'Praesentation - Film/Video'),
-     ('pres_sound', u'Praesentation - Sound'),
-     ('interact_simulation', u'Interaktion - Simulation'),
- )
- 
- eduplone_vocabularies['mediatype']['image'] = (
-     ('pres_table', u'Praesentation - Tabelle'),
-     ('pres_graphic', u'Praesentation - Grafik'),
-     ('pres_animatedgraphic', u'Praesentation - animierte Grafik'),
-     ('pres_image', u'Praesentation - Bild'),
- )
- 
--- 65,71 ----
  
  def install_dependencies(self, out):
!     deps = ['GoZip',]
      print >> out, '%s depends on %s, try to auto-install.' % (PROJECTNAME,','.join(deps))
      qi = getToolByName(self,'portal_quickinstaller')
      qi.installProducts(deps, stoponerror=1)
  



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
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.