Hi, I'm probably not explaining right, (certainly wouldn't be the first time). She is connecting through an ODBC connection and she can run a select * and pull up all the links for the reports. The links are hardcoded in the db. When, for example, the Zope page is requested it runs the select all query and presents a list with dates and report name.(for 8 banks). That works fine.... The the problem comes in when she has to ask if a link to a file is available (it may or may not be) if it is then put it up, if it isn't, put up the old file. Thanks, Bob ----- Original Message ----- From: "Andy McKay" <andym@ActiveState.com> To: "Bob Campbell" <rcam@psouth.net>; <Zope@zope.org> Sent: Wednesday, July 18, 2001 7:06 PM Subject: Re: [Zope] From ColdFusion to Zope: help with <dtml-if>?
Dtml has no access to the filesystem. Either put your records into Zope, or write an external method in Python / Perl to do this.
Cheers. -- Andy McKay.
----- Original Message ----- From: "Bob Campbell" <rcam@psouth.net> To: <Zope@zope.org> Sent: Wednesday, July 18, 2001 3:51 PM Subject: [Zope] From ColdFusion to Zope: help with <dtml-if>?
Hi, One of our business line developers is used to working with ColdFusion and is struggling, as we all are-:), with Zope. We are literally surrounded with piles of documents, e-books, and e-mail messages "explaining" the different aspects of Zope. We are slowly "getting it" and liking it... However...
The developer (and myself) have been trying to figure this out for two days and push is now coming to shove and I'm hoping the list can help.
I asked her write down in plain English what she is trying to accomplish and I would post it and see if anyone has a solution or solid direction to pursue. The system she developed publishes hundreds of multipage reports using MS Access and Acrobat (pdf). Access holds the links to every report, they are dated and published throughout a two week cycle. The reports themselves reside on numbered folders on a local drive (e:) In ColdFusion she would do something like, IF Fileexists (001delingprt) then .....and so on through the reports... Here is what she wrote
___________________________________________________________________________
Ok, here it is in plain English...
I need to determine if a certain file exists. The filename is located
in a
certain variable. If it does exist do something, else do something else.
For example: Say the file is called e:\test.pdf. This path exists in a variable called vartest
If vartest exists then show the current month's file else show last month's file.
Hope there's an answer.
Sheree Beaudette, AVP Applications Support Analyst Banknorth Group, Commercial Services sbeaudette@banknorth.com
Thanks, Bob Campbell Business Line Intranet Development Banknorth Group 207-761-8595 bcampbell@banknorth.com
_______________________________________________ Zope maillist - Zope@zope.org 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 - Zope@zope.org 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 )