- Ld:Z?Wd;Z@d<ZAd=ZBd>ZCd?ZDd@ZEdAZFdBeeefdCYZGdDeeefdEYZH:dFZI?dGZJCdHZKGdIZLJdJZMNdKZN`dLklOZOl Z bdMZPdS(NN(sFolder(s SimpleItem(sPageTemplateFile(s PageTemplatesOSAS_ShowOnlinecs tZdZ  dZdZdZddZdZ"dZ&dZ *d Z -d Z 0d Z 3d Z RS( s OnlineBrowsercs  ||_dS(sinitialize a new instanceN(sidsself(sselfsid((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys__init__ ssOSAS_ShowOnlinecs,tdi|}|SdS(s main views&products/OSA_system/OSAS_ViewFiles.zptN(sPageTemplateFiles__of__sselfspt(sselfspt((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys index_htmlsics#t|d}|SdS(sload filesystemiN(s filesystem2sstartsk(sselfsstartsreloadsk((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetfilesystem2scs t|} |SdS(sget the filetreeN(sbrowsesstartsk(sselfsstartsk((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pystreescs!"#$t|id|SdS(s&generates navigation bar for viewfilessURLN(spath_to_link_viewsselfsREQUESTspath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pyspath_to_link_view"scs&'(t|SdS(scheck if digilibN(s isdigilib2spath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys isdigilib2&scs*+t|SdS(N(s changeNamesname(sselfsname((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys changeName*scs-.t|SdS(N(s hasMetafilespath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys hasMetafile-scs01t|SdS(N(s getMetafilespath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys getMetafile0scsK345|i|i||6|iii|idd|SdS(s%Oeffnen bzw. schlieen der SubfolderssURL1s?path=N(sselfstreespathstogglesfilesREQUESTsRESPONSEsredirect(sselfspathsfile((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys toggle_view3s(s__name__s __module__s__doc__s__init__s meta_types index_htmlsgetfilesystem2streespath_to_link_views isdigilib2s changeNames hasMetafiles getMetafiles toggle_view(((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysOSAS_ShowOnline s         cs,89:tdi|};|SdS(s"interface for adding the OSAS_roots*products/OSA_system/AddOSAS_ShowOnline.zptN(sPageTemplateFiles__of__sselfspt(sselfspt((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysmanage_AddOSAS_ShowOnlineForm8scsP=>?t|}@|i||A|tj oB|idndS(sadd the OSAS_roots manage_mainN(sOSAS_ShowOnlinesidsnewObjsselfs _setObjectsRESPONSEsNonesredirect(sselfsidsRESPONSEsnewObj((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysmanage_AddOSAS_ShowOnline=s sOSAS_StoreOnlinecsEtZdZFGdZKdZNdZSdZWddZ]dZbdZ fd Z jd Z md Z pd Z sd ZxdZ|dZdZdZdZdZdZdZdZRS(s!Webfrontend fr das StoragesystemcsGHI||_dS(sinitialize a new instanceN(sidsself(sselfsid((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys__init__GssOSAS_StoreOnlinecs,NOPtdi|}Q|SdS(s main views'products/OSA_system/OSAS_StoreFiles.zptN(sPageTemplateFiles__of__sselfspt(sselfspt((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys index_htmlNscsSTUt|SdS(sZeige ContexteN(s readContextsspath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys readContextsSsics#WXZt|d}[|SdS(sload filesystemiN(s filesystem2sstartsk(sselfsstartsreloadsk((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetfilesystem2Wscs ]^_t|}`|SdS(sget the filetreeN(sbrowsesstartsk(sselfsstartsk((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pystree]scs!bcdt|id|SdS(s&generates navigation bar for viewfilessURLN(spath_to_link_storesselfsREQUESTspath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pyspath_to_link_storebscsfght|SdS(scheck if digilibN(s isdigilib2spath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys isdigilib2fscsjkt|SdS(N(s changeNamesname(sselfsname((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys changeNamejscsmnt|SdS(N(s hasMetafilespath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys hasMetafilemscspqt|SdS(N(s getMetafilespath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys getMetafilepscsKstu|i|i||v|iii|idd|SdS(s%Oeffnen bzw. schlieen der SubfolderssURL1s?path=N(sselfstreespathstogglesfilesREQUESTsRESPONSEsredirect(sselfspathsfile((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys toggle_viewsscsxyzt||SdS(sTest ob Eintrag ein Folder istN(sisFoldersselfspath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysisFolderxscs|}~t||SdS(sTest ob Eintrag ein Folder istN(sisScannedDocumentsselfspath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysisScannedDocument|scst||SdS(sTest ob Eintrag ein Folder istN(s isFullTextspaths folder_name(sselfspaths folder_name((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys isFullTextscs,tdi|}|SdS(sadd a new paths&products/OSA_system/OSAS_addFolder.zptN(sPageTemplateFiles__of__sselfspt(sselfspathspt((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys addFolderFormscstdtSdS(Ns%d.%m.%Y(sstrftimes localtime(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysdatescs)ti||||||SdS(s=add the folder to the filesystem and write the metadata filesN(s addFoldersselfspaths folder_names descriptionsarchive_creation_datescreator(sselfspaths folder_names descriptionsarchive_creation_datescreator((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys addFolderscsy/tiii|d}|i}Wnd}nX||ii d<||ii d<t di |}|SdS(sEditiere das Index Metafiles /index.metass indexmetaspathsproducts/OSA_system/editindexN( sxmlsdomsminidomsparsespathstoxmls indexmetasselfsREQUESTsSESSIONsPageTemplateFiles__of__s newtemplate(sselfspathsdoms newtemplates indexmeta((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys EditIndexs cs|iid o|id}n'|idi|_|id}t|iiddd}|i ||ii i |idd|iidSdS( s%Sichern der Aenderungen in Index.metas fileuploads indexmetaspaths /index.metaswsURL1s?path=N( sselfsREQUESTshas_keysnewtextsfilenames file_namesfilesSESSIONs indexmetas writelinessresponsesredirect(sselfsnewtexts indexmeta((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys EditIndex2s cs,tdi|}|SdS(snothings(products/OSA_system/OSAS_addmetadata.zptN(sPageTemplateFiles__of__sselfspt(sselfspt((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys add_metafiles(s__name__s __module__s__doc__s__init__s meta_types index_htmls readContextssgetfilesystem2streespath_to_link_stores isdigilib2s changeNames hasMetafiles getMetafiles toggle_viewsisFoldersisScannedDocuments isFullTexts addFolderFormsdates addFolders EditIndexs EditIndex2s add_metafile(((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysOSAS_StoreOnlineEs,                  cs,tdi|}|SdS(s"interface for adding the OSAS_roots+products/OSA_system/AddOSAS_StoreOnline.zptN(sPageTemplateFiles__of__sselfspt(sselfspt((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysmanage_AddOSAS_StoreOnlineFormscsPt|}|i|||tj o|idndS(sadd the OSAS_roots manage_mainN(sOSAS_StoreOnlinesidsnewObjsselfs _setObjectsRESPONSEsNonesredirect(sselfsidsRESPONSEsnewObj((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysmanage_AddOSAS_StoreOnlines cstiii|d}|id}g}xe|D]Z}t |iddi }t |iddi }|i ||fqGW|SdS(sReadContext from index.metas /index.metascontextslinkisnameN(sxmlsdomsminidomsparsespathsgetElementsByTagNamesnodessretsnodesgetTexts childNodesslinksnamesappend(spathsnodeslinksdomsnodessretsname((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys readContextss  (s*(sClassSecurityInfo(s RoleManager(sImplicit(s Persistent(sstrptime(sstrftimes/var/tmp/archivers .HSResources lost+foundsNetwork Trash FoldersTheFindByContentFoldersTheVolumeSettingsFoldersfsentrycstZdZdZdZdZdZdZeZ dZ e i ddZ e i ddZ e i ddZ e i d d Ze i d d Ze i d d ZRS(sFile entry classscsptiitid|id}||_||_d|_ tii ||_ dS(sinitialize classs(.*)\nisN( sosspathsabspathsressearchsextpathsgroupsselfsallsusersgetmtimesmtime(sselfsextpath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys__init__s *   sgetPathcs|iSdS(sAusgabe von pathN(sselfspath(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetPathssgetUsercs|iSdS(sAusgabe von userN(sselfsuser(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetUserssgetDatecs&tdti|iSdS(sAusgabe von Dates %Y%m%d%H%MN(sstrftimestimesgmtimesselfsmtime(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetDatescs!   |i|iSdS(s)Ausgabe einer eindeutigen Sortierbaren IDN(sselfsgetDatesgetPath(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetID ssgetTimecs|iSdS(sAusgabe von pathN(sselfstime(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetTimessgetAllcs|iSdS(sAusgabe von pathN(sselfsall(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetAlls(s__name__s __module__s__doc__spathsusersmonthsdatestimesClassSecurityInfossecuritys__init__s declarePublicsgetPathsgetUsersgetDatesgetIDsgetTimesgetAll(((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysfsentrys(            s filesystemcsmtZdZhZhZeZdZ$dZ5ddZ <ei d=dZ @ei dAdZ Dei d Ed Z Iei d Jd ZOd Z]dZ{ei d|dZei ddZei ddZei ddZei ddZRS(sstore filesystemcs=tid|dd} |i}"|SdS(sload filessystemsfind s -name '*' srN(sosspopensstartsfs readlinesslines(sselfsstartslinessf((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetfsscs$%&x|i|D&]}(tid|})|tj o*|id}+|id},|i i |o4-|i |}.|i|/||i ||iSdS(N(sselfsnode(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetNode=ssgetKeyscsAB|iiSdS(N(sselfsnodeskeys(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetKeysAss clearnodecsEFh|_GdSdS(Ni(sselfsnode(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys clearnodeEs shasIndexcsJL|ii|SdS(N(sselfshasindexshas_keyspath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pyshasIndexJscsOPQh}Rx|iDR]}S|ii|oTt|i|djoUt|i|djd|i|j@oV|i||||d|}@|ii|oB|i|SnEdSdS(Ns/i(stmppathsfilespathsselfs toggledictshas_key(sselfstmppathsfilespath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysisToggle=s( s__name__s __module__sClassSecurityInfossecuritystrees toggledictsfilterExcludeds__init__s declarePublicsgetTrees isDirectorystogglesisToggle(((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysbrowses         cs=HIJtid|dd}K|i}L|SdS(sreturn filesystemsfind s -name '*'srN(sosspopensstartsfs readlinesslines(sstartslinessf((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetfsHscs<NOt|}Px|DP]}Q|GHqWRdSdS(Ni(sgetfssstartslinessline(sstartslineslines((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysshowallNs   csTUVd}Wg}Xt|}Yx|DY]{}Zyb[tiitii t i d|i do'\|i t|]|d}nWn ^_nXq1W`|SdS(s&retrun list of entries of a filesystemis(.*)\niN(sisfssgetfssstartslinesslinesosspathsexistssabspathsressearchsgroupsappendsfsentry(sstartsfssislineslines((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysentriesTs   7 ics#bcet|d}f|SdS(sload filesystemiN(s filesystemsstartsk(sstartsreloadsk((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys getfilesystembscsjklg}mh}nx:|Dn]/}o|i|ip|||i|d||dd||dd}|d}qW|SdS( s&generates navigation bar for showfilessiiiss/N( sstringsosspathsdirnamestmppathsisbasenamespathesslensappend(spathstmppathspathessstringsi((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys path_to_linkxs"   "-cs1d}tii|}d}|tii|gg}xxt|dj o`|d}|djoPn|i |tii|gtii|}qQWxW|djoF|d|d||dd||dd}|d}qW|Sd S( s&generates navigation bar for viewfilessiiiss/N( sstringsosspathsdirnamestmppathsisbasenamespathesslensappendsURL(sURLspathsispathessstringstmppath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pyspath_to_link_views"   "5cs1d}tii|}d}|tii|gg}xxt|dj o`|d}|djoPn|i |tii|gtii|}qQWxW|djoF|d|d||dd||dd}|d}qW|Sd S( s&generates navigation bar for viewfilessiiiss/N( sstringsosspathsdirnamestmppathsisbasenamespathesslensappendsURL(sURLspathsispathessstringstmppath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pyspath_to_link_stores"   "5sErrorcsHtZgZeZdZeiddZRS(Ncs|d|_dS(Ni(s initerrorsselfserror(sselfs initerror((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys__init__ssgetErrorcs|iSdS(N(sselfserror(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetErrors(s__name__s __module__serrorsClassSecurityInfossecuritys__init__s declarePublicsgetError(((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysErrors    s metacheckcsTtZgZeZdZdZeiddZRS(Ncsd}t|dj ox"|D]}||d}q0Wtid|}|iddjo d}n0|iddjo d }n d }||gSndd gSd S( sparse for errorsis
s (.*):(.*)isABORTserrorsDONEsoksrunningN( sretstrslensstrslinesressearchschecksgroupserror(sselfsstrserrorslinesretstrscheck((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys parsearchives     csg|_t|tjoKtid|d}|iit ||i |i gn_xX|D]M}tid|d}|iit ||i |i gq}WdS(sarchive the documents in paths#/usr/local/mpiwg/archive/metacheck srN( sselfslinesstypespaths StringTypesosspopensfsappendsErrors parsearchives readliness singlepath(sselfspaths singlepathsf((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys__init__s 2 smessagescs|iSdS(N(sselfslines(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysmessagess( s__name__s __module__slinessClassSecurityInfossecuritys parsearchives__init__s declarePublicsmessages(((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys metachecks     sarchivecsTtZgZeZdZdZeiddZRS(Ncsd}t|dj ox"|D]}||d}q0Wtid|}|iddjo d}n0|iddjo d }n d }||gSndd gSd S( sparse for errorsis
s (.*):(.*)isABORTserrorsDONEsoksrunningN( sretstrslensstrslinesressearchschecksgroupserror(sselfsstrserrorslinesretstrscheck((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys parsearchives     csg|_h|_||d< t|tjoF ti|i|< t i d|d|i|dd}nZxS|D]H}ti|i|<t i d|d|i|dd}qWdS(sarchive the documents in pathsarchivers"/usr/local/mpiwg/archive/archiver s > s &srN( sselfsliness filenamesssessionstypespaths StringTypestempfilesmktempsosspopensfs singlepath(sselfspathssessions singlepathsf((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys__init__s   0 smessagescs{g|_xX|iiD]D}|iit||it|i|di gq"W|iSdS(Nsr( sselfsliness filenamesskeysspathsappendsErrors parsearchivesopens readlines(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysmessagess   B( s__name__s __module__slinessClassSecurityInfossecuritys parsearchives__init__s declarePublicsmessages(((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysarchives     cst|SdS(N(sevalsstr(sstr((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysevalextscsC |ii}!||d|<"||d|<$d|SdS(Nserror%ispath%iserror?number=%i(scontextsREQUESTsSESSIONssessionsretsispath(sretspathscontextsissession((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys storeerrorscs!&'|ii}(||SdS(N(scontextsREQUESTsSESSIONssessionsstr(sstrscontextssession((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgeterror&scsS*,d}-t|d}.x$|iD.]}/||}q.W0|SdS(Nssr(sretsopenspathsfs readlinessg(spathsgsretsf((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysreadfile*s   csR23t|d}4|i|5|i6|id}7|SdS(Nswsarchive2( sopenspathsfswritestxtsclosesselfs aq_acquiresrval(sselfspathstxtsREQUESTsrvalsf((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys writefile2s  cs1:;<|id|iid<=t|SdS(s(check the metadata the documents in pathspathN(sselfsREQUESTsSESSIONs metacheckspath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys metachecker:scs8?@At||ii}B|iiidSdS(sarchive the documents in pathsarchive4N(sarchivespathsselfsREQUESTsSESSIONstmpsRESPONSEsredirect(sselfspathstmp((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysarchiver?scsXDFd}Gx;|DG]0}H|i|ijoI||i}nqWJ|SdS(Ns(srcsnodelistsnodesnodeTypes TEXT_NODEsdata(snodelistsnodesrc((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetTextDs   cs~LMd}Ox]|DO]R}Q|i|ijo6RS|dt|idt|id}nqWU|dSdS(Nsss
s : s
( srcsnodelistsnodesnodeTypes ELEMENT_NODEsstrsnodeNamesgetTexts childNodes(snodelistsnodesrc((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetBibLs  7c s_WXYg}Ztii|d o \dSn'^tid|dd}_|i}`ti i i |}at |i ddi}bt |i ddi}ct |i ddi}dt |i d di} ey#ft |i d di}Wnghd }nXi|d jojd |d}n7k|djold|d}nnd |d}p|d|d|d}q|d| d}rys|i ddi dd} t| iido#u|d| idid}nw|d}x|t| i}Wn z{nX|SdS(sget index.metas /index.metas NO_METADATAscat srsnameiscreatorsarchive-creation-dates descriptions content-typessscanned documents

Document: s

sfolders

Folder: s

created by: s at: s

s

Description

s

smetasbibstypes

Info (s)

s

Info

N(shtmlsosspathsexistsspopensfsreadslinessxmlsdomsminidoms parseStringsgetTextsgetElementsByTagNames childNodessnamescreators creation_dates descriptionstypesbibs attributesshas_keysvaluesgetBib( spathsfsnamescreatorstypesdomsliness creation_dateshtmlsbibs description((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys getMetafileWs>  # ## cs!tii|dSdS(sget index.metas /index.metaN(sosspathsexists(spath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys hasMetafilesc sygti|}ddddddddd g }d }xE|D]:}tii|}|d |jo d SnqUWyt i i i tii |d d }x|idD]q}t|idd idjoEt|idd itii |d jo d SnnqWd SWnd SnXWnd SnXdS(s9check if folder is candidate for digilib without metadatas.gifs.jpgs.jpegs.pngs.tiffs.tifs.JPGs.TIFFs.TIFsiis /index.metasdirs content-typesimagessnameN(sosslistdirspathsdirs imagesuffixessretsassplitextssuffixsxmlsdomsminidomsparsessplitsgetElementsByTagNamesnodesgetTexts childNodes(spathsasnodessuffixsdomsrets imagesuffixessdir((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys isdigilib2s,$  , &6 csytiii|d}xu|idD]a}t|iddidjo5t|iddi|jo dSnnq;WdSWndSnXdS( s(check if foldername in path is full texts /index.metasdirs content-typeisfulltextsnameiN( sxmlsdomsminidomsparsespathsgetElementsByTagNamesnodesgetTexts childNodess folder_name(spaths folder_namesnodesdom((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys isFullTexts && csytiii|d}x|idD]x}y_t|iddidjo5t|iddi|jo dSnnWn nXq;WdSWndSnXdS( s(check if foldername in path is full texts /index.metasdirs content-typeis presentationsnameiN( sxmlsdomsminidomsparsespathsgetElementsByTagNamesdirnodesgetTexts childNodess folder_name(spaths folder_namesdomsdirnode((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysisPresentations &&  cs{y]tid|}|tjo$dtid|idSn|idSWndSnXdS(Ns(.*)/mpiwg/online/(.*)s digifiles/s%(.*)/mpiwg/production/docuserver/(.*)isNO(sressearchspathstemp2sNonesgroup(spathstemp2((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys changeNames$csPd|_|ididd|ididddSdS(NisOFSPsneusHELLOsok(sselfsismanage_addProductsmanage_addDTMLMethodsgetattrs manage_edit(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pystests slscstZdZdZdZdZdZdZeZ dZ e i ddZ e i ddZ e i ddZe i d d ZRS( sFile entry classscsDti|_||d<tid|idddS(Nsoutfiles ls -R / >s &sr(stempfilesmktempsselfsoutfilesstartsosspopen(sselfsstart((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys__init__s sreadcs|iiSdS(N(sselfsfsread(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysreadssretselfcs|SdS(N(sself(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysretselfssallcs>d}x!|iD]}||}qW|SdS(Ns(sretsselfsfsg(sselfsgsret((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysalls   s printOutfilecsEx"tii|i oq Wt|iiSdS(N(sosspathsexistssselfsoutfilesopens readlines(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys printOutfiles(s__name__s __module__s__doc__spathsusersmonthsdatestimesClassSecurityInfossecuritys__init__s declarePublicsreadsretselfsalls printOutfile(((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pyslss           soverviewcstZgZhZeZ dZdZdZ-ei d.dZ 6ei d7dZ RS(NcsT  ti|} x5|D ]*} |d||i|i||s (.*):(.*)isABORTserrorsDONEsoksrunningN( sretstrslensstrslinesressearchschecksgroupserror(sselfsstrserrorslinesretstrscheck((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys parsearchives     smessagescs./g|_0xa|iiD0]M}1|i|}3|iit||it |di gq"W4|iSdS(Nsr( sselfsliness resourcesskeyssnamespathsappendsErrors parsearchivesopens readlines(sselfspathsname((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysmessages.s   ;s printResourcecs78|iSdS(N(sselfs resources(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys printResource7s( s__name__s __module__sdirs resourcessClassSecurityInfossecuritys__init__s getResources parsearchives declarePublicsmessagess printResource(((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysoverviews       cs:<t|SdS(N(soverviewspath(spath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys getoverview:scs2?@t|ii}A|iiidSdS(Nsnext(slssselfsREQUESTsSESSIONstmpsRESPONSEsredirect(sselfstmp((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysls_test?scs!CD||iid<EdSdS(Ns somethingi(s somethingsselfsREQUESTsSESSION(sselfs something((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys storeFileCscsGH|iidSdS(Ns something(sselfsREQUESTsSESSION(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysgetFileGscsJKLt|| SdS(shreturns TRUE, wenn path ein Folder ist in den weitere Objekte Folder oder Dokumente gelegt werden drfenN(sisScannedDocumentsselfspath(sselfspath((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysisFolderJscsNOPyQt|dd}R|i}TyjUtiii|}Vt |i ddi }W|djp |djo XdSnZdSWn[\dSnXWn]^dSnXdS( sFreturns TRUE, wenn path der Stammordner eines gescannten Documents ists /index.metasrs content-typeisscanned-documentsscanned documentiN( sfilespathsfsreadslinessxmlsdomsminidoms parseStringsgetTextsgetElementsByTagNames childNodess content_type(sselfspaths content_typesdomsfslines((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysisScannedDocumentNs  (s localtimesstrftimecsbctdtSdS(Ns%d.%m.%Y(sstrftimes localtime(sself((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pysdatebs(Qs addFolders OFS.FoldersFoldersOFS.SimpleItems SimpleItems'Products.PageTemplates.PageTemplateFilesPageTemplateFiles#Products.PageTemplates.PageTemplates PageTemplatesOSAS_ShowOnlinesmanage_AddOSAS_ShowOnlineFormsNonesmanage_AddOSAS_ShowOnlinesOSAS_StoreOnlinesmanage_AddOSAS_StoreOnlineFormsmanage_AddOSAS_StoreOnlines readContextsstypessurllibsosssyssres AccessControlsClassSecurityInfosAccessControl.Roles RoleManagers AcquisitionsImplicitsGlobalss Persistentstimesstrptimesstrftimesos.pathsdircachesxml.dom.minidomsxmlstempfilestempdirs exclusionsfsentrys filesystems filesystem2sbrowsesgetfssshowallsentriess getfilesystems sort_by_dates path_to_linkspath_to_link_viewspath_to_link_storesErrors metachecksarchivesevalexts storeerrorsgeterrorsreadfiles writefiles metacheckersarchiversgetTextsgetBibs getMetafiles hasMetafiles isdigilib2s isFullTextsisPresentations changeNamestestslssoverviews getoverviewsls_tests storeFilesgetFilesisFoldersisScannedDocuments localtimesdate(Ds hasMetafilestempfilesOSAS_ShowOnlinesoverviewsshowalls getfilesystemslss RoleManagers getoverviewsmanage_AddOSAS_StoreOnlineFormsisScannedDocumentsFolders PageTemplatesarchivesxmls addFolders exclusionspath_to_link_viewsbrowsesstrptimesmanage_AddOSAS_StoreOnlinesurllibs sort_by_datesevalextsgetfssgetTextsarchiversmanage_AddOSAS_ShowOnlinestimestests storeFiles isdigilib2sImplicitsPageTemplateFilesisFolders metachecksOSAS_StoreOnlines storeerrorsreadfiles path_to_linksClassSecurityInfos Persistentsfsentryssyss SimpleItems writefilesgeterrors filesystem2sErrorsdatesres isFullTexts getMetafilesls_tests localtimesmanage_AddOSAS_ShowOnlineFormsgetBibsdircachespath_to_link_stores changeNamesisPresentations filesystems readContextssgetFilesentriess metacheckersossstrftime((sO/Users/dwinter/install/CVSZOPE/Zope/lib/python/Products/OSA_system/OSAS_show.pys?s. m             /U8        (.         *  "   #6