Re: do we need plone.app.customerize? was: [Plone-Users] Insufficient privileges on folder_contents
"David Glick (Plone)" <david.glick-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
On 12/9/13, 9:34 PM, Nathan Van Gheem wrote: > Playing with the idea of TTW jbot: > https://github.com/collective/collective.jbot > > This approach isn't "safe." It actually creates temp files for each > template customization so templates aren't run in restricted python. > > I think this could hit most people's use-cases though. > > Thoughts? > Well, not running restricted Python means it only hits the use cases for standalone sites, or shared installations where a Manager in one site is allowed access to other sites. Looks like a good replacement for portal_view_customizations for overriding templates in a standalone site, though. Code review: You should probably create one temp directory for the process and hold a reference to it in a global, rather than creating one for each file. Also, if I'm not mistaken it looks like this takes precedence over the template manager from z3c.jbot, and thus would prevent z3c.jbot from working? David ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk