[Zope] Doing Python-ish things in Zope...
zope@jules.com
zope@jules.com
Mon, 7 Jun 1999 19:40:30 -0400
On Mon, Jun 07, 1999 at 06:03:26PM -0400, Michel Pelletier wrote:
|> Thinking NT-like or -- gasp! -- Lotus Domino-like, is it
|> possible to set an
|> access control entry on a folder like this so anonymous users
|> won't see it
|> at all? A better solution maybe?
|>
|
|use <!--#tree skip_unauthorized=1-->
Thank you! I did give that a shake like this:
<!--#tree
expr="PARENTS[-1]"
branches_expr="objectValues(['Folder', 'DTML Document'])"
nowrap=1
sort=id
skip_unauthorized=1
-->
and then went into Security for my resources folder. I unchecked Acquire
Perission Settings and made sure Anonymous was unchecked.
Then I get
- - - Cut Here - - -
<body>
Sorry, an error occurred.<p>
<!--
Traceback (innermost last):
File D:\Program Files\ZopeWebSite\lib\python\ZPublisher\Publish.py, line 877, in publish_module
File D:\Program Files\ZopeWebSite\lib\python\ZPublisher\Publish.py, line 590, in publish
(Info: /)
File D:\Program Files\ZopeWebSite\lib\python\OFS\DTMLDocument.py, line 212, in __call__
(Object: index_html)
File D:\Program Files\ZopeWebSite\lib\python\OFS\DTMLDocument.py, line 208, in __call__
(Object: index_html)
File D:\Program Files\ZopeWebSite\lib\python\DocumentTemplate\DT_String.py, line 513, in __call__
(Object: index_html)
File D:\Program Files\ZopeWebSite\lib\python\OFS\DTMLMethod.py, line 147, in __call__
(Object: standard_html_header)
File D:\Program Files\ZopeWebSite\lib\python\DocumentTemplate\DT_String.py, line 513, in __call__
(Object: standard_html_header)
File D:\Program Files\ZopeWebSite\lib\python\OFS\DTMLMethod.py, line 147, in __call__
(Object: sidebar)
File D:\Program Files\ZopeWebSite\lib\python\DocumentTemplate\DT_String.py, line 513, in __call__
(Object: sidebar)
File D:\Program Files\ZopeWebSite\lib\python\TreeDisplay\TreeTag.py, line 154, in render
(Object: a tree tag)
File D:\Program Files\ZopeWebSite\lib\python\TreeDisplay\TreeTag.py, line 244, in tpRender
(Object: ApplicationDefaultPermissions)
File D:\Program Files\ZopeWebSite\lib\python\TreeDisplay\TreeTag.py, line 481, in tpRenderTABLE
(Object: ApplicationDefaultPermissions)
(Info: ([1, []], {'childless_decoration': '', 'id': 'tpId', 'branches_expr': <method Eval.eval of Eval instance at 1765ed0>, 'nowrap': '1', 'expr': <DocumentTemplate.VSEval.Eval instance at 1768770>, 'url': 'tpURL', 'skip_unauthorized': '1', 'sort': 'id'}, [[1, []]], [[1, []]]))
File D:\Program Files\ZopeWebSite\lib\python\TreeDisplay\TreeTag.py, line 400, in tpRenderTABLE
(Object: Navigation)
File D:\Program Files\ZopeWebSite\lib\python\DocumentTemplate\DT_Util.py, line 266, in eval
(Object: zzz.img.closedBook.absolute_url())
File <string>, line 0, in ?
File D:\Program Files\ZopeWebSite\lib\python\DocumentTemplate\DT_Util.py, line 126, in careful_getattr
Unauthorized: Sorry, an error occured
-->
</body>
</html>
- - - Cut Here - - -
Did I screw it up?
--
Now I lay me down to sleep, I pray the firewall will keep, may no
cracker through my network break, a no one smurf me 'till I wake.