Zope and MS-Frontpage inter-operability
Hi, I am trying to use a site developed in MS front page. The problem is that Frontpage uses folders with underscores e.g. _themes , for storing images, css etc. Python (and therefore Zope) does not seem to allow folders (or any object in fact) to have a name that begins with an underscore. Has anybody successfully used Frontpage and publish it to a zope web server? Thanks for the help Roberto P.S: I apology in advance for mentioning frontpage in this forum
As far as I know, using names which start with underscores is not easily accomplished in Zope 2 (without significant hacking.) You might be able to use Apache RewriteRules to accomplish this, though. Troy Roberto Marabini wrote:
Hi,
I am trying to use a site developed in MS front page.
The problem is that Frontpage uses folders with underscores e.g. _themes , for storing images, css etc.
Python (and therefore Zope) does not seem to allow folders (or any object in fact) to have a name that begins with an underscore.
Has anybody successfully used Frontpage and publish it to a zope web server?
Thanks for the help
Roberto
P.S: I apology in advance for mentioning frontpage in this forum
Roberto Marabini wrote:
Has anybody successfully used Frontpage and publish it to a zope web server?
There really is no reason to do so. Frontpage is designed to make it easy to create HTML web pages. Ass such it can be seen as a very primitive web content management system. Zope is another one. Using one on top of another makes no sense. Take a look at the content management systems built on Zope instead, like CPS, Plone, EasyPublisher or Silva.
On Tuesday 09 March 2004 08:43 am, Roberto Marabini wrote:
I am trying to use a site developed in MS front page.
Don't you hate it when that happens? ;-)
The problem is that Frontpage uses folders with underscores e.g. _themes , for storing images, css etc.
Yep.
Python (and therefore Zope) does not seem to allow folders (or any object in fact) to have a name that begins with an underscore.
Python could care less what you name them, and doesn't really know what a "folder" is, but Zope uses the underscore as a security marker to identify methods that shouldn't be published.
Has anybody successfully used Frontpage and publish it to a zope web server?
I have *converted* a FrontPage site to work with Zope. It's not too hard, just use sed (or perl or python) to fixup folder references. I did it with tcsh and 'perl -pi -e "s/_foo/Ffoo/"', IIRC (check the perl man page to make sure I've done that right. The outer loop was something like: foreach f (foo bar baz) find . -name "_$f" mv {} F$f \; find . -type f -exec perl -pi -e "s/_$f/F$f/g" {} \; end Or something similar to that -- you should read the man pages and try it out first. Then you just import the converted site via FTP. The above code doesn't recurse into subdirectories as it should, and the "foo bar baz" stands in for those special directory names FrontPage uses, which I can't remember at the moment, sorry. I wouldn't recommend this as a regular publication method, though. OTOH, if it works generally, you could rewrite the above in Python and create a special import method to load FrontPage sites into Zope. But then if you have Zope, why use FrontPage anymore? ;-) Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
participants (4)
-
Lennart Regebro -
Roberto Marabini -
Terry Hancock -
Troy Farrell