File:  [Repository] / OSAS / OSA_system / Attic / OSAS_helpers.pyc
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Fri Jan 9 12:47:04 2004 UTC (20 years, 5 months ago) by dwinter
Branches: MAIN
CVS tags: HEAD
bug in hasindex fixed

-ķ
µ‡ž?csRdZdkZdkZdkZd„Zeed„ZdS(s some helpfull methods NcsXd}	x;|D	]0}|i|ijo||i}nqW
|SdS(Ns(srcsnodelistsnodesnodeTypes	TEXT_NODEsdata(snodelistsnodesrc((sJ/usr/local/mpiwg/Zope_devel/lib/python/Products/OSA_system/OSAS_helpers.pysgetTexts	
	csTtii|dƒo3t|dƒ}|iƒ}|iƒn
d}ti	i
i|ƒ}	|	idƒd}|ofy |i|ƒd}WnB!#|	i|ƒ}$|i|ƒ%|i|ƒd}nXn*|djoŅ+xČ|iƒD+]·}-|i|ƒ}
/|
o50y1|i|
dƒiƒWn
23nXn5|	itidd|ƒƒ}6|	i||idƒƒ}7|i|ƒ8|i|ƒqWn;|i|ƒ}
=|
o>|i|
dƒiƒn@|	i|ƒ}B|o8Cx.|iƒDC]}E|i!|||ƒqBWnGxw|iƒDG]f}I|	itidd|ƒƒ}J|	i||idƒƒ}K|i|ƒL|i|ƒqzWO|i|ƒQt|dd	ƒ}
R|
i#|	i$ƒi%d
ƒƒS|
iƒTti&|ddƒdS(
sJnode mit subnodes wird in index.meta in path eingetragen bzw. ausgetauschts/index.metas/<resource type="ECHO" version="1.1"></resource>sresourceiss s-sutf8swsutf-8i“N('sosspathsexistssfilesinFilesreadsfsclosesxmlsdomsminidomsparseStringsgetElementsByTagNamesrootsparents
createElementsnodeNewsappendChildsnodessubnodesskeysssubnodesnodeOldsremoveChildsunlinksressubsnamenodescreateTextNodesdecodesnamenodetextsnodeAttributess	attributessetAttributes	writefileswritestoxmlsencodeschmod(spathsnodessubnodessparentsnodeAttributessnamenodesfsnamenodetextsrootsdomsnodeOlds	attributessubnodes	writefilesnodeNewsinFile((sJ/usr/local/mpiwg/Zope_devel/lib/python/Products/OSA_system/OSAS_helpers.pyschangeNodesInIndexMetas^	
	
!

		!
(	s__doc__sxml.dom.minidomsxmlsos.pathsossresgetTextsNoneschangeNodesInIndexMeta(sxmlsreschangeNodesInIndexMetasossgetText((sJ/usr/local/mpiwg/Zope_devel/lib/python/Products/OSA_system/OSAS_helpers.pys?s
	

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>