[Zope-CMF] Re: DTML, RSS customization and my incompetency...
Dmitry S. Makovey
dmitry at athabascau.ca
Tue Aug 24 19:40:21 EDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On August 24, 2004 12:51 pm, Michael Haubenwallner wrote:
> Dmitry S. Makovey wrote:
> > Anybody has any idea what's going on? And can anybody show me right
> > direction (I don't want to put more logic in itemRSS - I'd like to make
> > it per-type customizable)?
>
> don't do that - just alter itemRSS and switch formating per portal_type
> you want a different rendering for. this is easy to do, fast and scales
> well.
Actually it seems to scale worse than what I was trying to do as it requires
modifications to itemRSS every time I introduce new type, unless I'm going to
provide some kind of central registry for renderers, which generates some
overhead in performace IMO.
> RSS in CMFDefault is 'just' a collection of dtml methods that issue a
> query to portal_catalog and format the results to a template.
>
> > P.S.
> > Also rssBody doesn't really care for state of the documents which worries
> > me somewhat.
>
> you get the objects you are allowed to view by your role - try access
> the feed as 'anonymous' and you will only get published objects in the
> results.
oops didn't think about that...
>
> > - --
> > Dmitry Makovey
> > Web Systems Administrator
> > Athabasca University
> > (780) 675-6245
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.2.4 (FreeBSD)
- --
Dmitry Makovey
Web Systems Administrator
Athabasca University
(780) 675-6245
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFBK9HlyDrVuGfS98QRAnN9AJ9Gv9mgRs5dNUxiYq8roWRAxiSHMwCgiLU0
KN6q+Ucxl0IIrbAw25Qov4c=
=9/PV
-----END PGP SIGNATURE-----
More information about the Zope-CMF
mailing list