ZEXP 13((U OFS.FolderqUFolderqtqNt.}q(UaineLisamiseSkriptq(U 5q(U#Products.PythonScripts.PythonScriptqU PythonScriptqttQU__ac_local_roles__q }q Uadminq ]q UOwnerq asU_objectsq(}q(U meta_typeqUFileqUidqUopilane1qu}q(U meta_typeqUFileqUidqUkuulaja1qu}q(U meta_typeqUScript (Python)qUidqhu}q(hUFileqhUaine0qu}q (hhhUaine1q!u}q"(hhhUaine2q#u}q$(U meta_typeq%U DTML Methodq&Uidq'UaineLisamiseVormq(u}q)(h%UFileq*h'Uaine3q+u}q,(h%UScript (Python)q-h'U aineteLoeteluq.u}q/(U meta_typeq0U DTML Methodq1Uidq2Uavalehtq3u}q4(U meta_typeq5UFileq6Uidq7Uaine4q8u}q9(U meta_typeq:UFileq;Uidq(h:UScript (Python)q?hq`(U OFS.ImageqaUFileqbttQh8(U =qc(haUFileqdttQUaine1qe(U 7qf(haUFileqgttQh(U 6qh(haUFileqittQh+(U :qj(haUFileqkttQh#(U 8ql(haUFileqmttQUtitleqnUh(U 4qo(haUFileqpttQhG(U Dqq(haUFileqrttQhUregistreerumine1qshC(U @qt(h\U DTMLMethodquttQh.(U ;qv(hU PythonScriptqwttQhE(U Aqx(hU PythonScriptqyttQh(U 2qz(haUFileq{ttQhI(U Eq|(haUFileq}ttQUavalehtq~(U sq2U_bodyq3T×nr=container.getProperty('aine', 0) #Kui omadust pole, siis väärtuseks 0 id='aine' + str(nr) if nr==0: container.manage_addProperty('aine', 1, 'int') else: container.manage_changeProperties(aine=nr+1) # Faili loomine context.manage_addProduct['OFSP'].manage_addFile(id, title="", file="") #Küsitakse ligipääs loodud failile doc=getattr(context, id) # Andmed atribuutideks doc.manage_addProperty('ainenimi', ainenimi, 'string') REQUEST.RESPONSE.redirect('avaleht') q4U Script_magicq5KUwarningsq6)Uerrorsq7)U Python_magicq8U*ė q9u. 9F((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q UaineLisamiseVormq Utitleq UUglobalsq }qUrawqU˜
qU_varsq}qu. ? ~((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (Ueesnimiq U perekonnanimiq UREQUESTq U _getitem_q U_getitemqU _getattr_qU_getattrqU containerqUnrqUstrqUidqUcontextqUgetattrqUdocqtU co_argcountqKubU_paramsqUeesnimi, perekonnanimi, REQUESTqUidqUisikuLisamiseSkriptqU__ac_local_roles__q}qUadminq]q UOwnerq!asU _bind_namesq"(cShared.DC.Scripts.Bindings NameAssignments q#oq$}q%U_asgnsq&}q'(Uname_containerq(U containerq)U name_subpathq*Utraverse_subpathq+U name_m_selfq,Uscriptq-U name_contextq.Ucontextq/usbU func_defaultsq0NU_codeq1Ticsd„ZdS(Nc s(t}t}|tdƒddƒ}dt|ƒ} |djo |tdƒdddƒn|tdƒd|dƒ||| tdƒd ƒd ƒ| d d d d ƒ t t| ƒ} | | dƒd|dƒ|| dƒd|dƒ|||dƒdƒdƒdS(Ns getPropertystudengismanage_addPropertyisintsmanage_changePropertiessmanage_addProductsOFSPsmanage_addFilestitlessfileseesnimisstrings perekonnanimisRESPONSEsredirectsavaleht(s _getitem_s_getitems _getattr_s_getattrs containersnrsstrsidscontextsgetattrsdocseesnimis perekonnanimisREQUEST(seesnimis perekonnanimisREQUESTs _getitem_s_getitems _getattr_s_getattrs containersnrsstrsidscontextsgetattrsdoc((sScript (Python)sisikuLisamiseSkripts' #+(sisikuLisamiseSkript(sisikuLisamiseSkript((sScript (Python)ssq2U_bodyq3Tnr=container.getProperty('tudeng', 0) #Kui omadust pole, siis väärtuseks 0 id='tudeng' + str(nr) if nr==0: container.manage_addProperty('tudeng', 1, 'int') else: container.manage_changeProperties(tudeng=nr+1) # Faili loomine context.manage_addProduct['OFSP'].manage_addFile(id, title="", file="") #Küsitakse ligipääs loodud failile doc=getattr(context, id) # Andmed atribuutideks doc.manage_addProperty('eesnimi', eesnimi, 'string') doc.manage_addProperty('perekonnanimi', perekonnanimi, 'string') REQUEST.RESPONSE.redirect('avaleht') q4U Script_magicq5KUwarningsq6)Uerrorsq7)U Python_magicq8U*ė q9u. >W((U OFS.ImageqUFileqtqNt.}q(UsizeqKU _propertiesq(}q(UidqUtitleq Utypeq Ustringq u}q (hU content_typeq h h u}q(hUainenimiqh h utUdataqUU_EtagSupport__etagqU ts64931155.29qU__name__qUaine5qhUHüdrobioloogiaqh Uh Utext/x-unknown-content-typeqU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. =S((U OFS.ImageqUFileqtqNt.}q(UsizeqKU _propertiesq(}q(UidqUtitleq Utypeq Ustringq u}q (hU content_typeq h h u}q(hUainenimiqh h utUdataqUU_EtagSupport__etagqU ts64930869.35qU__name__qUaine4qhU Ajalugu IIqh Uh Utext/x-unknown-content-typeqU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. 7T((U OFS.ImageqUFileqtqNt.}q(UsizeqKU _propertiesq(}q(UidqUtitleq Utypeq Ustringq u}q (hU content_typeq h h u}q(hUainenimiqh h utUdataqUU_EtagSupport__etagqU ts64929206.81qU__name__qUaine1qhU Hüdroloogiaqh Uh Utext/x-unknown-content-typeqU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. 6X((U OFS.ImageqUFileqtqNt.}q(UsizeqKU _propertiesq(}q(UidqUtitleq Utypeq Ustringq u}q (hU content_typeq h h u}q(hUainenimiqh h utUdataqUU_EtagSupport__etagqU ts64929158.97qU__name__qUaine0qhUKeskkonnakaitseqh Uh Utext/x-unknown-content-typeqU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. :S((U OFS.ImageqUFileqtqNt.}q(UsizeqKU _propertiesq(}q(UidqUtitleq Utypeq Ustringq u}q (hU content_typeq h h u}q(hUainenimiqh h utUdataqUU_EtagSupport__etagqU ts64929443.48qU__name__qUaine3qhU Eesti keelqh Uh Utext/x-unknown-content-typeqU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. 8_((U OFS.ImageqUFileqtqNt.}q(UsizeqKU _propertiesq(}q(UidqUtitleq Utypeq Ustringq u}q (hU content_typeq h h u}q(hUainenimiqh h utUdataqUU_EtagSupport__etagqU ts64929217.36qU__name__qUaine2qhULineaarne planeerimineqh Uh Utext/x-unknown-content-typeqU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. 4((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts64928091.05qU__name__q Ukuulaja1q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h UaineqhUstringqu}q(h UopilaneqhUstringquthUtext/x-unknown-content-typeqhUaine1qU__ac_local_roles__q}qUadminq]qUOwnerqashUopilane1q hUU preconditionq!Uu. Dw((U OFS.ImageqUFileqtqNt.}q(UsizeqKU perekonnanimiqUMaasikasqUdataqUU_EtagSupport__etagq U ts64932906.1q U__name__q Utudeng0q U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hUeesnimiqhhu}q(hhhhuthUtext/x-unknown-content-typeqU__ac_local_roles__q}qUadminq]qUOwnerqashUMariqhUU preconditionqUu. @£((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q UisikuLisamiseVormq Utitleq UUglobalsq }qUrawqUō
qU_varsq}qu. ;((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (U _getattr_q U_getattrq U containerq UmUtUxtU co_argcountq KubU_paramsqUUidqU aineteLoeteluqU__ac_local_roles__q}qUadminq]qUOwnerqasU _bind_namesq(cShared.DC.Scripts.Bindings NameAssignments qoq}qU_asgnsq}q(Uname_containerqU containerqU name_subpathqUtraverse_subpathqU name_contextq Ucontextq!U name_m_selfq"Uscriptq#usbU func_defaultsq$NU_codeq%T/csd„ZdS(Nc sŠt}|tdƒdƒ}g}xR|drE}|||dƒƒdƒdƒo||dƒ|ƒnq3W|SdS(Ns objectValuessFileisids startswithsainesappend(s _getattr_s_getattrs containersmstsx(s _getattr_s_getattrs containersmstsx((sScript (Python)s aineteLoetelus  "(s aineteLoetelu(s aineteLoetelu((sScript (Python)ssq&U_bodyq'Ukm=container.objectValues('File') t=[] for x in m: if x.id().startswith('aine'): t.append(x) return t q(U Script_magicq)KUwarningsq*)Uerrorsq+)U Python_magicq,U*ė q-u. A((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (U _getattr_q U_getattrq U containerq UmUtUxtU co_argcountq KubU_paramsqUUidqUisikuteLoeteluqU__ac_local_roles__q}qUadminq]qUOwnerqasU _bind_namesq(cShared.DC.Scripts.Bindings NameAssignments qoq}qU_asgnsq}q(Uname_containerqU containerqU name_subpathqUtraverse_subpathqU name_contextq Ucontextq!U name_m_selfq"Uscriptq#usbU func_defaultsq$NU_codeq%T4csd„ZdS(Nc sŠt}|tdƒdƒ}g}xR|drE}|||dƒƒdƒdƒo||dƒ|ƒnq3W|SdS(Ns objectValuessFileisids startswithstudengsappend(s _getattr_s_getattrs containersmstsx(s _getattr_s_getattrs containersmstsx((sScript (Python)sisikuteLoetelus  "(sisikuteLoetelu(sisikuteLoetelu((sScript (Python)ssq&U_bodyq'Umm=container.objectValues('File') t=[] for x in m: if x.id().startswith('tudeng'): t.append(x) return t q(U Script_magicq)KUwarningsq*)Uerrorsq+)U Python_magicq,U*ė q-u. 2“((U OFS.ImageqUFileqtqNt.}q(UsizeqKU perekonnanimiqUJuurikasqUdataqUU_EtagSupport__etagq U ts64927908.54q U__name__q Uopilane1q U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hUeesnimiqhUstringqu}q(hhhUstringqu}q(hU synniaastaqhUstringquthUtext/x-unknown-content-typeqU__ac_local_roles__q}qUadminq ]q!UOwnerq"ashUJukuq#hU1978q$hUU preconditionq%Uu. Ex((U OFS.ImageqUFileqtqNt.}q(UsizeqKU perekonnanimiqUMaasikasqUdataqUU_EtagSupport__etagq U ts64932912.19q U__name__q Utudeng1q U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hUeesnimiqhhu}q(hhhhuthUtext/x-unknown-content-typeqU__ac_local_roles__q}qUadminq]qUOwnerqashUMatiqhUU preconditionqUu. <=((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q Uavalehtq Utitleq UUglobalsq }qUrawqT• Lisa aine

Ained

Lisa isik

Isikud

qU_varsq}qu. Fu((U OFS.ImageqUFileqtqNt.}q(UsizeqKU perekonnanimiqULepaqUdataqUU_EtagSupport__etagq U ts64932924.88q U__name__q Utudeng2q U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hUeesnimiqhhu}q(hhhhuthUtext/x-unknown-content-typeqU__ac_local_roles__q}qUadminq]qUOwnerqashUKadriqhUU preconditionqUu.’’’’’’’’’’’’’’’’