- ?csdkZdklZdkZdkZdkZdkZ dkl Z  dk l Z  dk l Z  dklZ dklZde fdYZQd ZVed Z^e ead e fd YZd ZedZe ede fdYZdZ edZe ede fdYZ9dZ>edZFe eHde fdYZydZ dZ!edZ"e edS(N(sECHO_collection(sFolder(sClassSecurityInfo(sInitializeClass(sPageTemplateFile(s PageTemplatesOSAS_add_DocumentcstZdZeZdZdZeihdd<dd%ss.(sstringsjoinsobjectsgetPhysicalPathstitle(sobject((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pysretLinksiss
i( sspacessretLinksdepthsselfs getChildss startItemsitemsschildsstmpschildsenddepths printChilds( sselfs startItemsdepthsitemssenddepthschildsstmpsspacesschildsretLink((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pys printChildss     =i csJd|iddU|ieddde|}|SdS(s Erzeugt HTML-Tree der Collectionsitems=self.getPhysicalRoot().s.getCollectionTree()Ni(sselfs collections printChildssitemssdepthschilds(sselfsdepthschilds((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pys generateTrees#cs'd|iddUeSdS(sZeige Partnerlistesitems=self.getPhysicalRoot().s.partners.getPartners()N(sselfs collectionsitems(sself((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pys getPartnersscsy#ti|id|dWndSnX|dfg}|ti|7}||iid<t di |}|SdS(sHinzufgen zu einer Sammlungs SERVER_URLs /index.metasindex.meta file has to exist!sstandard storageslinkss'Products/OSA_system/contextDataMain.zptN( surllibsurlopensselfsREQUESTspathslinkss OSAS_shows readContextssSESSIONsPageTemplateFiles__of__spt(sselfspathsptslinks((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pysaddContextDatas# cs|id}|e|d}|e|d}|id|d}d|dUe i e |||||||| | | | ||| deee |i|iii|idd |SdS( sHinzufuegen der Resources/is SERVER_URLs /index.metascollection_object=selfNsRESPONSEsURL2s?path=(spathssplitssplittedslensidstitlesselfsREQUESTsmetalinks collectionsECHO_collectionsmanage_AddECHO_resourcescollection_objectscontextssciencespractices source_typesperiodslabels descriptions content_types responsibleslinkscreditssNonesgetattrsECHO_getResourceMDsRESPONSEsredirect(sselfspaths collectionscontextssciencespractices source_typesperiodslinkslabels descriptions content_types responsiblescreditssmetalinksidstitlessplitted((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pysaddContextData2s@s Main Configslabelsadd_contextData_configsactioncs,tdi|}|SdS(sMain configurations2Products/OSA_system/ChangeOSAS_add_contextData.zptN(sPageTemplateFiles__of__sselfspt(sselfspt((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pysadd_contextData_configscs:||_|tj o|idndS(sChanges manage_mainN(s collectionsselfsRESPONSEsNonesredirect(sselfs collectionsRESPONSE((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pyschange_OSAS_add_contextDatas (s__name__s __module__s__doc__sClassSecurityInfossecuritys meta_types__init__s getChildss printChildss generateTrees getPartnerssaddContextDatasaddContextData2sFoldersmanage_optionssadd_contextData_configsNoneschange_OSAS_add_contextData(((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pysOSAS_add_contextDatas        % cs,tdi|}|SdS(s*interface for adding the OSAS_add_Metadatas+Products/OSA_system/AddOSAS_contextData.zptN(sPageTemplateFiles__of__sselfspt(sselfspt((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pys"manage_AddOSAS_add_contextDataFormscsY   t||} |ii|||tj o|i dndS(sadd the OSAS_roots manage_mainN( sOSAS_add_contextDatasids collectionsnewObjsselfs Destinations _setObjectsRESPONSEsNonesredirect(sselfsids collectionsRESPONSEsnewObj((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pysmanage_AddOSAS_add_contextData s sOSAS_add_PresentationcstZdZeZdZdZeihdd<dd?@t|}A|ii||B|tj oC|idndS(sadd the OSAS_roots manage_mainN( sOSAS_add_PresentationsidsnewObjsselfs Destinations _setObjectsRESPONSEsNonesredirect(sselfsidsRESPONSEsnewObj((sE/usr/local/mpiwg/Zope/lib/python/Products/OSA_system/OSAS_addfiles.pysmanage_AddOSAS_add_Presentation>s sOSAS_combineTextImagecsHtZdZIJeZLdZQdZReihdd<dd    B  $  q  %  1