[Products.SilvaExternalSources][Emiliano D'Alterio] Removed old ...
[email protected] Tue, 22 Oct 2013 11:37:29 +0200
| Newsgroups | gmane.comp.web.zope.silva.cvs |
|---|---|
| Message-ID | <[email protected]> |
author: Emiliano D'Alterio date: Tue Oct 22 11:37:19 2013 +0200 revision: 1126:c3df1d86f0e2 in Products.SilvaExternalSources branch: 2.4 details: https://hg.infrae.com/Products.SilvaExternalSources?cmd=changeset;node=c3df1d86f0e2 modified: Products/SilvaExternalSources/codesources/cs_java_plugin/LICENSE.txt Products/SilvaExternalSources/codesources/cs_java_plugin/README.txt Products/SilvaExternalSources/codesources/cs_java_plugin/java_script.py Products/SilvaExternalSources/codesources/cs_java_plugin/parameters.xml added: removed: Products/SilvaExternalSources/codesources/cs_java_plugin/LICENSE.txt Products/SilvaExternalSources/codesources/cs_java_plugin/README.txt Products/SilvaExternalSources/codesources/cs_java_plugin/java_script.py Products/SilvaExternalSources/codesources/cs_java_plugin/parameters.xml log: Removed old and unused cs_java_plugin code source. diffstat: Products/SilvaExternalSources/codesources/cs_java_plugin/LICENSE.txt | 32 - Products/SilvaExternalSources/codesources/cs_java_plugin/README.txt | 27 - Products/SilvaExternalSources/codesources/cs_java_plugin/java_script.py | 105 ----- Products/SilvaExternalSources/codesources/cs_java_plugin/parameters.xml | 177 ---------- 4 files changed, 0 insertions(+), 341 deletions(-) diffs (357 lines): diff -r 118fdf5da856 -r c3df1d86f0e2 Products/SilvaExternalSources/codesources/cs_java_plugin/LICENSE.txt --- a/Products/SilvaExternalSources/codesources/cs_java_plugin/LICENSE.txt Tue Oct 22 10:43:14 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -LICENSE.txt - -Copyright (c) 2005-2010 Samuel Schluep, ETH Zurich and Infrae. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - 3. Neither the name of ETH Zurich nor the names of contributors may be - used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff -r 118fdf5da856 -r c3df1d86f0e2 Products/SilvaExternalSources/codesources/cs_java_plugin/README.txt --- a/Products/SilvaExternalSources/codesources/cs_java_plugin/README.txt Tue Oct 22 10:43:14 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -README.txt - -Copyright (c) 2005-2010 Samuel Schluep, ETH Zurich and Infrae. -All rights reserved. See also LICENSE.txt - -Java Plugin - - Embeds a Java applet with the Java plug-in mechanism. - - Version: Java Plugin CS 0.3 - Date: 2007-04-13 - Author: Samuel Schluep - Email: [email protected] - Requirements: Silva 1.5.8 and up - -Embeds a Java applet using the Java plug-in mechanism. Includes parameters for startup class, reference, codebase, width, height, and arbitrary parameters. - - * Version 0.1 is compatible with Silva 1.4 and up. - * Version 0.2 is for use with Silva 1.5.8 or greater. - Improvements include a lookup window launcher for linking - the image and rollover tooltips in the parameters form. - -Author: Samuel Schluep - -Contact: schluep at ethz ch - - diff -r 118fdf5da856 -r c3df1d86f0e2 Products/SilvaExternalSources/codesources/cs_java_plugin/java_script.py --- a/Products/SilvaExternalSources/codesources/cs_java_plugin/java_script.py Tue Oct 22 10:43:14 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +0,0 @@ -##parameters=model, version, code, archive='', codebase='', width, height, params='' -# Creates the HTML code for the java plugin technology according to the -# documentation on -# http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html#general -# -# The HTML created here directs the browser to use any installed Java 2 -# environment up from version is 1.2. -# Unfortunately I could not find out how to instruct Internet Explorer to use -# the latest installed version from 1.2 on, and at the same time to specify a -# download page with the latest version. - -if archive is None: - archive_param_tag = '' - archive_attr = '' -else: - archive_url = archive.absolute_url() - archive_param_tag = '<param name="archive" value="%s" />' % archive_url - archive_attr = 'archive="%s"' % archive_url - -if codebase is None: - codebase_param_tag = '' - codebase_attr = '' -else: - codebase_url = codebase.absolute_url() - codebase_param_tag = '<param name="codebase" value="%s" />' % codebase_url - codebase_attr = 'codebase="%s"' % codebase_url - -param_tags = '' -param_attrs = '' -if params != '': - start = 0 - param_list = [] - while start < len(params): - i = params.find('=', start) - if i > -1: - name = params[start:i].strip() - else: - break - i = params.find('"', i) + 1 - j = params.find('"', i) - if i > -1 and j > -1: - value = params[i:j].strip() - else: - break - param_list.append((name, value)) - start = j + 1 - for name, value in param_list: - param_tags = param_tags + '\n <param name="' + name \ - + '" value="' + value + '" />' - param_attrs = param_attrs + '\n ' + name + '="' + value + '" ' - -return """ -<p class="p"> -<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" - width="%s" height="%s" align="baseline" - codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0"> - <param name="code" value="%s" /> - %s%s%s - <param name="type" value="application/x-java-applet;version=1.2" /> - <embed type="application/x-java-applet;version=1.2" - width="%s" height="%s" align="baseline" - code="%s" - %s%s%s - pluginspage="http://java.sun.com/j2se/1.5.0/download.html"> - <noembed> - No Java 2 SDK support!! - </noembed> - </embed> -</object> -</p> -""" % (width, height, code, archive_param_tag, codebase_param_tag, param_tags, - width, height, code, archive_attr, codebase_attr, param_attrs) - -return """ -<p class="p"> - <!--[if !IE]>--> - <object classid="java:%s" - type="application/x-java-applet" - archive="%s" - width="%s" height="%s" > - <!-- Konqueror browser needs the following param --> - <param name="archive" value="%s" /> - <!--<![endif]--> - <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" - width="%s" height="%s" > - <param name="code" value="%s" /> - <param name="archive" value="%s" /> - </object> - <!--[if !IE]>--> - </object> - <!--<![endif]--> -</p> -""" % (code, archive_url, width, height, archive_url, - width, height, code, archive_url) - -return """ -<p class="p"> - <object type="application/x-java-applet" - width="%s" height="%s" > - <param name="code" value="%s" /> - %s%s%s - </object> -</p> -""" % (width, height, code, archive_param_tag, codebase_param_tag, param_tags) - diff -r 118fdf5da856 -r c3df1d86f0e2 Products/SilvaExternalSources/codesources/cs_java_plugin/parameters.xml --- a/Products/SilvaExternalSources/codesources/cs_java_plugin/parameters.xml Tue Oct 22 10:43:14 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,177 +0,0 @@ -<?xml version="1.0"?> - -<form> - <title>Parameters form</title> - <row_length>4</row_length> - <name>form</name> - <action></action> - <method>POST</method> - <enctype></enctype> - <encoding>UTF-8</encoding> - <stored_encoding>ISO-8859-1</stored_encoding> - <unicode_mode>false</unicode_mode> - <i18n_domain></i18n_domain> - <groups> - <group> - <title>Default</title> - <fields> - - <field><id>code</id> <type>StringField</type> - <values> - <alternate_name></alternate_name> - <css_class></css_class> - <default></default> - <description>Startup class (e.g. 'ch/ethz/abc.class').</description> - <display_maxwidth></display_maxwidth> - <display_width type="int">20</display_width> - <enabled type="int">1</enabled> - <external_validator></external_validator> - <extra></extra> - <hidden type="int">0</hidden> - <max_length></max_length> - <required type="int">1</required> - <title>code</title> - <truncate type="int">0</truncate> - <unicode type="int">1</unicode> - <whitespace_preserve type="int">0</whitespace_preserve> - </values> - <tales> - </tales> - <messages> - <message name="external_validator_failed">The input failed the external validator.</message> - <message name="required_not_found">Input is required but no input given.</message> - <message name="too_long">Too much input was given.</message> - </messages> - </field> - <field><id>archive</id> <type>ReferenceField</type> - <values> - <alternate_name></alternate_name> - <css_class></css_class> - <default></default> - <description>Select the JAR archive containing the applet archive.</description> - <enabled type="int">1</enabled> - <external_validator></external_validator> - <hidden type="int">0</hidden> - <interface type="interface">silva.core.interfaces.content.IFile</interface> - <multiple type="int">0</multiple> - <required type="int">0</required> - <title>JAR Archive</title> - </values> - <tales> - </tales> - <messages> - <message name="external_validator_failed">The input failed the external validator.</message> - <message name="required_not_found">Input is required but no input given.</message> - <message name="too_long">Too much input was given.</message> - </messages> - </field> - <field><id>codebase</id> <type>ReferenceField</type> - <values> - <alternate_name></alternate_name> - <css_class></css_class> - <default></default> - <description>Select the JAR archive containing the applet codebase.</description> - <enabled type="int">1</enabled> - <external_validator></external_validator> - <hidden type="int">0</hidden> - <interface type="interface">silva.core.interfaces.content.IFile</interface> - <multiple type="int">0</multiple> - <required type="int">0</required> - <title>JAR Codebase</title> - </values> - <tales> - </tales> - <messages> - <message name="external_validator_failed">The input failed the external validator.</message> - <message name="required_not_found">Input is required but no input given.</message> - <message name="too_long">Too much input was given.</message> - </messages> - </field> - <field><id>width</id> <type>IntegerField</type> - <values> - <alternate_name></alternate_name> - <css_class></css_class> - <default></default> - <description>Width of the java applet.</description> - <display_maxwidth></display_maxwidth> - <display_width type="int">20</display_width> - <enabled type="int">1</enabled> - <end></end> - <external_validator></external_validator> - <extra></extra> - <hidden type="int">0</hidden> - <required type="int">1</required> - <start></start> - <title>width</title> - <whitespace_preserve type="int">0</whitespace_preserve> - </values> - <tales> - </tales> - <messages> - <message name="external_validator_failed">The input failed the external validator.</message> - <message name="required_not_found">Input is required but no input given.</message> - <message name="not_integer">You did not enter an integer.</message> - <message name="integer_out_of_range">The integer you entered was out of range.</message> - </messages> - </field> - <field><id>height</id> <type>IntegerField</type> - <values> - <alternate_name></alternate_name> - <css_class></css_class> - <default></default> - <description>Height of the java applet.</description> - <display_maxwidth></display_maxwidth> - <display_width type="int">20</display_width> - <enabled type="int">1</enabled> - <end></end> - <external_validator></external_validator> - <extra></extra> - <hidden type="int">0</hidden> - <required type="int">1</required> - <start></start> - <title>height</title> - <whitespace_preserve type="int">0</whitespace_preserve> - </values> - <tales> - </tales> - <messages> - <message name="external_validator_failed">The input failed the external validator.</message> - <message name="required_not_found">Input is required but no input given.</message> - <message name="not_integer">You did not enter an integer.</message> - <message name="integer_out_of_range">The integer you entered was out of range.</message> - </messages> - </field> - <field><id>params</id> <type>TextAreaField</type> - <values> - <alternate_name></alternate_name> - <css_class></css_class> - <default></default> - <description>Further parameters can be added. Place each parameter on a new line and use the notation: 'name="value"'.</description> - <enabled type="int">1</enabled> - <external_validator></external_validator> - <extra></extra> - <height type="int">5</height> - <hidden type="int">0</hidden> - <max_length></max_length> - <max_linelength></max_linelength> - <max_lines></max_lines> - <required type="int">0</required> - <title>parameters</title> - <unicode type="int">1</unicode> - <whitespace_preserve type="int">0</whitespace_preserve> - <width type="int">20</width> - </values> - <tales> - </tales> - <messages> - <message name="external_validator_failed">The input failed the external validator.</message> - <message name="required_not_found">Input is required but no input given.</message> - <message name="too_many_lines">You entered too many lines.</message> - <message name="line_too_long">A line was too long.</message> - <message name="too_long">You entered too many characters.</message> - </messages> - </field> - </fields> - </group> - </groups> -</form>