ZEXP Îr((U OFS.FolderqUFolderqtqNt.}q(UidqU teadetetahvelqU__ac_local_roles__q}qUadminq ]q UOwnerq asUteade3q (U*q (U OFS.ImageqUFileqttQUteade0q(U'q(hUFileqttQU_objectsq(}q(U meta_typeqUScript (Python)qUidqU lisamisSkriptqu}q(U meta_typeqU DTML MethodqUidqU lisamislehtqu}q(hhhU lisamisvormqu}q (hhhUavalehtq!u}q"(U meta_typeq#UScript (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}q0(U meta_typeq1UScript (Python)q2Uidq3UkustutusSkriptq4u}q5(U meta_typeq6U DTML Methodq7Uidq8U otsinguvormq9u}q:(U meta_typeq;UScript (Python)qu}q?(U meta_typeq@UFileqAUidqBUteade0qCu}qD(h@hAhBUteade1qEu}qF(U meta_typeqGUFileqHUidqIUteade2qJu}qK(hGhHhIUteade3qLuth+(U ÚqM(UOFS.DTMLMethodqNU DTMLMethodqOttQh(U ÐqP(hNU DTMLMethodqQttQUteade1qR(U(qS(hUFileqTttQh-(U ÑqU(hNU DTMLMethodqVttQU otsiKirjedqW(U ÒqX(U#Products.PythonScripts.PythonScriptqYU PythonScriptqZttQUteade2q[(U)q\(hUFileq]ttQUkustutusSkriptq^(U Óq_(hYU PythonScriptq`ttQh9(U Ôqa(hNU DTMLMethodqbttQUtitleqcUh(U Öqd(hYU PythonScriptqettQh!(U ×qf(hNU DTMLMethodqgttQh&(U Øqh(hYU PythonScriptqittQh/(U Ùqj(hNU DTMLMethodqkttQh(U Õql(hNU DTMLMethodqmttQu.*±((U OFS.ImageqUFileqtqNt.}q(UsizeqKUaegqU11.12.2003 12:1qUdataqUU_EtagSupport__etagq U ts71136906.0q U__name__q Uteade3q U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hUpealkiriqhhu}q(hUteadeqhhu}q(hUnimiqhhu}q(hhhhuthUtext/x-unknown-content-typeqU__ac_local_roles__q}qUadminq]q UOwnerq!ashUasasasq"hUasasq#hUU preconditionq$UhUasasq%u.'((U OFS.ImageqUFileqtqNt.}q(UsizeqKUaegqU11.12.2003 11:59qUdataqUU_EtagSupport__etagq U ts71136773.68q U__name__q Uteade0q U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hUpealkiriqhhu}q(hUteadeqhhu}q(hUnimiqhhu}q(hhhhuthUtext/x-unknown-content-typeqU__ac_local_roles__q}qUadminq]q UOwnerq!ashT]Anonymous User - Nov. 12, 2003 8:18 pm: As a Zope User, imaging my surprise to see this page referenced in the W3C Validator service's tip of the day for further information on how to implement a page redirect instead of a page refresh (see http://www.w3.org/QA/Tips/reback ). What a kudo from the industry! Imagine my disappointment at landing on this mess of bickering commentary as well as no discussion or TOC for finding syntax for redirection. I think a lot of people following the link and unaware of Zope would click 'back' pretty quickly with a lees than positive impression. FWIW, Dukeq"hUTere!!!q#hUU preconditionq$UhUjkq%u. ÚV((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õ Teate lisamine

Lisa oma teade:

Teate pealkiri:
Teade:
Sinu nimi:
.. :" />
qU_varsq}qu.(‚((U OFS.ImageqUFileqtqNt.}q(UsizeqKUaegqU11.12.2003 11:59qUdataqUU_EtagSupport__etagq U ts71136813.18q U__name__q Uteade1q U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hUpealkiriqhhu}q(hUteadeqhhu}q(hUnimiqhhu}q(hhhhuthUtext/x-unknown-content-typeqU__ac_local_roles__q}qUadminq]q UOwnerq!ashUÆflow - Dec. 3, 2003 12:40 am: notauthenticat edq"hUSiin on koodinäideq#hUU preconditionq$UhUJannoq%u. Ñ™((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q U muutmisvormq Utitleq UUglobalsq }qUrawqTí Muutmine
Teate pealkiri: " size="53" style="border: 1px solid silver; background-color: #FFFFF1;" />
Teade:
Sinu nimi: " style="border: 1px solid silver; background-color: #FFFFF1;"/>
qU_varsq}qu. ÒM((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 containerqUmUtUxUgetattrqtqU 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_magicq0U*ë q1u.)s((U OFS.ImageqUFileqtqNt.}q(UsizeqKUaegqU11.12.2003 12:0qUdataqUU_EtagSupport__etagq U ts71136899.46q U__name__q Uteade2q U _propertiesq (}q(UidqUtitleqUtypeqUstringqu}q(hU content_typeqhhu}q(hhhhu}q(hUpealkiriqhhu}q(hUteadeqhhu}q(hUnimiqhhuthUtext/x-unknown-content-typeqU__ac_local_roles__q}qUadminq]q UOwnerq!ashU¼Riigikogu liige Tarmo Leinatamm esineb tuleval nädalavahetusel Tartu kaubakeskuses koos Kreisiraadio kamraadide Peeter Oja ja Hannes Võrnoga, leidmata selles ise midagi taunimisväärset. q"hU UUS PEALKIRIq#hUU preconditionq$UhUkriiskaq%u. Ó\((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 otsinguvormq Utitleq UUglobalsq }qUrawqTo

Otsing:

Otsitava teate lisaja nimi:
LisajaPealkiri
Tagasi qU_varsq}qu. Ö Ú((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (Upealkiriq Uteadeq Unimiq Uaegq U _getitem_qU_getitemqU _getattr_qU_getattrqUstrqUlenqUcontextqUidqUgetattrqUdocqtqU co_argcountqKubU_paramsqUpealkiri, teade, nimi, aegqUidqU lisamisSkriptqU__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/Ucontextq0usbU func_defaultsq1NU_codeq2TÜcsd„ZdS(s  Sisestuse salvestus. Töötamiseks peab olema antud skriptile õigus faile luua. Lihtsaim (kuigi mitte turvalisim) tee - proxy (volinik) menüüst manager-õigused Parameetrite loetelus on kirjas skriptile salvestamiseks antavad andmed: praegusel juhul pealkiri, autor. csøt}t}ddtt|tdƒdƒƒƒ} ||| tdƒdƒdƒ| ddd dƒ tt| ƒ} || d ƒd |d ƒ|| d ƒd|d ƒ|| d ƒd |d ƒ|| d ƒd|d ƒdS(s  Sisestuse salvestus. Töötamiseks peab olema antud skriptile õigus faile luua. Lihtsaim (kuigi mitte turvalisim) tee - proxy (volinik) menüüst manager-õigused Parameetrite loetelus on kirjas skriptile salvestamiseks antavad andmed: praegusel juhul pealkiri, autor. steades objectValuessFilesmanage_addProductsOFSPsmanage_addFilestitlessfilesmanage_addPropertyspealkirisstringsnimisaegN(s _getitem_s_getitems _getattr_s_getattrsstrslenscontextsidsgetattrsdocspealkiristeadesnimisaeg(spealkiristeadesnimisaegs _getitem_s_getitems _getattr_s_getattrsstrslenscontextsidsgetattrsdoc((sScript (Python)s lisamisSkripts1+N(s lisamisSkript(s lisamisSkript((sScript (Python)ssq3Uerrorsq4)U_bodyq5T""" Sisestuse salvestus. Töötamiseks peab olema antud skriptile õigus faile luua. Lihtsaim (kuigi mitte turvalisim) tee - proxy (volinik) menüüst manager-õigused Parameetrite loetelus on kirjas skriptile salvestamiseks antavad andmed: praegusel juhul pealkiri, autor. """ # Faili nime loomine, loetakse kokku leiduvate File-tüüpi objektide hulk id='teade' + str(len(context.objectValues('File'))) # 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('pealkiri', pealkiri, 'string') doc.manage_addProperty('teade', teade, 'string') doc.manage_addProperty('nimi', nimi, 'string') doc.manage_addProperty('aeg', aeg, 'string') q6U Script_magicq7KUwarningsq8)U _proxy_rolesq9(UManagerq:tq;U Python_magicq

Teadete tabel

TeadeLisamise aeg
LisaOtsi
qU_varsq}qu. ØÞ((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (U kirjenimiq Upealkiriq Uteadeq Unimiq U _getattr_qU_getattrqUgetattrqUcontextqUdocqtqU co_argcountqKubU_paramsqU kirjenimi ,pealkiri, teade, nimiqUidqU 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_m_selfq(Uscriptq)U name_contextq*Ucontextq+usbU func_defaultsq,NU_codeq-TÌcsd„ZdS(s Muutmine c s™t}dtt|ƒ}||dƒdddfƒ||dƒd|dƒ| |dƒd|dƒ| |dƒd|dƒdS(s Muutmine smanage_delPropertiesspealkiristeadesnimismanage_addPropertysstringN( s _getattr_s_getattrsgetattrscontexts kirjenimisdocspealkiristeadesnimi( s kirjenimispealkiristeadesnimis _getattr_s_getattrsgetattrscontextsdoc((sScript (Python)s muutmisSkripts N(s muutmisSkript(s muutmisSkript((sScript (Python)ssq.Uerrorsq/)U_bodyq0T5""" Muutmine """ #Küsitakse ligipääs kirjele doc=getattr(context, kirjenimi) # Andmed atribuutideks doc.manage_delProperties(('pealkiri', 'teade', 'nimi')) doc.manage_addProperty('pealkiri', pealkiri, 'string') doc.manage_addProperty('teade', teade, 'string') doc.manage_addProperty('nimi', nimi, 'string') q1U Script_magicq2KUwarningsq3)U _proxy_rolesq4(UManagerq5tq6U Python_magicq7U*ë q8u. Ù((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q U vaatamislehtq Utitleq UUglobalsq }qUrawqTm Teade
Lisas: | Lisatud:
<< tagasiMuuda >>
qU_varsq}qu. ÕF((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.ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ