[Zope] Preventing download of Document object
Stefan H. Holek
stefan@epy.co.at
Tue, 2 Oct 2001 18:12:15 +0200 (CEST)
GuardedFile might help, or at least looking at its code might ;-)
http://www.pobox.org.sg/home/ngps/zope/gf/
Stefan
On Mon, 1 Oct 2001, Simon Blandford wrote:
> Create a Product within a product?
>
> This is a snippet of the code to create the document...
> def addDocumentFile(self, REQUEST):
> """Adds a new document and sets its properties from a form based
> submission"""
>
> self=self.this()
> doc = Document.Document(title=REQUEST.title, container=self)
> self._setObject(doc.getId(), doc)
> doc = self._getOb(doc.getId())
>
> What I need is for the new Document object to not be viewable by default.