Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r681 - branches/opensource/python/generate_jnlp

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r681 - branches/opensource/python/generate_jnlp


Chronological Thread 
  • From: "Apache" <apache AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r681 - branches/opensource/python/generate_jnlp
  • Date: Wed, 23 Jan 2008 17:55:23 +0100
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: geus AT PSI.CH
Date: Wed Jan 23 17:55:22 2008
New Revision: 681

Log:
Implemented CGI script that delivers the JNLP file for the iDok test server

Added:
branches/opensource/python/generate_jnlp/
branches/opensource/python/generate_jnlp/generate_jnlp.py (contents,
props changed)

Added: branches/opensource/python/generate_jnlp/generate_jnlp.py
==============================================================================
--- (empty file)
+++ branches/opensource/python/generate_jnlp/generate_jnlp.py Wed Jan 23
17:55:22 2008
@@ -0,0 +1,87 @@
+#! /usr/bin/python
+
+"""A CGI script that delivers a dynamically generated JNLP file for starting
the iDok
+GUI on the iDok test server.
+
+The JNLP file is created dynamically, because the hostname of the server is
not known,
+and needs to be specified in the JNLP file.
+"""
+
+import cgi, os, sys
+
+# Enable HTML formatted stack traces
+import cgitb; cgitb.enable()
+
+def main():
+ "Main CGI function: create JNLP file"
+ host = os.environ["SERVER_NAME"]
+
+ print "Content-Type: application/x-java-jnlp-file"
+ print # blank line, end of headers
+ print """<?xml version="1.0" encoding="utf-8"?>
+
+<jnlp codebase="http://%(host)s/qtgui" href="idok.jnlp">
+
+ <information>
+ <title>iDok GUI application</title>
+ <vendor>iDok opensource project</vendor>
+ <homepage>http://www.idok.ch</homepage>
+ <description>Document management made easy: iDok Application based on Qt
Jambi Technology</description>
+ <description kind="short">iDok is made freely available under GPL
v2</description>
+ </information>
+
+ <resources>
+ <j2se version="1.5+"/>
+ <jar href="/ant_dist/qtgui.jar" main="true"/>
+ <jar href="/ant_dist/idok.jar"/>
+ <jar href="/lib/svnkit.jar"/>
+ <jar href="/lib/avalon-framework.jar"/>
+ <jar href="/lib/jacorb.jar"/>
+ <jar href="/lib/logkit.jar"/>
+ <jar href="/lib/qtjambi.jar"/>
+ <jar href="/lib/os_jpedal.jar"/>
+ <property name="org.omg.CORBA.ORBClass" value="org.jacorb.orb.ORB"/>
+ <property name="org.omg.CORBA.ORBSingletonClass"
value="org.jacorb.orb.ORBSingleton"/>
+ <property name="ORBInitRef.NameService"
value="corbaloc::%(host)s:1050/NameService"/>
+ <property
name="org.omg.PortableInterceptor.ORBInitializerClass.bidir_init"
value="org.jacorb.orb.giop.BiDirConnectionInitializer"/>
+ <property name="ch.psi.dms.service.server.principal"
value="HTTP/%(host)s AT D.PSI.CH"/>
+ <property name="ch.psi.dms.service.client.provider"
value="ch.psi.dms.service.client.corba.ClientProvider"/>
+ <property name="ch.psi.dms.service.common.keypass"
value="P7GXtm6rPr5pT988N4Gm" />
+ <property name="com.trolltech.launcher.webstart" value="true"/>
+ <property name="com.trolltech.qt.internal.jambipath" value=""/>
+ <property name="com.trolltech.qt.implicit-loading" value="false"/>
+ </resources>
+
+ <resources os="Windows" arch="x86">
+ <j2se version="1.5+"/>
+ <nativelib href="/lib/qtjambi-win32-gpl-4.3.1_01.jar"/>
+ <jar href="/lib/qtjambi-win32-gpl-4.3.1_01.jar"/>
+ <property name="com.trolltech.qt.pluginjars"
value="qtjambi-win32-gpl-4.3.1_01.jar"/>
+ </resources>
+
+ <resources os="Linux" arch="i386">
+ <j2se version="1.5+"/>
+ <nativelib href="/lib/qtjambi-linux32-gpl-4.3.1_01.jar"/>
+ <jar href="/lib/qtjambi-linux32-gpl-4.3.1_01.jar"/>
+ <property name="com.trolltech.qt.pluginjars"
value="qtjambi-linux32-gpl-4.3.1_01.jar"/>
+ </resources>
+
+ <resources os="Mac OS X">
+ <j2se version="1.5+"/>
+ <nativelib href="/lib/qtjambi-mac-gpl-4.3.1_01.jar"/>
+ <jar href="/lib/qtjambi-mac-gpl-4.3.1_01.jar"/>
+ <property name="com.trolltech.qt.pluginjars"
value="qtjambi-mac-gpl-4.3.1_01.jar"/>
+ </resources>
+
+ <application-desc main-class="ch.psi.dms.qtgui.DmsGui"/>
+
+ <security>
+ <all-permissions/>
+ </security>
+
+</jnlp>
+""" % {"host": host}
+
+if __name__ == "__main__":
+ main()
+ sys.exit(0)



  • [idok-commit] idok commit r681 - branches/opensource/python/generate_jnlp, Apache, 01/23/2008

Archive powered by MHonArc 2.6.19.

Top of Page