Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF

Giving CMFDefault a lick of paint

 

 

Zope cmf RSS feed   Index | Next | Previous | View Threaded


charlie at begeistert

Mar 25, 2010, 9:50 AM

Post #1 of 2 (404 views)
Permalink
Giving CMFDefault a lick of paint

Hi,

on the basis of a current project I'm finally starting work on a pure CSS
skin for CMFDefault. I'm on top of the HTML / CSS and should have
something in trunk soonish. Whilst working on this a couple of things have
struck me that might reasonably be part of this or at least associated
with it. If you use BrowserViews and another CMF skin on top of
CMFDefault, ie. add your own CSS and tweak main_template.pt and maybe a
couple of other items, you can be in for some surprises: there is no
*easy* way to disable local_pt interpolation and the news box because the
folder/@@view.html has them hardwired and this has to be overwritten using
Zope 3 skins. There is a workaround by setting such views back to their
PythonScript equivalents but that strikes me as not the right way to go
about it. Would it be preferable to look at contentproviders or viewlets
for this? Contentproviders look easier to work with but without any way to
register them for a particular skin - would this be a case for an
overrides.zcml? An alternative would just to write views for the various
as required such as been done for macros, and ursine_globals.

As you might see I'm a little confused at coming up with something that is
going to be easy to customise so all feedback appreciated.

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226
_______________________________________________
Zope-CMF maillist - Zope-CMF [at] zope
https://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests


charlie at begeistert

Mar 29, 2010, 8:20 AM

Post #2 of 2 (373 views)
Permalink
Re: Giving CMFDefault a lick of paint [In reply to]

Am 25.03.2010, 16:50 Uhr, schrieb Charlie Clark <charlie [at] begeistert>:

> As you might see I'm a little confused at coming up with something that
> is
> going to be easy to customise so all feedback appreciated.

This is getting eery!

Note to self: viewlets are specific implementations of content providers
that you can bundle together in a viewlet manager.

Both work quite well with the CMF except for one tiny issue: PythonScripts
aren't views so the TALES part of the viewlet will fail nastily even
though this happens after the contentprovider has rendered. Unless I can
find a workaround for this this makes neither available for CMFDefault at
the moment.

Tres, in your speed tests for the ursa-stuff, did you just use ab? I'm
just wondering out loud as to whether it wouldn't even faster to have
@@add_actions_menu, etc. directly returning to main_template?

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226
_______________________________________________
Zope-CMF maillist - Zope-CMF [at] zope
https://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Zope cmf RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.