[Zope] LocalFS and ZPT

Dieter Maurer dieter@handshake.de
Thu, 4 Apr 2002 20:32:29 +0200


Roel Van den Bergh writes:
 > ...
 > > You may try "Filesytem Directory View" instead of "LocalFS".
 > > This product belongs to Zope's CMF and already knows the
 > > new Zope object types. There is a drawback: you need to register
 > > the directory that should be made available as directory views
 > > (which gives both improved security and make the interface quite easy).
 > > 
 > > 
 > How do U register a directory?
Usually, I would have expected, that you look that up yourself...

	 from Products.CMFCore.DirectoryView import registerDirectory

	 registerDirectory(your_directory, globals())
 
The directory is interpreted relative to (probably) "__path__" in
"globals()".


Dieter