EduploneTypes/Extensions Install.py,1.5,1.6

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

Modified Files:
	Install.py 
Log Message:
modified installation and docs


Index: Install.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneTypes/Extensions/Install.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Install.py	26 May 2004 22:59:57 -0000	1.5
--- Install.py	14 Jun 2004 09:18:20 -0000	1.6
***************
*** 23,26 ****
--- 23,28 ----
  def install(self):
      out = StringIO()
+     
+     install_dependencies(self,out)
  
      typeInfo = listTypes(PROJECTNAME)
***************
*** 65,68 ****
--- 67,76 ----
      return out.getvalue()
  
+ 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)



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
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.