File:  [Repository] / kupu / zope2 / __init__.pyc
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Thu Sep 15 13:06:00 2005 UTC (18 years, 8 months ago) by dwinter
Branches: first, MAIN
CVS tags: dwinter, HEAD
modifizierter kupu fuer webpages des instituts

mò
*ìCc@s'dZdkZdklZdklZdklZdklZdklZdkl	Z	dk
lZd	„Zd
kl
Z
e
ideƒƒedeƒed
eƒdefd„ƒYZeieƒdefd„ƒYZeieƒedeƒƒZdd„Zdddd„ZdS(s'Zope2 integration module

This is a solution for plain Zope2 integration using the
FileSystemSite product. FileSystemSite can be found at
http://www.zope.org/Members/k_vertigo/Products/FileSystemSite
Note that FileSystemSite 1.3 is required.

$Id: __init__.pyc,v 1.1.1.1 2005/09/15 13:06:00 dwinter Exp $
N(sPageTemplateFile(s
DirectoryView(sDirectoryViewSurrogate(sDirectoryRegistry(sregisterFileExtension(smanage_listAvailableDirectories(sFSFilecCs)|itddtftfddƒdS(Ntconstructorstmanage_addKupuEditorFormticons
kupu_icon.gif(tcontextt
registerClasstKupuEditorSurrogateRtmanage_addKupuEditor(R((t3/usr/local/testzope/Products/kupu/zope2/__init__.pyt
initializes	(s_dirregs	../commontxsltxmlt
KupuEditorcBstZdZd„ZRS(Nskupu editorcCs€ti|iƒ}|dj	o|itƒ}n|djoh}f}n
|\}}t	|||ƒ}|i|ƒ}|S(N(t_dirregtgetDirectoryInfotselft_dirpathtinfotNonetgetContentstdatatobjectsRtst__of__tparenttres(RRRRRRR((RR2s


(t__name__t
__module__t	meta_typeR(((RR/sRcBstZdZRS(Nskupu editor(RRR(((RRAssaddKupuEditor.ptcCs}ti|ƒ}|djotd|ƒ‚n|pti|ƒd}n
t	|ƒ}t
||ƒ}|i
||ƒdS(s8Adds either a DirectoryView or a derivative object.
    sNot a registered directory: %siÿÿÿÿN(RR
tfilepathRRt
ValueErrortidtpathtsplittstrRtobRt
_setObject(RRRRR"((RtcreateKupuEditorHs
sProducts/kupu/commoncCs5t|||ƒ|dj	o|i||ƒSndS(s&Adds either an kupu editor object
    N(R$RRRtREQUESTRtmanage_main(RRRR%((RRUs
(t__doc__tGlobalst'Products.PageTemplates.PageTemplateFiletPageTemplateFilet%Products.FileSystemSite.DirectoryViewt
DirectoryViewtDirectoryViewSurrogatetDirectoryRegistrytregisterFileExtensiontmanage_listAvailableDirectoriestProducts.FileSystemSite.FSFiletFSFileRRtregisterDirectorytglobalsRtInitializeClassRRRR$R(R0RR-RR/RRR(R*RR2RR.R$R,((Rt?s(	






	







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