ZEXP N[ Ö(cProducts.SilvaExternalSources.CodeSource CodeSource q)tq.}q(U _script_idqUvideo_scriptqU parametersqU N\qQUtitleqU Quicktimeq U _is_cacheableq UonqU_descriptionqX2 Embed a Quicktime movie in a page with parameters.q U__ac_local_roles__q}qUadminq]qUOwnerqasU_objectsq(}q(U meta_typeqUScript (Python)qUidqUvideo_scriptqu}q(U meta_typeqU DTML DocumentqUidqULICENSE.txtqutqhU N]qQhU NĐq QUidq!U quicktimeq"u. N\ e((UProducts.Formulator.FormqUZMIFormqtqNt.}q(Ustored_encodingqU ISO-8859-1qUunicode_modeqK UnameqUformq Uencodingq UUTF-8qUidqh Utitleq UParameters formqU group_listq]qUDefaultqaUheightq(U N^q(U"Products.Formulator.StandardFieldsqUIntegerFieldqtqtqQUwidthq(U N_q(hUIntegerFieldqtqtqQU controllerq(U N`q(hU RadioFieldqtq tq!QUparamsq"(U Naq#(hU TextAreaFieldq$tq%tq&QUgroupsq'}q(h]q)(Urefq*Uautoplayq+U controllerq,Uwidthq-Uheightq.Uparamsq/esU row_lengthq0KUactionq1U U_objectsq2(}q3(U meta_typeq4U RadioFieldq5Uidq6h+u}q7(h4h5h6h,u}q8(U meta_typeq9UStringFieldq:Uidq;h*u}q<(h9U TextAreaFieldq=h;h/u}q>(U meta_typeq?UIntegerFieldq@UidqAh.u}qB(h?h@hAh-utqCUautoplayqD(U NcqE(hU RadioFieldqFtqGtqHQUrefqI(U NbqJ(hUStringFieldqKtqLtqMQUmethodqNUPOSTqOUenctypeqPU u. N] m((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(UPython_magicqU;ō qUerrorsq)Uwarningsq)UScript_magicq KU_bodyq TQ model = context.REQUEST.model if ref.find('://') == -1: video = model.restrictedTraverse(str(ref)) video_url = video.absolute_url() else: video_url = ref if width == '': width_attr = '' else: width_attr = 'width="%s" ' % width if height == '': height_attr = '' else: height_attr = 'height="%s" ' % height 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_attr, height_attr, video_url, autoplay, controller, param_tags, width_attr, height_attr, autoplay, controller, video_url, param_attrs) qU _filepathqU-Script (Python):/dlcms/quicktime/video_scriptq U_codeqTd c @ s d d Z d S( Ns c C s_ t t t d d } t | d d d j o1 t | d t | } t | d } n | } | d j o d } n d | } | d j o d } n 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 } qÖ WxY t | D]G t \ } } | d | d | d } | d | d | d } qāWn d | | | | | | | | | | | | f Sd S( Ns REQUESTs models finds ://i s restrictedTraverses absolute_urls s width="%s" s height="%s" i s =s strips "s appends