Hi Ben, I've used our crufty old EMarket product for a situation similar to this.. this is the form that lets them download the documents that belong to a particular "shopping basket". They get 24 hours to download the document. There is a "download form" that sets theItemID and theBasketId before they get to this download "method". -steve <dtml-var standard_html_header> <center> <H3>Final Download</H3> <dtml-if "_.has_key('clientCookie')"> <dtml-let theShopper="shoppers.getItem(clientCookie)"> <dtml-if theShopper> <dtml-let theBasket="basketManager.getItem(theBasketId)" paidStatus="theBasket.paidStatus" paidDate="theBasket.paidDate" lastDate="paidDate + 1" currDate="ZopeTime()"> <dtml-if "paidStatus and (currDate > paidDate) and (currDate < lastDate)"> <pre> <dtml-let theDocument="_.getattr(Documents, theItemID)"> <dtml-call "RESPONSE.setHeader('content-type','application/binary')"> <dtml-call "RESPONSE.setHeader('Content- Disposition','inline;filename=%s' % (theItemID))"> <dtml-return "theDocument(_.None, _)"> </dtml-let> <dtml-else> Sorry... you have 24 hours after purchasing a document to download the data. </dtml-if> </dtml-let> <dtml-else> Error! I can't find that shopper... </dtml-if> </dtml-let> <dtml-else> <dtml-comment> <dtml-call "RESPONSE.redirect('setUserCookie?origURL=' + URL0)"> </dtml-comment> No cookie..... checking for new user info.... </dtml-if> </center> <dtml-var standard_html_footer> On Sunday, November 11, 2001, at 09:33 AM, Ben Ocean wrote:
Hi; I need to enable visitors to d'l s/w after purchasing. Of course, I want the d'l page protected, so I presume I'll have to generate a password, etc. Has anyone done this and have some code they could share to get me started? TIA, BenO
_______________________________________________ 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 )