EduploneWebdidactics/Extensions Install.py,1.4,1.5
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-serv387/Extensions
Modified Files:
Install.py
Log Message:
less whitespaces and external-method install outline
Index: Install.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneWebdidactics/Extensions/Install.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Install.py 16 Sep 2004 14:38:31 -0000 1.4
--- Install.py 1 Nov 2004 17:07:57 -0000 1.5
***************
*** 2,6 ****
$id$
! This file is an installation script for this skin.
use portal_quickinstaller or plone setup to install
--- 2,6 ----
$id$
! This file is an installation script for this skin.
use portal_quickinstaller or plone setup to install
***************
*** 15,81 ****
def install(self):
out=StringIO()
!
install_subskin(self, out, product_globals)
!
install_vocabularies(self, out)
!
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:
! vocabname= "wd_%s" % vkey
! if not hasattr(atvm, vocabname):
! print >>out, "adding vocabulary %s" % vocabname
atvm.invokeFactory('SimpleVocabulary',vocabname)
! vocab = atvm[vocabname]
! for (ikey, value) in eduplone_vocabularies[vkey]:
! vocab.invokeFactory('SimpleVocabularyItem', ikey)
! vocab[ikey].setTitle(value)
!
!
!
!
! eduplone_vocabularies = {}
!
! # CLASSIFICATION
! eduplone_vocabularies['classification'] = (
! ('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'] = (
! ('level_easy', u'Leicht'),
! ('level_medium', u'Mittel'),
! ('level_expert', u'Schwer'),
! )
!
! eduplone_vocabularies['mediatype'] = (
! ('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')
! )
--- 15,86 ----
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:
! vocabname= "wd_%s" % vkey
! if not hasattr(atvm, vocabname):
! print >>out, "adding vocabulary %s" % vocabname
atvm.invokeFactory('SimpleVocabulary',vocabname)
! vocab = atvm[vocabname]
! for (ikey, value) in eduplone_vocabularies[vkey]:
! vocab.invokeFactory('SimpleVocabularyItem', ikey)
! vocab[ikey].setTitle(value)
!
!
!
!
! eduplone_vocabularies = {}
!
! # CLASSIFICATION
! eduplone_vocabularies['classification'] = (
! ('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'] = (
! ('level_easy', u'Leicht'),
! ('level_medium', u'Mittel'),
! ('level_expert', u'Schwer'),
! )
!
! eduplone_vocabularies['mediatype'] = (
! ('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')
! )
-------------------------------------------------------
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