Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Members / jhb / building the listing product

building the listing product

by Jörg Baach last modified Sep 21, 2007 04:58 PM
notes on building the listing product

One needs to include permissions of custom views:

class Listing(BaseContent):
schema = Listingschema
archetype_name = portal_type = meta_type = 'Listing'
typeDescription = "A listing, something offered or wanted"
content_icon = 'listing.gif'
actions = (dict(id='view',
name='View',
action='string:${object_url}/listing_view',
permission=(permissions.View,)),)

Otherwise unauthorized (or non-admin users) can't read it


To get access to the raw data of an attribute containing text/html, one needs to pass the raw parameter:

<p tal:content='structure python:here.getBody(raw=1)'></p>

its not valid to access it directly

<p tal:content='structure python:here.getRawBody()'></p>

This will raise a security exception
Filed under: ,
Add comment

You can add a comment by filling out the form below. Plain text formatting.

Question: What is 42 minus 19?
Your answer: