Random ...
 
December 2017
S M T W T F S
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Tags ...
Links



python+zope++:: Hacking COREBlog continued; Member only comments
Posted at 30.Dec,2004 13:37  Comments 0 / Trackbacks 0 / Like this post!
Technorati tag(s):
Hacking COREBlog for member only comments is rather involved too.

Here's what I did:

  • Changed Entry.py to check for authenticated users.
    Here's the diff

  • Changed permissions in ZMI to let members only comment

  • Muddle with CookieCrumbler and login/logout/signup form



  • After going through this effort, I wondered why COREBlog does not have this OOTB (there's the word again ;))

    Maybe it's me. In a perfect world, we probably do not need authentication to post comments. But in my world, users will abuse the system if there's no authentication.

    The patch for both Members only Post and Comment is lightly tested. No guarantee that it'll work with the next version of COREBlog.

    YMMV

    Bookmark and Share

    Is this entry helpful? Comments/Donate/Click some google ads.  
    Trackback is http://myzope.kedai.com.my/blogs/kedai/6/tbping 

    Comments
    Post a comment