[Zope] permission for Anonymous to access document_src
Tino Wildenhain
tino@wildenhain.de
Tue, 26 Nov 2002 17:06:16 +0100
Hi Rares,
just make a python script "viewsource"
text=3Dcontext.document_src()
context.REQUEST.RESPONSE.setheader('content-type','text/plain')
context.REQUEST.RESPONSE.setheader('content-length',len(text)
return text
And set proxy roles for that script accordingly.
A call to path/yourdocument/viewsource will yield the source for
any user then.
HTH
Tino
--On Dienstag, 26. November 2002 17:09 +0200 Rares Vernica=20
<verni0@hotmail.com> wrote:
> No, for accesing the document source (document_src() method).
>
>> From: Dani=EBl Hooymans <d.hooymans@edufocus.nl>
>> To: "Rares Vernica" <verni0@hotmail.com>
>> Subject: RE: [Zope] permission for Anonymous to access document_src
>> Date: Tue, 26 Nov 2002 16:02:29 +0100
>>
>> For just viewing the document set the view permission
>>
>> > -----Original Message-----
>> > From: Rares Vernica [mailto:verni0@hotmail.com]
>> > Sent: dinsdag 26 november 2002 15:52
>> > To: zope@zope.org
>> > Subject: [Zope] permission for Anonymous to access document_src
>> >
>> >
>> > Hi,
>> >
>> > What permission(s) I need to enable for Anonymous in order to
>> > access the
>> > document_src?!
>> >
>> > Thanks in advance,
>> > Rares
>> >
>> > _______________________________________________
>> > 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 )
>> >
>
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=3Dfeatures/junkmail
>
>
> _______________________________________________
> 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 )