Re: [Zope] To retrieve properties from a dtml document
> Hello Andy, thanks for the advice. > It didn't work. Maybe I'm wrong at any point, so please tell me whether > it worked for you. > I'm aware that this problem has been discussed here before, that it > happens because of Python's object naming, and also that there's a > workaround at least (and just)for expressions, using _['whatever.html'] > Due to the kind of workflow we have, we need all of the documents to be > editable with Dreamweaver at any moment, directly, after the daily WGET > process. Batch-replacing every "_html" with ".html" in file names and > content seems to be very complicated within this scenario. not overly complicated, here is a slightly modfied script (untested) which I used for a similar task (creating an "offline"-version for a client): #!/usr/bin/bash rm -rf myimport wget -r -k http://192.168.0.201:10080/ mv 192.168.0.201/ myimport/ rm myimport/index.html perl -pi -e 's/http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] To retrieve properties from a dtml document
On Mon, Dec 18, 2000 at 09:10:54PM -0500, Ausum wrote: > Hello Andy, thanks for the advice. > It didn't work. Maybe I'm wrong at any point, so please tell me whether > it worked for you. > > I'm aware that this problem has been discussed here before, that it > happens because of Python's object naming, and also that there's a > workaround at least (and just)for expressions, using _['whatever.html'] > > Due to the kind of workflow we have, we need all of the documents to be > editable with Dreamweaver at any moment, directly, after the daily WGET > process. Batch-replacing every "_html" with ".html" in file names and > content seems to be very complicated within this scenario. Going from dreamweaver to Zope, if you are working on unix, batch replacing is EASY, a single find command to change the file names and a simple sed script (or python or perl) to change hrefs. You will need to write such a script anyway, if your servers are Unix or Linux and your Dreamweavers are Windows. You will find that your windows people mix filename case randomly and expect it to work; you will have to canonify all hrefs to a single case convention. If going from zope to dreamweaver, either write the corresponding _ to . scripts and batch it, or write a checkout external script that does it for you. I have not thought about this latter option very much, but the export facility should give you an example of how to do this. I doubt if it is much more than a day's reading and two days coding (and this is being damn generous, as I suspect that this is a ten line script). You still have given no cogent reason for using Zope. If you have only, or predominatly static content, you are paying a huge overhead penalty. If you have mixed static content and dynamic content, use apache and ProxyPass to front-end the dynamic content, and apache to serve the static content. Then you have no conversion worries at all on the static content. Jim ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] To retrieve properties from a dtml document
Hello Andy, thanks for the advice. It didn't work. Maybe I'm wrong at any point, so please tell me whether it worked for you. I'm aware that this problem has been discussed here before, that it happens because of Python's object naming, and also that there's a workaround at least (and just)for expressions, using _['whatever.html'] Due to the kind of workflow we have, we need all of the documents to be editable with Dreamweaver at any moment, directly, after the daily WGET process. Batch-replacing every "_html" with ".html" in file names and content seems to be very complicated within this scenario. Thanks again, Ausum Andy McKay wrote: > > Try > > > > > > -- > Andy McKay, Developer. > ActiveState. > > - Original Message - > From: "Ausum" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, December 18, 2000 3:39 PM > Subject: [Zope] To retrieve properties from a dtml document > > > After some newbie researching I found that whenever I want to retrieve a > > propertie from a dtml document I must use this: > > > > > > > > If thedocument is index_html or whatever_html it works fine, but how > > could I retrieve a propertie from a document named whatever.html? > > > > We need to use the .html extension for every document because we want to > > mirror the site using WGET, leaving the automation just on the > > production stages, in order to upload static pages to our remote server. > > > > Any comment? > > > > > > > > Ausum > > > > ___ > > Zope maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] To retrieve properties from a dtml document
Try -- Andy McKay, Developer. ActiveState. - Original Message - From: "Ausum" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 18, 2000 3:39 PM Subject: [Zope] To retrieve properties from a dtml document > After some newbie researching I found that whenever I want to retrieve a > propertie from a dtml document I must use this: > > > > If thedocument is index_html or whatever_html it works fine, but how > could I retrieve a propertie from a document named whatever.html? > > We need to use the .html extension for every document because we want to > mirror the site using WGET, leaving the automation just on the > production stages, in order to upload static pages to our remote server. > > Any comment? > > > > Ausum > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] To retrieve properties from a dtml document
After some newbie researching I found that whenever I want to retrieve a propertie from a dtml document I must use this: If thedocument is index_html or whatever_html it works fine, but how could I retrieve a propertie from a document named whatever.html? We need to use the .html extension for every document because we want to mirror the site using WGET, leaving the automation just on the production stages, in order to upload static pages to our remote server. Any comment? Ausum ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )