[z3-five] Re: [Plone-developers] Some Five views in Plone products
Sidnei da Silva
sidnei at enfoldsystems.com
Sat Sep 17 15:01:51 CEST 2005
On Sat, Sep 17, 2005 at 12:29:48PM +0100, Tim Hicks wrote:
| > Much simpler solution and doesn't harm the environment.
|
| That sounds like a far better solution.
|
| It seems like we'd need a toggle to enable/disable this behaviour for two
| reasons:
|
| 1. portal_skins-lookup adds some extra overhead that some people (i.e.
| filesystem-only developers) won't want;
Correct.
| 2. (I assume) Five shouldn't depend on CMF, so it probably shouldn't
| automatically try to use portal_skins when getting views.
|
| Perhaps something akin to:
|
| <browser:page
| for=".interfaces.IMyInterface"
| template="browser/my_listing.pt"
| permission="zope2.View"
| name="listing"
| skins_lookup="True" />
|
| This would cause the view.index attribute to become a computed attribute
| that would first try to get hold of the 'my_listing' template from the
| skins.
|
| Is this reasonable?
Looks very reasonable to me. Instead of using <browser:page> though it
would be something custom, probably living in the CMF and named
similarly, like <cmf:page>.
--
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com
More information about the z3-five
mailing list