ZEXP NÚ ù(cProducts.SilvaExternalSources.CodeSource CodeSource q)tq.}q(U _script_idqUjava_scriptqU parametersqU NÛqQUtitleqUJava Pluginq U _is_cacheableq UonqU_descriptionqXF Embeds a Java applet with parameters using the Java plug-in mechanism.q Ujava_scriptqU NÜqQU_objectsq(}q(U meta_typeqUScript (Python)qUidqhu}q(U meta_typeqU DTML DocumentqUidqULICENSE.txtqutqU__ac_local_roles__q}qUadminq]qUOwnerqasULICENSE.txtq U Nöq!QUidq"Ujava_pluginq#u. NÛ y((UProducts.Formulator.FormqUZMIFormqtqNt.}q(Ustored_encodingqU ISO-8859-1qUunicode_modeqK Ucodeq(U NÝq (U"Products.Formulator.StandardFieldsq UStringFieldqtqtq QUnameqUformqUtitleqUParameters formqUidqhUencodingqUUTF-8qU group_listq]qUDefaultqaUmethodqUPOSTqUcodebaseq(U Nßq(h UStringFieldqtqtqQUwidthq(U Nàq (h UIntegerFieldq!tq"tq#QUparamsq$(U Náq%(h U TextAreaFieldq&tq'tq(QUgroupsq)}q*h]q+(Ucodeq,Uarchiveq-hUwidthq.Uheightq/Uparamsq0esU row_lengthq1KUactionq2U U_objectsq3(}q4(U meta_typeq5UStringFieldq6hh,u}q7(h5h6hh-u}q8(U meta_typeq9UIntegerFieldq:Uidq;h.u}q<(U meta_typeq=UStringFieldq>Uidq?hu}q@(U meta_typeqAUIntegerFieldqBUidqCh/u}qD(U meta_typeqEU TextAreaFieldqFUidqGh0utqHUheightqI(U NâqJ(h UIntegerFieldqKtqLtqMQh-(U NÞqN(h UStringFieldqOtqPtqQQUenctypeqRU u. NÜ ¿((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(UPython_magicqU;ò qUerrorsq)Uwarningsq)UScript_magicq KU_bodyq Tã # 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. model = context.REQUEST.model if archive == '': archive_param_tag = '' archive_attr = '' else: if archive.find('://') == -1: archive_obj = model.restrictedTraverse(str(archive)) archive_url = archive_obj.absolute_url() else: archive_url = archive archive_param_tag = '' % archive_url archive_attr = 'archive="%s"' % archive_url if codebase== '': codebase_param_tag = '' codebase_attr = '' else: if codebase.find('://') == -1: codebase_obj = model.restrictedTraverse(str(codebase)) codebase_url = codebase_obj.absolute_url() else: codebase_url = codebase codebase_param_tag = '' % 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_attrs = param_attrs + '\n ' + name + '="' + value + '" ' return """
""" % (width, height, code, archive_param_tag, codebase_param_tag, param_tags, width, height, code, archive_attr, codebase_attr, param_attrs) qU _filepathqU.Script (Python):/dlcms/java_plugin/java_scriptq U_codeqTÅ c @ s d d d d d d „ Z d S( Ns c C sÓ t t t d ƒ d ƒ } | d j o d } d } ni t | d ƒ d ƒ d j o1 t | d ƒ t | ƒ ƒ } t | d ƒ ƒ } n | } d | } d | } | d j o d } d } ni t | d ƒ d ƒ d j o1 t | d ƒ t | ƒ ƒ } t | d ƒ ƒ } n | } d | } d | } d } d } | d j ohd } g } xý | t | ƒ j oé t | d ƒ d | ƒ } | d j o% t t | | | … ƒ d ƒ ƒ } n Pt | d ƒ d | ƒ d } t | d ƒ d | ƒ } | d j o | d j o% t t | | | … ƒ d ƒ ƒ } n Pt | d ƒ | | f ƒ | d } qJWxY t | ƒ D]G t ƒ \ } } | d | d | d } | d | d | d } qTWn d | | | | | | | | | | | | f Sd S( Ns REQUESTs models s finds ://i s restrictedTraverses absolute_urls# s archive="%s"s$ s codebase="%s"i s =s strips "s appends