ZEXP - Ó((U OFS.FolderqUFolderqtqNt.}q(UaineKuulamisteArvq(U Yq(U#Products.PythonScripts.PythonScriptqU PythonScriptqttQUaineLisamiseVormq (U .q (UOFS.DTMLMethodq U DTMLMethodq ttQUkysiAineNimetusq (U Sq(hU PythonScriptqttQU__ac_local_roles__q}qUadminq]qUOwnerqasU _propertiesq(}q(UidqUtitleqUmodeqUwUtypeqUstringqu}q(hUaineqhUintqu}q(Uidq Utudengq!Utypeq"Uintq#u}q$(Uidq%Ukuulajaq&Utypeq'Uintq(uth&KUaine5q)(U /q*(U OFS.Imageq+UFileq,ttQUaine4q-(U 0q.(h+UFileq/ttQU kuulaja11q0(U 1q1(h+UFileq2ttQUaine6q3(U 2q4(h+UFileq5ttQUaine1q6(U 3q7(h+UFileq8ttQUaine0q9(U 4q:(h+UFileq;ttQUaine3q<(U 5q=(h+UFileq>ttQUaine2q?(U 6q@(h+UFileqAttQU kuulaja10qB(U 7qC(h+UFileqDttQUainelehtqE(U 8qF(h U DTMLMethodqGttQU aineteLoeteluqH(U 9qI(hU PythonScriptqJttQUtudeng2qK(U :qL(h+UFileqMttQUisikuteLoeteluqN(U ;qO(hU PythonScriptqPttQUisikuAineteLoeteluqQ(U qX(h U DTMLMethodqYttQUavalehtqZ(U ?q[(h U DTMLMethodq\ttQU kuulaja12q](U Uq^(h+UFileq_ttQU kuulaja13q`(U Vqa(h+UFileqbttQU isikulehtqc(U @qd(h U DTMLMethodqettQUkuulajaLisamiseSkriptqf(U Aqg(hU PythonScriptqhttQU_objectsqi(}qj(U meta_typeqkUScript (Python)qlhUaineLisamiseSkriptqmu}qn(hkUFileqohh9u}qp(hkhohUaine1qqu}qr(hkhohh?u}qs(U meta_typeqtU DTML MethodquUidqvh u}qw(htUFileqxhvhsq)U_bodyq*U˜m=container.objectValues('File') loendur=0 for x in m: if x.id().startswith('kuulaja'): if x.aine==aineID: loendur=loendur+1 return loendur q+U Script_magicq,KUwarningsq-)Uerrorsq.)U Python_magicq/U*ë q0u. .F((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q UaineLisamiseVormq Utitleq UUglobalsq }qUrawqU˜
qU_varsq}qu. S0((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (UaineIDq U _getattr_q U_getattrq Ugetattrq U containerqtqU co_argcountqKubU_paramsqUaineIDqUidqUkysiAineNimetusqU__ac_local_roles__q}qUadminq]qUOwnerqasU _bind_namesq(cShared.DC.Scripts.Bindings NameAssignments qoq}qU_asgnsq}q(Uname_containerq hU name_subpathq!Utraverse_subpathq"U name_contextq#Ucontextq$U name_m_selfq%Uscriptq&usbU func_defaultsq'NU_codeq(T’csd„ZdS(Ncs#t}|tt|ƒdƒSdS(Nsainenimi(s _getattr_s_getattrsgetattrs containersaineID(saineIDs _getattr_s_getattrsgetattrs container((sScript (Python)skysiAineNimetuss(skysiAineNimetus(skysiAineNimetus((sScript (Python)ssq)U_bodyq*U+return getattr(container, aineID).ainenimi q+U Script_magicq,KUwarningsq-)Uerrorsq.)U Python_magicq/U*ë q0u. /W((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts64931155.29qU__name__q Uaine5q Uainenimiq UHüdrobioloogiaq U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hh hhuthUtext/x-unknown-content-typeqhUU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. 0S((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts64930869.35qU__name__q Uaine4q Uainenimiq U Ajalugu IIq U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hh hhuthUtext/x-unknown-content-typeqhUU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. 1p((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts66127064.51qU__name__q U kuulaja11q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng1qhUaine6qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. 2O((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts66126798.61qU__name__q Uaine6q Uainenimiq UKeemiaq U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hh hhuthUtext/x-unknown-content-typeqhUU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. 3T((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts64929206.81qU__name__q Uaine1q Uainenimiq U Hüdroloogiaq U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hh hhuthUtext/x-unknown-content-typeqhUU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. 4X((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts64929158.97qU__name__q Uaine0q Uainenimiq UKeskkonnakaitseq U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hh hhuthUtext/x-unknown-content-typeqhUU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. 5S((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts64929443.48qU__name__q Uaine3q Uainenimiq U Eesti keelq U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hh hhuthUtext/x-unknown-content-typeqhUU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. 6_((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts64929217.36qU__name__q Uaine2q Uainenimiq ULineaarne planeerimineq U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hh hhuthUtext/x-unknown-content-typeqhUU preconditionqUU__ac_local_roles__q}qUadminq]qUOwnerqasu. 7p((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts66126812.18qU__name__q U kuulaja10q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng1qhUaine0qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. 8Ö((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q Uainelehtq Utitleq UUglobalsq }qUrawqT-

Registreeritud isikud

qU_varsq}qu. 9((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 UmUtUxtq U co_argcountqKubU_paramsqUUidqU aineteLoeteluqU__ac_local_roles__q}qUadminq]qUOwnerqasU _bind_namesq(cShared.DC.Scripts.Bindings NameAssignments qoq}qU_asgnsq}q(Uname_containerqU containerqU name_subpathqUtraverse_subpathq U name_m_selfq!Uscriptq"U name_contextq#Ucontextq$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. :u((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. ; ((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 UmUtUxtq U co_argcountqKubU_paramsqUUidqUisikuteLoeteluqU__ac_local_roles__q}qUadminq]qUOwnerqasU _bind_namesq(cShared.DC.Scripts.Bindings NameAssignments qoq}qU_asgnsq}q(Uname_containerqU containerqU name_subpathqUtraverse_subpathq U name_m_selfq!Uscriptq"U name_contextq#Ucontextq$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. <Q((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (Utudengikirjenimiq U _getattr_q U_getattrq U containerq UmUtUxUgetattrqUaineobjqtqU co_argcountqKubU_paramsqUtudengikirjenimiqUidqUisikuAineteLoeteluqU__ac_local_roles__q}qUadminq]qUOwnerqasU _bind_namesq(cShared.DC.Scripts.Bindings NameAssignments qoq}qU_asgnsq}q (Uname_containerq!U containerq"U name_subpathq#Utraverse_subpathq$U name_m_selfq%Uscriptq&U name_contextq'Ucontextq(usbU func_defaultsq)NU_codeq*Tëcsd„ZdS(Nc sÂt}|tdƒdƒ}g}xŠ|dr}}|||dƒƒdƒdƒoR||dƒ|jo5tt||dƒƒ}||d ƒ|ƒnnq3W|SdS( Ns objectValuessFileisids startswithskuulajastudengsainesappend( s _getattr_s_getattrs containersmstsxstudengikirjenimisgetattrsaineobj( studengikirjenimis _getattr_s_getattrs containersmstsxsgetattrsaineobj((sScript (Python)sisikuAineteLoetelus (sisikuAineteLoetelu(sisikuAineteLoetelu((sScript (Python)ssq+U_bodyq,U½m=container.objectValues('File') t=[] for x in m: if x.id().startswith('kuulaja'): if x.tudeng==tudengikirjenimi: aineobj=getattr(container, x.aine) t.append(aineobj) return t q-U Script_magicq.KUwarningsq/)Uerrorsq0)U Python_magicq1U*ë q2u. =C((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (U ainekirjenimiq Uisikukirjenimiq U _getattr_q U_getattrq U containerqUmUloendurqUxtqU co_argcountqKubU_paramsqUainekirjenimi, isikukirjenimiqUidqUregistreerimisloendurqU__ac_local_roles__q}qUadminq]qUOwnerqasU _bind_namesq(cShared.DC.Scripts.Bindings NameAssignments qoq}qU_asgnsq}q (Uname_containerq!hU name_subpathq"Utraverse_subpathq#U name_m_selfq$Uscriptq%U name_contextq&Ucontextq'usbU func_defaultsq(NU_codeq)TÚcsd„ZdS(Nc s´t}|tdƒdƒ}d}x||dro}|||dƒƒdƒdƒoD||dƒ|jo||dƒ|jo|d }nnq3W|SdS( Ns objectValuessFileisids startswithskuulajasainestudengi(s _getattr_s_getattrs containersmsloendursxs ainekirjenimisisikukirjenimi(s ainekirjenimisisikukirjenimis _getattr_s_getattrs containersmsloendursx((sScript (Python)sregistreerimisloendurs  ",(sregistreerimisloendur(sregistreerimisloendur((sScript (Python)ssq*U_bodyq+Uºm=container.objectValues('File') loendur=0 for x in m: if x.id().startswith('kuulaja'): if x.aine==ainekirjenimi and x.tudeng==isikukirjenimi: loendur=loendur+1 return loendur q,U Script_magicq-KUwarningsq.)Uerrorsq/)U Python_magicq0U*ë q1u. >£((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q UisikuLisamiseVormq Utitleq UUglobalsq }qUrawqUô
qU_varsq}qu. ?÷((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q Uavalehtq Utitleq UUglobalsq }qUrawqTO Lisa aine

Ained

Lisa isik

Isikud

qU_varsq}qu. Up((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts66141343.93qU__name__q U kuulaja12q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng3qhUaine2qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. Vp((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts66141413.85qU__name__q U kuulaja13q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng2qhUaine4qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. @û((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q U isikulehtq Utitleq UUglobalsq }qUrawqTQ

Ained

Registreeritud ained

qU_varsq}qu. A ((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (Utudengq Uaineq UREQUESTq U _getitem_q U_getitemqU _getattr_qU_getattrqUaineIDqU containerqUnrqUstrqUidqUcontextqUgetattrqUdocqtqU co_argcountqKubU_paramsqUtudeng, aine=(), REQUESTqUidqUkuulajaLisamiseSkriptqU__ac_local_roles__q}q Uadminq!]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_contextq.Ucontextq/U name_m_selfq0Uscriptq1usbU func_defaultsq2()tq3U_codeq4T@csfd„ZdS(Ncs©t}t}y&||dƒdƒ|f}Wn nXx\|drO}|tdƒ||ƒdjo dSn |tdƒddƒ}  dt | ƒ}  | djo | tdƒdd d ƒn|td ƒd| d ƒ|||t d ƒd ƒdƒ| ddddƒt t | ƒ}||dƒd|dƒ||dƒd|dƒ|||dƒdƒd|ƒqOWdS(Ns startswithsaineisregistreerimisloendurs Juba kirjass getPropertyskuulajasmanage_addPropertyisintsmanage_changePropertiessmanage_addProductsOFSPsmanage_addFilestitlessfilestudengsstringsRESPONSEsredirectsisikuleht?kirjenimi=(s _getitem_s_getitems _getattr_s_getattrsainesaineIDs containerstudengsnrsstrsidscontextsgetattrsdocsREQUEST(studengsainesREQUESTs _getitem_s_getitems _getattr_s_getattrsaineIDs containersnrsstrsidscontextsgetattrsdoc((sScript (Python)skuulajaLisamiseSkripts "  #+(skuulajaLisamiseSkript(skuulajaLisamiseSkript((sScript (Python)ssq5U_bodyq6TÊtry: aine.startswith("aine") aine=(aine,) except: pass for aineID in aine: if container.registreerimisloendur(aine, tudeng)>0: return "Juba kirjas" nr=container.getProperty('kuulaja', 0) #Kui omadust pole, siis väärtuseks 0 id='kuulaja' + str(nr) if nr==0: container.manage_addProperty('kuulaja', 1, 'int') else: container.manage_changeProperties(kuulaja=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('tudeng', tudeng, 'string') doc.manage_addProperty('aine', aineID, 'string') REQUEST.RESPONSE.redirect('isikuleht?kirjenimi='+tudeng) q7U Script_magicq8KUwarningsq9)Uerrorsq:)U Python_magicq;U*ë qsq+U_bodyq,Uvif hasattr(REQUEST, 'kuulaja'): container.manage_delObjects(REQUEST['kuulaja']) REQUEST.RESPONSE.redirect('avaleht') q-U Script_magicq.KUwarningsq/)Uerrorsq0)U Python_magicq1U*ë q2u. B €((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 containerqUnrqUstrqUidqUcontextqUgetattrqUdocqtqU 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_contextq-Ucontextq.U name_m_selfq/Uscriptq0usbU func_defaultsq1NU_codeq2Ticsd„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)ssq3U_bodyq4Tnr=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') q5U Script_magicq6KUwarningsq7)Uerrorsq8)U Python_magicq9U*ë q:u. CÄ((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (Uainenimiq UREQUESTq U _getitem_q U_getitemq U _getattr_qU_getattrqU containerqUnrqUstrqUidqUcontextqUgetattrqUdocqtqU co_argcountqKubU_paramsqUainenimi, REQUESTqUidqUaineLisamiseSkriptqU__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_contextq,Ucontextq-U name_m_selfq.Uscriptq/usbU func_defaultsq0NU_codeq1Tcsd„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ƒdS(Ns getPropertysaineismanage_addPropertyisintsmanage_changePropertiessmanage_addProductsOFSPsmanage_addFilestitlessfilesainenimisstringsRESPONSEsredirectsavaleht( s _getitem_s_getitems _getattr_s_getattrs containersnrsstrsidscontextsgetattrsdocsainenimisREQUEST( sainenimisREQUESTs _getitem_s_getitems _getattr_s_getattrs containersnrsstrsidscontextsgetattrsdoc((sScript (Python)saineLisamiseSkripts' #+(saineLisamiseSkript(saineLisamiseSkript((sScript (Python)ssq2U_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. Do((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts66122253.69qU__name__q Ukuulaja9q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng2qhUaine3qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. Eo((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts66122238.81qU__name__q Ukuulaja7q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng2qhUaine3qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. Fo((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts65523116.68qU__name__q Ukuulaja4q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng0qhUaine3qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. Go((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts65523124.86qU__name__q Ukuulaja5q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng1qhUaine2qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. Io((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts65522064.85qU__name__q Ukuulaja3q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng1qhUaine0qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. Jo((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts65520436.75qU__name__q Ukuulaja0q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng1qhUaine3qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. LL((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (U ainekirjenimiq U _getattr_q U_getattrq U containerq UmUtUxUgetattrqU tudengobjqtqU co_argcountqKubU_paramsqU ainekirjenimiqUidqUaineIsikuteLoeteluqU__ac_local_roles__q}qUadminq]qUOwnerqasU _bind_namesq(cShared.DC.Scripts.Bindings NameAssignments qoq}qU_asgnsq}q (Uname_containerq!U containerq"U name_subpathq#Utraverse_subpathq$U name_m_selfq%Uscriptq&U name_contextq'Ucontextq(usbU func_defaultsq)NU_codeq*Técsd„ZdS(Nc sÂt}|tdƒdƒ}g}xŠ|dr}}|||dƒƒdƒdƒoR||dƒ|jo5tt||dƒƒ}||d ƒ|ƒnnq3W|SdS( Ns objectValuessFileisids startswithskuulajasainestudengsappend( s _getattr_s_getattrs containersmstsxs ainekirjenimisgetattrs tudengobj( s ainekirjenimis _getattr_s_getattrs containersmstsxsgetattrs tudengobj((sScript (Python)saineIsikuteLoetelus (saineIsikuteLoetelu(saineIsikuteLoetelu((sScript (Python)ssq+U_bodyq,U¾m=container.objectValues('File') t=[] for x in m: if x.id().startswith('kuulaja'): if x.aine==ainekirjenimi: tudengobj=getattr(container, x.tudeng) t.append(tudengobj) return t q-U Script_magicq.KUwarningsq/)Uerrorsq0)U Python_magicq1U*ë q2u. Pt((U OFS.ImageqUFileqtqNt.}q(UsizeqKU perekonnanimiqUSusiqUdataqUU_EtagSupport__etagq U ts65516463.22q U__name__q Utudeng3q U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hUeesnimiqhhu}q(hhhhuthUtext/x-unknown-content-typeqU__ac_local_roles__q}qUadminq]qUOwnerqashUSiimqhUU preconditionqUu. Nn((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts65523133.7qU__name__q Ukuulaja6q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng3qhUaine3qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. R½((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (Utudengikirjenimiq U _getattr_q U_getattrq U containerq UmUtUxtqU co_argcountqKubU_paramsqUtudengikirjenimiqUidqUisikuKuulamisteLoeteluqU__ac_local_roles__q}qUadminq]qUOwnerqasU _bind_namesq(cShared.DC.Scripts.Bindings NameAssignments qoq}qU_asgnsq}q(Uname_containerqh U name_subpathq Utraverse_subpathq!U name_contextq"Ucontextq#U name_m_selfq$Uscriptq%usbU func_defaultsq&NU_codeq'T¡csd„ZdS(Nc s§t}|tdƒdƒ}g}xo|drb}|||dƒƒdƒdƒo7||dƒ|jo||dƒ|ƒnnq3W|SdS( Ns objectValuessFileisids startswithskuulajastudengsappend(s _getattr_s_getattrs containersmstsxstudengikirjenimi(studengikirjenimis _getattr_s_getattrs containersmstsx((sScript (Python)sisikuKuulamisteLoetelus  (sisikuKuulamisteLoetelu(sisikuKuulamisteLoetelu((sScript (Python)ssq(U_bodyq)Um=container.objectValues('File') t=[] for x in m: if x.id().startswith('kuulaja'): if x.tudeng==tudengikirjenimi: t.append(x) return t q*U Script_magicq+KUwarningsq,)Uerrorsq-)U Python_magicq.U*ë q/u. Wp((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts66141421.15qU__name__q U kuulaja14q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng2qhUaine0qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. Oo((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts66122241.72qU__name__q Ukuulaja8q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng2qhUaine2qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. Xp((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUU_EtagSupport__etagqU ts66141421.15qU__name__q U kuulaja15q U _propertiesq (}q (Uidq UtitleqUtypeqUstringqu}q(h U content_typeqhhu}q(h Utudengqhhu}q(h UaineqhhuthUtext/x-unknown-content-typeqhUtudeng2qhUaine6qU__ac_local_roles__q}qUadminq]qUOwnerqashUU preconditionqUu. Mx((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. Qw((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.ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ