[Zope-dev] BannerFolder (Re: [Zope-dev] TIP: Must enable 'new' for FreeBSD Python 1.5.2 port to install PythonMethods)
   
    Lalo Martins
     
    lalo@hackandroll.org
       
    Fri, 18 Feb 2000 20:55:54 -0200
    
    
  
On Fri, Feb 18, 2000 at 02:54:13PM -0700, Bill Anderson wrote:
> 
> What Counters? Are you talking about the hits, views, or remaining_views
> ?
> Inguiring minds need to know. :)
All of them. It's a known, hmm, ``TODO item'' :-) for
BannerFolder.
> FWIW, I am in the middle of a 'rewrite' of that product. I am adding the
> ability to 'weight' banners, view reports, and track click-throughs.
This is very good. I was trying to figure out a way to implement weighting.
> Other changes are that it is being written in Python instead of
> ZClasses.
This is _not_ good, please reconsider. ZClasses are the ``new''
and ``right'' way to extend Zope. Restarting the server each
time you make a minor modification is bad. ZClasses are more
maintanable too.
What is important is to abstract out the counters; perhaps, let
the BannerFolder decide how they are stored, or use acquisition
(because BannerAd objects are often useful outside a
BannerFolder - I use one for my ``hosted by GFDigital''
button). Something like calling
``get_counter (this(), _, counter_name)'' and set_counter
likewise. So all you have to do is drop a SQLMethod or
something in the acquisition path.
If you keep it ZClass-based, I'd be glad to make you the
official maintainer of the Product for the next few versions
(in short, as long as you're interested).
[]s,
                                               |alo
                                               +----
--
      I am Lalo of deB-org. You will be freed.
                 Resistance is futile.
http://www.webcom.com/lalo      mailto:lalo@webcom.com
                 pgp key in the web page
Debian GNU/Linux       ---       http://www.debian.org
Brazil of Darkness   --   http://zope.gf.com.br/BroDar