TAGASI LISAMA
qU_varsq}qu. t((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature
FuncCode
qoq}q(Uco_varnamesq (Utunnusq
UsisuqU _getattr_qU_getattrq
U containerqUmUtUxUgetattrqtUco_argcountqKubU_paramsqUtunnus, sisuqUidqUotsimisSkriptYlesandedqU__ac_local_roles__q}qUadminq]qUOwnerqasU_bind_namesq(cShared.DC.Scripts.Bindings
NameAssignments
qoq}qU_asgnsq}q(Uname_containerq U containerq!Uname_subpathq"Utraverse_subpathq#Uname_contextq$Ucontextq%Uname_m_selfq&Uscriptq'usbU
func_defaultsq(NU_codeq)Te c s d Z d S( Nc s t } | t d } g } xO | d rB } | t | | d | o | | d | n q0 W | Sd S( Ns leidmisSkriptAinedi s
startswiths append( s _getattr_s _getattrs containers ms ts xs getattrs tunnuss sisu( s tunnuss sisus _getattr_s _getattrs containers ms ts xs getattr( ( s Script (Python)s otsimisSkriptAined s
"( s otsimisSkriptAined( s otsimisSkriptAined( ( s Script (Python)s s q*U_bodyq+Uum=container.leidmisSkriptAined()
t=[]
for x in m:
if getattr(x, tunnus).startswith(sisu):
t.append(x)
return t
q,UScript_magicq-KUwarningsq.)Uerrorsq/)UPython_magicq0U*ė
q1u.
ų }((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature
FuncCode
qoq}q(Uco_varnamesq (UylIDq
U _getattr_qU_getattrqU containerq
UmUtUxtUco_argcountqKubU_paramsqUylIDqUidqUleidmisSkriptYlesandeIDqU__ac_local_roles__q}qUadminq]qUOwnerqasU_bind_namesq(cShared.DC.Scripts.Bindings
NameAssignments
qoq}qU_asgnsq}q(Uname_containerqU containerqUname_subpathq Utraverse_subpathq!Uname_m_selfq"Uscriptq#Uname_contextq$Ucontextq%usbU
func_defaultsq&NU_codeq'T c s d Z d S( Nc sŖ t } | t d d } g } xr | d re } | | | d d d o: | | d | j o | | d | n n q3 W | Sd S( Ns objectValuess Filei s ids
startswiths yls append( s _getattr_s _getattrs containers ms ts xs ylID( s ylIDs _getattr_s _getattrs containers ms ts x( ( s Script (Python)s leidmisSkriptYlesandeID s ( s leidmisSkriptYlesandeID( s leidmisSkriptYlesandeID( ( s Script (Python)s s q(U_bodyq)Um=container.objectValues('File')
t=[]
for x in m:
if x.id().startswith('yl'):
if x.id()==ylID:
t.append(x)
return t
q*UScript_magicq+KUwarningsq,)Uerrorsq-)UPython_magicq.U*ė
q/u. ]((UOFS.DTMLMethodqU
DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q
UkustutuslehtMarksonadqUtitleqU Uglobalsq
}qUrawqUŖ
Kustutasid märksõna!
TAGASI
qU_varsq}qu.
ó ((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature
FuncCode
qoq}q(Uco_varnamesq (Utunnusq
UsisuqU _getattr_qU_getattrq
U containerqUmUtUxUgetattrqtUco_argcountqKubU_paramsqUtunnus, sisuqUidqUotsimisSkriptMarksonadqU__ac_local_roles__q}qUadminq]qUOwnerqasU_bind_namesq(cShared.DC.Scripts.Bindings
NameAssignments
qoq}qU_asgnsq}q(Uname_containerq U containerq!Uname_subpathq"Utraverse_subpathq#Uname_m_selfq$Uscriptq%Uname_contextq&Ucontextq'usbU
func_defaultsq(NU_codeq)Tt c s d Z d S( Nc s t } | t d d } g } xO | d rB } | t | | d | o | | d | n q3 W | Sd S( Ns objectValuess Filei s
startswiths append( s _getattr_s _getattrs containers ms ts xs getattrs tunnuss sisu( s tunnuss sisus _getattr_s _getattrs containers ms ts xs getattr( ( s Script (Python)s otsimisSkriptTudengid s
"( s otsimisSkriptTudengid( s otsimisSkriptTudengid( ( s Script (Python)s s q*U_bodyq+Uum=container.objectValues('File')
t=[]
for x in m:
if getattr(x, tunnus).startswith(sisu):
t.append(x)
return t
q,UScript_magicq-KUwarningsq.)Uerrorsq/)UPython_magicq0U*ė
q1u. ś((UOFS.DTMLMethodqU
DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q
Utekst ylesandeleqUtitleqU Uglobalsq
}qUrawqTI
Ylesannete kogu
* Veebilehe kaudu salvestatakse tabelisse tulpadena nii ülesanded kui nende pealkirjad.
Andmeid on väljastamisel võimlik sorteerida nii pealkirja kui sisu järgi.
*Eraldi tabli(te)s on võimalikud märksõnad nii teemad ekui raskusastmete kohta.
Kasutaja saab valida, millised märksõnad konkreetse ülesande juurde kuuluvad.
On võimalik otisda nii pealkirja, kui märksõna järgi.
* Kord sisestatud andmeid ja seoseid on võimalik muuta.
Samuti saab lisada märksõnu.
qU_varsq}qu. $ O((U OFS.ImageqUFileqtqNt.}q(UsizeqK U_propertiesq(}q(UidqUtitleq Utypeq
Ustringqu}q(hUcontent_typeq
h
hu}q(hUmnimiqh
huthUkirjqUdataqU U_EtagSupport__etagqU
ts73472497.53qU__name__qU
marksona28qh U h
Utext/x-unknown-content-typeqUpreconditionqU U__ac_local_roles__q}qUadminq]qUOwnerqasu. ¹((UOFS.DTMLMethodqU
DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q
UvaatamislehtMarksonadqUtitleqU Uglobalsq
}qUrawqT
qU_varsq}qu. .((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature
FuncCode
qoq}q(Uco_varnamesq (U _getattr_q
U_getattrqU containerqUmUtUxtq
Uco_argcountqK ubU_paramsqU UidqUleidmisSkriptMarksonadqU__ac_local_roles__q}qUadminq]qUOwnerqasU_bind_namesq(cShared.DC.Scripts.Bindings
NameAssignments
qoq}qU_asgnsq}q(Uname_containerqU containerqUname_subpathqUtraverse_subpathq Uname_m_selfq!Uscriptq"Uname_contextq#Ucontextq$usbU
func_defaultsq%NU_codeq&TN c s d Z d S( Nc s t } | t d d } g } xR | d rE } | | | d d d o | | d | n q3 W | Sd S( Ns objectValuess Filei s ids
startswiths marksonas append( s _getattr_s _getattrs containers ms ts x( s _getattr_s _getattrs containers ms ts x( ( s Script (Python)s leidmisSkriptMarksonad s
"( s leidmisSkriptMarksonad( s leidmisSkriptMarksonad( ( s Script (Python)s s q'U_bodyq(Uom=container.objectValues('File')
t=[]
for x in m:
if x.id().startswith('marksona'):
t.append(x)
return t
q)UScript_magicq*KUwarningsq+)Uerrorsq,)UPython_magicq-U*ė
q.u. # N((U OFS.ImageqUFileqtqNt.}q(UsizeqK U_propertiesq(}q(UidqUtitleq Utypeq
Ustringqu}q(hUcontent_typeq
h
hu}q(hUmnimiqh
huthUbioqUdataqU U_EtagSupport__etagqU
ts73472487.48qU__name__qU
marksona27qh U h
Utext/x-unknown-content-typeqUpreconditionqU U__ac_local_roles__q}qUadminq]qUOwnerqasu. * Ö((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature
FuncCode
qoq}q(Uco_varnamesq (UmIDq
U _getattr_qU_getattrqU containerq
UmUtUxUgetattrqtUco_argcountqKubU_paramsqUmIDqUidqUleidmisSkriptMarksonaIDqU__ac_local_roles__q}qUadminq]qUOwnerqasU_bind_namesq(cShared.DC.Scripts.Bindings
NameAssignments
qoq}qU_asgnsq}q(Uname_containerqU containerq Uname_subpathq!Utraverse_subpathq"Uname_contextq#Ucontextq$Uname_m_selfq%Uscriptq&usbU
func_defaultsq'NU_codeq(T· c s d Z d S( Nc s¹ t } | t d d } g } x | d rt } | | | d d d oI | | d | j o, | | d t t | | d n n q3 W | Sd S(
Ns objectValuess Filei s ids
startswiths seoss mIDs appends ylID( s _getattr_s _getattrs containers ms ts xs mIDs getattr( s mIDs _getattr_s _getattrs containers ms ts xs getattr( ( s Script (Python)s leidmisSkriptMarksonaID s 1( s leidmisSkriptMarksonaID( s leidmisSkriptMarksonaID( ( s Script (Python)s s q)U_bodyq*Um=container.objectValues('File')
t=[]
for x in m:
if x.id().startswith('seos'):
if x.mID==mID:
t.append(getattr(container, x.ylID))
return t
q+UScript_magicq,KUwarningsq-)Uerrorsq.)UPython_magicq/U*ė
q0u.
ņ Ø((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature
FuncCode
qoq}q(Uco_varnamesq (Umnimiq
U _getitem_qU_getitemqU _getattr_q
U_getattrqU containerqUnrqUstrqUidqUcontextqUgetattrqUdocqtqUco_argcountqKubU_paramsqUmnimiqUidqUlisamisSkriptMarksonadqU__ac_local_roles__q}qUadminq]qUOwnerq asU_bind_namesq!(cShared.DC.Scripts.Bindings
NameAssignments
q"oq#}q$U_asgnsq%}q&(Uname_containerq'U containerq(Uname_subpathq)Utraverse_subpathq*Uname_m_selfq+Uscriptq,Uname_contextq-Ucontextq.usbU
func_defaultsq/NU_codeq0TĢ c s d Z d S( Nc
sš t } t } | t d d d } d t | } | d j o | t d d d d n | t d d | d | | |
t d d
d | d d
d d
t t | } | | d d | d d S( Ns getPropertys loenduri s marksonas manage_addPropertyi s ints manage_changePropertiess manage_addProducts OFSPs manage_addFiles titles s files mnimis string( s _getitem_s _getitems _getattr_s _getattrs containers nrs strs ids contexts getattrs docs mnimi( s mnimis _getitem_s _getitems _getattr_s _getattrs containers nrs strs ids contexts getattrs doc( ( s Script (Python)s lisamisSkriptMarksonad s #+( s lisamisSkriptMarksonad( s lisamisSkriptMarksonad( ( s Script (Python)s s q1Uerrorsq2)U_bodyq3Tł # Faili nime loomine,
nr=container.getProperty('loendur', 0) #Kui omadust pole, siis väärtuseks 0
id='marksona' + 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('mnimi', mnimi, 'string')
q4UScript_magicq5KUwarningsq6)U_proxy_rolesq7(UManagerq8tq9UPython_magicq:U*ė
q;u.
ž µ((UOFS.DTMLMethodqU
DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q
UlisamisvormYlesandedqUtitleqU Uglobalsq
}qUrawqT
Ylesanete lisamine
Lisa ylesanne!
Ylesande nimi
Ylesande text
TAGASI
qU_varsq}qu. ]((UOFS.DTMLMethodqU
DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q
UotsinguvormMarksonadqUtitleqU Uglobalsq
}qUrawqTØ
Märksõna otsing
TAGASIqU_varsq}qu.
ü ģ((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature
FuncCode
qoq}q(Uco_varnamesq (UylIDq
UmIDqU _getitem_qU_getitemq
U _getattr_qU_getattrqU containerqUnrqUstrqUidqUcontextqUgetattrqUdocqtqUco_argcountqKubU_paramsqU ylID, mIDqUidqUregistreerimisSkriptqU__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)Uname_subpathq*Utraverse_subpathq+Uname_m_selfq,Uscriptq-Uname_contextq.Ucontextq/usbU
func_defaultsq0NU_codeq1Tõ c s d Z d S( Nc
s t } t } | t d d d } d t | } | d j o | t d d d d n | t d d | d | | |
t d d
d | d d
d d
t t | } | | d d | d | | d d | d d S( Ns getPropertys loenduri s seoss manage_addPropertyi s ints manage_changePropertiess manage_addProducts OFSPs manage_addFiles titles s files ylIDs strings mID(
s _getitem_s _getitems _getattr_s _getattrs containers nrs strs ids contexts getattrs docs ylIDs mID(
s ylIDs mIDs _getitem_s _getitems _getattr_s _getattrs containers nrs strs ids contexts getattrs doc( ( s Script (Python)s registreerimisSkript s #+( s registreerimisSkript( s registreerimisSkript( ( s Script (Python)s s q2U_bodyq3T+ # Registreerimise nime loomine,
nr=container.getProperty('loendur', 0) #Kui omadust pole, siis väärtuseks 0
id='seos' + 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('ylID', ylID, 'string')
doc.manage_addProperty('mID', mID, 'string')
q4UScript_magicq5KUwarningsq6)Uerrorsq7)UPython_magicq8U*ė
q9u. ) l((U OFS.ImageqUFileqtqNt.}q(UsizeqK UdataqU U_EtagSupport__etagqU
ts73472591.51qU__name__q Useos33q
U_propertiesq(}q(Uidq
UtitleqUtypeqUstringqu}q(h
Ucontent_typeqhhu}q(h
UylIDqhhu}q(h
UmIDqhhuthUtext/x-unknown-content-typeqhUyl31qU__ac_local_roles__q}qUadminq]qUOwnerqashU
marksona28qhU UpreconditionqU u. ( l((U OFS.ImageqUFileqtqNt.}q(UsizeqK UdataqU U_EtagSupport__etagqU
ts73472586.13qU__name__q Useos32q
U_propertiesq(}q(Uidq
UtitleqUtypeqUstringqu}q(h
Ucontent_typeqhhu}q(h
UylIDqhhu}q(h
UmIDqhhuthUtext/x-unknown-content-typeqhUyl30qU__ac_local_roles__q}qUadminq]qUOwnerqashU
marksona29qhU UpreconditionqU u. X((UOFS.DTMLMethodqU
DTMLMethodqtqNt.}q(U__ac_local_roles__q}qUadminq]qUOwnerq asU__name__q
U seoseVormqUtitleqU Uglobalsq
}qUrawqT®
Ylesande ja märksõna seose loomine
qU_varsq}qu. ' ((U OFS.ImageqUFileqtqNt.}q(UsizeqK UdataqU U_EtagSupport__etagqUts73472574.1qU__name__q Uyl31q
U_propertiesq(}q(Uidq
UtitleqUtypeqUstringqu}q(h
Ucontent_typeqhhu}q(h
Uynimiqhhu}q(h
UytextqhhuthUtext/x-unknown-content-typeqhUFaustqU__ac_local_roles__q}qUadminq]qUOwnerqashU UpreconditionqU hU%Mis oli kuradi nimi Geathe "Faustis"?qu. &