[Zope] Preventing download of Document object
Simon Blandford
home@simonb.org.uk
Mon, 01 Oct 2001 18:25:10 +0000
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.
Regards,
Simon B.
marc lindahl wrote:
>
>>From: Simon Blandford <home@simonb.org.uk>
>>
>>Err yes. But how do I create a Document object in python with this
>>permission disabled? If I don't set the view flag for the whole Document
>>Library then no one will be able to do anything with it
>>
>
>Oh, I see....
>
>In CMF this is easy :)
>
>Without it, I guess, you'd make another product, which just inherited
>everything from Document Library, then you could set permissions separately
>for that product.
>
>