[Zope3-Users] Setting custom content type when publishing a
resource
Andrew Groom
andrew at reurbanise.co.nz
Wed Oct 18 16:48:39 EDT 2006
Excellent, thanks Frank. I've managed to get it working now.
Cheers, Andrew.
FB wrote:
> Hi,
>
> On Wed, Oct 18, 2006 at 07:58:45PM +1300, Andrew Groom wrote:
>
> [snip]
>
>> <browser:page
>> for="*"
>> name="vortexgdna.xpi"
>> class=".xpipublisher.XPIPublisherView"
>> permission="zope.View"/>
>>
>> </configure>
>>
>> (It complained if I didn't have the "for" attribute in there, btw)
>
> Sorry, it was late (or early?)...
>
> The browserview code i sent you, was copy'n pasted from my application.
> You have to customized it to your needs. context is in case of my autofile
> object a persistent non-container object containing a single file which
> is stored in the data attribute.
>
> Regards,
>
> Frank
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
--
-----------------------------------
Reurbanise - Urban Sustainability
ph: (03) 3528 055, mobile: 0274 992 569
http://www.reurbanise.co.nz
More information about the Zope3-users
mailing list