Skinny 0.4 no longer leaks Plone views

3 messages Options
Embed this post
Permalink
Daniel Nouri () Skinny 0.4 no longer leaks Plone views
Reply Threaded More More options
Print post
Permalink
Hi (and sorry for cross-posting),

I've fixed Skinny's problem of leaking Plone views like
'/folder_listing' and friends.

What is Skinny?  It's a package to help you get started quickly with
developing a seperate, public-facing skin for your Plone site.  It's
been described as being vastly easier than skinning Plone the
conventional way.  But it also has a few drawbacks; one being that you
can't use it for community sites where people other than your site
editors log in and modify content.

If you're struggling with skinning your Plone site, I suggest you try it
out.  The package comes with an example skin that shows you how it
works.

You can find out more about Skinny and download it here:

  http://pypi.python.org/pypi/collective.skinny
  http://danielnouri.org/blog/devel/zope/plone-3-theming-shanes-theme.html

The last thing on my todo is to make Skinny easy to use as a *library*
package, instead of using it as a template, and then to create a
ZopeSkel template based on that.


--
http://danielnouri.org


_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui
Martin Aspeli () Re: Skinny 0.4 no longer leaks Plone views
Reply Threaded More More options
Print post
Permalink
Daniel Nouri wrote:
> Hi (and sorry for cross-posting),
>
> I've fixed Skinny's problem of leaking Plone views like
> '/folder_listing' and friends.

Just curious - how did you achieve this?

Martin

--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book


_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui
Daniel Nouri () Re: Skinny 0.4 no longer leaks Plone views
Reply Threaded More More options
Print post
Permalink
Martin Aspeli writes:

> Daniel Nouri wrote:
>> Hi (and sorry for cross-posting),
>>
>> I've fixed Skinny's problem of leaking Plone views like
>> '/folder_listing' and friends.
>
> Just curious - how did you achieve this?

Using plone.postpublicationhook.  Which is what I think you suggested at
some point.

The implementation allows anything that has gone through the main view
(and thus has been marked as IPublicLayerOK), plus anything that has
"/++resource++skinny/" in it.  I've thought about whitelisting anything
that doesn't have a header content type of "text/html" instead, but I
guess both work equally well.

  http://dev.plone.org/collective/changeset/84413

--
http://danielnouri.org


_______________________________________________
UI mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/ui