ZEXP y((U OFS.FolderqUFolderqtqNt.}q(UidqUraamat3qU__ac_local_roles__q}qUadminq ]q UOwnerq asU lisamisSkriptq (U ¦q (U#Products.PythonScripts.PythonScriptqU PythonScriptqttQU_objectsq(}q(U meta_typeqUScript (Python)qUidqh u}q(U meta_typeqU DTML MethodqUidqU lisamislehtqu}q(hhhU lisamisvormqu}q(hhhUavalehtqu}q(U meta_typeqUScript (Python)q Uidq!U muutmisSkriptq"u}q#(U meta_typeq$U DTML Methodq%Uidq&U muutmislehtq'u}q((h$h%h&U muutmisvormq)u}q*(h$h%h&U vaatamislehtq+u}q,(U meta_typeq-UScript (Python)q.Uidq/UkustutusSkriptq0u}q1(U meta_typeq2UScript (Python)q3Uidq4U otsiKirjedq5u}q6(U meta_typeq7U DTML Methodq8Uidq9U otsinguvormq:utq;h'(U ¤q<(UOFS.DTMLMethodq=U DTMLMethodq>ttQh(U ”q?(h=U DTMLMethodq@ttQh)(U ¢qA(h=U DTMLMethodqBttQh5(U ¹qC(hU PythonScriptqDttQh+(U £qE(h=U DTMLMethodqFttQU _propertiesqG(}qH(UidqIUtitleqJUmodeqKUwUtypeqLUstringqMutqNh:(U ŗqO(h=U DTMLMethodqPttQUtitleqQUh"(U ØqR(hU PythonScriptqSttQh(U §qT(h=U DTMLMethodqUttQh0(U ¬qV(hU PythonScriptqWttQh(U ©qX(h=U DTMLMethodqYttQu. ¦ ’((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (Upealkiriq Uautorq U _getitem_q U_getitemq U _getattr_qU_getattrqU containerqUnrqUstrqUidqUcontextqUgetattrqUdocqtU co_argcountqKubU_paramsqUpealkiri, autorqUidqU lisamisSkriptqU__ac_local_roles__q}qUadminq]qUOwnerq 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_defaultsq/NU_codeq0TFcsd„ZdS(s Parameetrid: pealkiri, autor. c st}t}d|tdƒddƒ}dt|ƒ} |djo |tdƒdddƒn| tdƒd|dƒ||| td ƒd ƒd ƒ| d d dd ƒt t| ƒ} || dƒd|dƒ|| dƒd|dƒdS(s Parameetrid: pealkiri, autor. s getPropertysloenduriskirjesmanage_addPropertyisintsmanage_changePropertiessmanage_addProductsOFSPsmanage_addFilestitlessfilesautorsstringspealkiriN( s _getitem_s_getitems _getattr_s_getattrs containersnrsstrsidscontextsgetattrsdocsautorspealkiri( spealkirisautors _getitem_s_getitems _getattr_s_getattrs containersnrsstrsidscontextsgetattrsdoc((sScript (Python)s lisamisSkripts #+N(s lisamisSkript(s lisamisSkript((sScript (Python)ssq1Uerrorsq2)U_bodyq3T^""" Parameetrid: pealkiri, autor. """ # Faili nime loomine. Küsitakse kataloogi küljes olevat omadust "loendur" nr=container.getProperty('loendur', 0) #Kui omadust pole, siis väärtuseks 0 id='kirje' + str(nr) if nr==0: container.manage_addProperty('loendur', 1, 'int') else: container.manage_changeProperties(loendur=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('autor', autor, 'string') doc.manage_addProperty('pealkiri', pealkiri, 'string') q4U Script_magicq5KUwarningsq6)U _proxy_rolesq7(UManagerq8tq9U Python_magicq:U*ė q;u. ¤p((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q U muutmislehtq Utitleq UUglobalsq }qUrawqUĒ

Muudatused salvestatud.

Tagasi.

qU_varsq}qu. ”Ö((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q U lisamisvormq Utitleq UUglobalsq }qUrawqT*

Lisa raamat.

Pealkiri:
Autor:

qU_varsq}qu. ¢((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q U muutmisvormq Utitleq UUglobalsq }qUrawqTć
Pealkiri: " />
Autor: " />
qU_varsq}qu. ¹K((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (Utunnusq Usisuq U _getattr_q U_getattrq U containerqUmUtUxUgetattrqtU co_argcountqKubU_paramsqU tunnus, sisuqUidqU otsiKirjedqU__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(TScsd„ZdS(Nc s‡t}|tdƒdƒ}g}xO|drB}|t||ƒdƒ|ƒo||dƒ|ƒnq3W|SdS(Ns objectValuessFileis startswithsappend( s _getattr_s_getattrs containersmstsxsgetattrstunnusssisu( stunnusssisus _getattr_s_getattrs containersmstsxsgetattr((sScript (Python)s otsiKirjeds  "(s otsiKirjed(s otsiKirjed((sScript (Python)ssq)U_bodyq*Uum=container.objectValues('File') t=[] for x in m: if getattr(x, tunnus).startswith(sisu): t.append(x) return t q+U Script_magicq,KUwarningsq-)Uerrorsq.)U Python_magicq/U*ė q0u. £”((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q U vaatamislehtq Utitleq UUglobalsq }qUrawqU÷ Raamat nimega . Muuda qU_varsq}qu. ŗZ((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q U otsinguvormq Utitleq UUglobalsq }qUrawqT®

Raamatute hoidla

Otsitava autori nimi:
Tagasi qU_varsq}qu. ØZ((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (U kirjenimiq Upealkiriq Uautorq U _getattr_q U_getattrqUgetattrqUcontextqUdocqtqU co_argcountqKubU_paramsqUkirjenimi, pealkiri, autorqUidqU muutmisSkriptqU__ac_local_roles__q}qUadminq]qUOwnerqasU _bind_namesq(cShared.DC.Scripts.Bindings NameAssignments qoq}q U_asgnsq!}q"(Uname_containerq#U containerq$U name_subpathq%Utraverse_subpathq&U name_contextq'Ucontextq(U name_m_selfq)Uscriptq*usbU func_defaultsq+NU_codeq,Tcsd„ZdS(s Muutmine cszt}dtt|ƒ}||dƒddfƒ||dƒd|dƒ| |dƒd|dƒdS(s Muutmine smanage_delPropertiessautorspealkirismanage_addPropertysstringN(s _getattr_s_getattrsgetattrscontexts kirjenimisdocsautorspealkiri(s kirjenimispealkirisautors _getattr_s_getattrsgetattrscontextsdoc((sScript (Python)s muutmisSkripts N(s muutmisSkript(s muutmisSkript((sScript (Python)ssq-U _proxy_rolesq.(UManagerq/tq0U_bodyq1Už""" Muutmine """ #Küsitakse ligipääs kirjele doc=getattr(context, kirjenimi) # Andmed atribuutideks doc.manage_delProperties(('autor', 'pealkiri')) doc.manage_addProperty('autor', autor, 'string') doc.manage_addProperty('pealkiri', pealkiri, 'string') q2U Script_magicq3KUwarningsq4)Uerrorsq5)U Python_magicq6U*ė q7u. §Ł((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q Uavalehtq Utitleq UUglobalsq }qUrawqT1

Raamatute hoidla

Lisa

Otsi

qU_varsq}qu. ¬\((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (UREQUESTq U _getitem_q U_getitemq U _getattr_q U_getattrqUhasattrqU containerqtqU co_argcountqKubU_paramsqUREQUESTqUidqUkustutusSkriptqU__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+TJcsd„ZdS(Ncset}t}t|dƒo#|tdƒ||dƒƒn|||dƒdƒdƒdS(Ns kirjenimismanage_delObjectssRESPONSEsredirectsavaleht(s _getitem_s_getitems _getattr_s_getattrshasattrsREQUESTs container(sREQUESTs _getitem_s_getitems _getattr_s_getattrshasattrs container((sScript (Python)skustutusSkripts"&(skustutusSkript(skustutusSkript((sScript (Python)ssq,U_bodyq-Uzif hasattr(REQUEST, 'kirjenimi'): container.manage_delObjects(REQUEST['kirjenimi']) REQUEST.RESPONSE.redirect('avaleht') q.U Script_magicq/KUwarningsq0)Uerrorsq1)U Python_magicq2U*ė q3u. ©]((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q U lisamislehtq Utitleq UUglobalsq }qUrawqU“

Tänan lisamast!

Tagasi.

qU_varsq}qu.’’’’’’’’’’’’’’’’