I've been trying to get these to work but I'm not having much luck. I have a large set of static HTML files that I would like to serve from the file system. From what I understand, I should be able to do this with these products. Would someone be able to help me with the dbtab.conf file. The location of the HTML files is /home/zope/html. I am looking for the functinality of something like LocalFS. The files will remain static. The end goal is to integrate these into Plone. Any help would be great. Thanks. charlie jones
Have you considered the other options.... You could serve them out of the local file system via LocalFS. I've done that successfully. Alternatively, if you are front-ended with Apache you could serve the HTML with Apache and the Zope with zope given an approprate rewriting of URLs. It would be useful to know what Zope you are using under what OS and using which python. On Wed, 5 Nov 2003, Charlie Jones wrote:
I've been trying to get these to work but I'm not having much luck. I have a large set of static HTML files that I would like to serve from the file system. From what I understand, I should be able to do this with these products. Would someone be able to help me with the dbtab.conf file.
The location of the HTML files is /home/zope/html. I am looking for the functinality of something like LocalFS. The files will remain static. The end goal is to integrate these into Plone.
Any help would be great. Thanks.
charlie jones
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Zope 2.1.6 / Plone 1.0.5 / RedHat 9 (all patched up) The end result is that I want to wrap Plone around this content. I've written a python script to rip out the tops and bottoms of the files and replace them with dtml headers and footers. Now I just need to get them served. I tried LocalFS and it didn't play nice with Plone. I will have several Plone instances using this content. Which is why I want it on the FS, to reduce the amount of space on the server and in the Plone instance. If there was some type of symbolic link product that would work also. A folder inside of Plone actually pointing to another folder in Zope. charlie On Nov 6, 2003, at 3:25 AM, Dennis Allison wrote:
Have you considered the other options.... You could serve them out of the local file system via LocalFS. I've done that successfully. Alternatively, if you are front-ended with Apache you could serve the HTML with Apache and the Zope with zope given an approprate rewriting of URLs.
It would be useful to know what Zope you are using under what OS and using which python.
On Wed, 5 Nov 2003, Charlie Jones wrote:
I've been trying to get these to work but I'm not having much luck. I have a large set of static HTML files that I would like to serve from the file system. From what I understand, I should be able to do this with these products. Would someone be able to help me with the dbtab.conf file.
The location of the HTML files is /home/zope/html. I am looking for the functinality of something like LocalFS. The files will remain static. The end goal is to integrate these into Plone.
Any help would be great. Thanks.
charlie jones
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Charlie Jones wrote:
Zope 2.1.6 / Plone 1.0.5 / RedHat 9 (all patched up)
The end result is that I want to wrap Plone around this content. I've written a python script to rip out the tops and bottoms of the files and replace them with dtml headers and footers. Now I just need to get them served. I tried LocalFS and it didn't play nice with Plone.
I will have several Plone instances using this content. Which is why I want it on the FS, to reduce the amount of space on the server and in the Plone instance. If there was some type of symbolic link product that would work also. A folder inside of Plone actually pointing to another folder in Zope.
There are a number of these, with slightly different characteristics. PortableHole and Reference, possibly mxmRelation, Rewriter, or Redirector. If your files won't be managed as content, you might as well get 'em through the skins tool, which would be your easiest and most reasonable option. Of course, APE should work as well, but I've not done that before. I'm surprised that the included examples don't do this. --jcc -- "Code generators follow the 80/20 rule. They solve most of the problems, but not all of the problems. There are always features and edge cases that will need hand-coding. Even if code generation could build 100 percent of the application, there will still be an endless supply of boring meetings about feature design." (http://www.devx.com/java/editorial/15511)
I am interested in reading more about adding static/unmanaged html content to plone instance using File System Directory Views or the plone skins tool. Can anyone point me in the right direction for some reading? I seem to be looking in the wrong places. charlie On Nov 6, 2003, at 4:11 PM, J Cameron Cooper wrote:
Charlie Jones wrote:
Zope 2.1.6 / Plone 1.0.5 / RedHat 9 (all patched up)
The end result is that I want to wrap Plone around this content. I've written a python script to rip out the tops and bottoms of the files and replace them with dtml headers and footers. Now I just need to get them served. I tried LocalFS and it didn't play nice with Plone.
I will have several Plone instances using this content. Which is why I want it on the FS, to reduce the amount of space on the server and in the Plone instance. If there was some type of symbolic link product that would work also. A folder inside of Plone actually pointing to another folder in Zope.
There are a number of these, with slightly different characteristics. PortableHole and Reference, possibly mxmRelation, Rewriter, or Redirector. If your files won't be managed as content, you might as well get 'em through the skins tool, which would be your easiest and most reasonable option.
Of course, APE should work as well, but I've not done that before. I'm surprised that the included examples don't do this.
--jcc
-- "Code generators follow the 80/20 rule. They solve most of the problems, but not all of the problems. There are always features and edge cases that will need hand-coding. Even if code generation could build 100 percent of the application, there will still be an endless supply of boring meetings about feature design." (http://www.devx.com/java/editorial/15511)
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Charlie Jones wrote at 2003-11-6 20:59 -0500:
I am interested in reading more about adding static/unmanaged html content to plone instance using File System Directory Views or the plone skins tool. Can anyone point me in the right direction for some reading? I seem to be looking in the wrong places.
It is very simple: * You use the CMF and its "SkinsTool" (--> "portal_skins"). If you do not like the complete CMF setup, you can use my "SkinnedFolder" <http://www.dieter.handshake.de/pyprojects/zope> * You register one (or more) folder as top level directory views: from Products.CMFCore.DirectoryView import registerDirectory # make "skins" folder in current product available as FSDV registerDirectory('skins', globals()) * You create a "Filesystem Directory View" in your skins tool (--> add list --> "Filesystem Directory View") * You put your files in the corresponding folder in the file system. * You may need to register the extensions of your files such that "Filesystem Directory View" knows how to map the files to Zope objects: from Products.CMFCore.DirectoryView import registerFileExtension from Products.CMFCore.FSFile import FSFile ... registerFileExtension('html', FSFile) That's it. -- Dieter
I am interested in reading more about adding static/unmanaged html content to plone instance using File System Directory Views or the plone skins tool. Can anyone point me in the right direction for some reading? I seem to be looking in the wrong places.
For one you can just look in plone/portal_skins to see how things happen. There's some info on skinning here: http://cmf.zope.org/Members/beehive/ZWACKChap5.html The Plone Book has some info on skinning: http://plone.org/documentation/book/6 There's a bit in the Dogbowl: http://cmf.zope.org/doc/devel/writing_skins/view http://cmf.zope.org/Members/teyc/docSkins/view Here's a repackaging of FSDV for use outside of CMF, which might have some docs: http://zope.org/Members/philikon/FileSystemSite And you can always look at the source to figure out how things work. PasswordResetTool is pretty simple, but has hooks into all sorts of functionality, like installing skins from the Filesystem (which you can also do from the ZMI): http://cvs.sourceforge.net/viewcvs.py/collective/PasswordResetTool/ http://cvs.sourceforge.net/viewcvs.py/collective/PasswordResetTool/Extension... -- "My point and period will be throughly wrought, Or well or ill, as this day's battle's fought."
participants (5)
-
Charlie Jones -
Dennis Allison -
Dieter Maurer -
J Cameron Cooper -
J. Cameron Cooper