[Plone-Users] A bit of help with a Collective project...

0 views
Skip to first unread message

Shane Graber

unread,
Dec 31, 2009, 4:41:54 PM12/31/09
to plone_users
I was wondering if I could have someone look over a project I'm
working on for the collective.  I've created a project called
'collective.intensedebate' (based on the collective.disqus [1]
codebase) that integrates the Intense Debate [2] comments with Plone.
Initially I've uploaded it to github [3] until I get the issues worked
out and feel OK having it in a more commonly stored repository where
normal Plone products are located.

While working with the collective.disqus codebase, I've come to learn
that there are a couple issues that are wrong w/ the product and I
can't seem to correct for Plone 3.1.7 (the author states that it
uninstalls properly in Plone 4):

1. The /default/viewlets.xml doesn't hide the plone comments view
properly when installed

2. The /uninstall/viewlets.xml doesn't uninstall the Intense Debate
view properly

3. The uninstall routine at /Extensions/Install.py doesn't uninstall
the configlet properly/cleanly. The action @ portal_controlpanel is
removed based on what I see in the ZMI and from the control panel w/in
plone but you can still get to @@intensedebate-controlpanel even after
uninstalling the product in the Plone control panel.

I know I'm leaving some 'junk' w/in Plone after the uninstall and I
don't want to release this into the collective svn until it works
properly.

What I'm looking for is someone that would be willing to mentor me a
bit so that I can fix the problems with this product and that I can
subsequently contribute better to the Collective with other products
in the future.  Is there someone out there that would be willing to
look at this and help me a bit?

Thanks,

Shane Graber

[1] https://svn.plone.org/svn/collective/collective.disqus/trunk/
[2] http://www.intensedebate.com/
[3] http://github.com/sgraber/collective.intensedebate

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Plone-Users mailing list
Plone...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users

Martin Aspeli

unread,
Dec 31, 2009, 9:02:46 PM12/31/09
to plone...@lists.sourceforge.net
Shane Graber wrote:
> I was wondering if I could have someone look over a project I'm
> working on for the collective. I've created a project called
> 'collective.intensedebate' (based on the collective.disqus [1]
> codebase) that integrates the Intense Debate [2] comments with Plone.
> Initially I've uploaded it to github [3] until I get the issues worked
> out and feel OK having it in a more commonly stored repository where
> normal Plone products are located.

Try the product-developers list. :)

Martin

--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

Luca

unread,
Jan 2, 2010, 8:53:05 AM1/2/10
to Shane Graber, plone_users
On Thu, Dec 31, 2009 at 10:41 PM, Shane Graber <sgr...@gmail.com> wrote:
> I know I'm leaving some 'junk' w/in Plone after the uninstall and I
> don't want to release this into the collective svn until it works
> properly.
>

I think you can/must put your code on the SVN trunk of your project.
This will help people that wanna help you to see what's wrong.
What you can/must skip for now is to release an official version on pypi.

--
-- luca

Shane Graber

unread,
Jan 2, 2010, 6:03:13 PM1/2/10
to Luca, plone_users
Ok, I'll get it into svn so others can contribute.  I've got it working on my laptop and so far it ships with comments working along with 3 configurable portlets to allow people to showcase various comment statistics.

I would like to add a custom view to Collections that show the number comments so that it would turn a collection view into a pseudo blog view.  That's the next iteration...  :)

Shane



On Sat, Jan 2, 2010 at 8:53 AM, Luca <luc...@gmail.com> wrote:
On Thu, Dec 31, 2009 at 10:41 PM, Shane Graber <sgr...@gmail.com> wrote:
> I know I'm leaving some 'junk' w/in Plone after the uninstall and I
> don't want to release this into the collective svn until it works
> properly.
>

I think you can/must put your code on the SVN trunk of your project.
This will help people that wanna help you to see what's wrong.
What you can/must skip for now is to release an official version on pypi.

--
-- luca



--
Shane  ∞  http://google.com/profiles/sgraber
---------
I'm so cool I can be used to prove Bose-Einstein Condensation!

Jon Stahl

unread,
Jan 3, 2010, 1:50:53 AM1/3/10
to Shane Graber, plone_users, Luca
2010/1/2 Shane Graber <sgr...@gmail.com>:

> Ok, I'll get it into svn so others can contribute.  I've got it working on
> my laptop and so far it ships with comments working along with 3
> configurable portlets to allow people to showcase various comment
> statistics.
>
> I would like to add a custom view to Collections that show the number
> comments so that it would turn a collection view into a pseudo blog view.
> That's the next iteration...  :)

Check out the blog_view template from collective.scrawl. ;-)

:jon

Shane Graber

unread,
Jan 3, 2010, 8:17:24 AM1/3/10
to Jon Stahl, plone_users, Luca
Thanks!  I'll definitely give it a look.  :)

Shane



On Sun, Jan 3, 2010 at 1:50 AM, Jon Stahl <jons...@gmail.com> wrote:
2010/1/2 Shane Graber <sgr...@gmail.com>:
> Ok, I'll get it into svn so others can contribute.  I've got it working on
> my laptop and so far it ships with comments working along with 3
> configurable portlets to allow people to showcase various comment
> statistics.
>
> I would like to add a custom view to Collections that show the number
> comments so that it would turn a collection view into a pseudo blog view.
> That's the next iteration...  :)

Check out the blog_view template from collective.scrawl. ;-)

:jon



Shane Graber

unread,
Jan 3, 2010, 9:09:14 AM1/3/10
to Jon Stahl, plone_users, Luca
You know, after looking at things a bit, it might be better if I leave collective.intensedebate in its present state (w/o registering a custom view for Topics/Smart Folders) as otherwise I'm duplicating blog efforts.  Maybe Scrawl / Quills would want to somehow work with integrating my Intense Debate plugin?  It's pretty much a drop-in replacement of Plone's commenting and the only thing I can think of is that it would be nice to show a "Comments (#)" on a blog listing.  I'm pretty committed to maintaining this product as we're using Intense Debate on AdvancedAquarist.com.

Thoughts?

Shane

Jon Stahl

unread,
Jan 3, 2010, 11:47:37 AM1/3/10
to Shane Graber, Jon Baldivieso, plone_users
Scrawl (by design) leaves Plone's commenting systems untouched and
tries to remain completely ignorant of commenting. I'm hardly enough
of a Plone programmer to be highly prescriptive here, but I would
think the best approach might be to have your Intense Debate plugin
override Plone's native "get # of comments" mechanism with its own
count; that way, other things that try to count comments (like Scrawl
and other blog products) could remain blissfully unaware that
anything's changed beneath them.

(cc'ing Jon Baldivieso, creator of Scrawl, here)

:Jon

------------------------------------------------------------------------------

Shane Graber

unread,
Jan 3, 2010, 6:47:01 PM1/3/10
to Jon Stahl, Jon Baldivieso, plone_users
I was not aware that Plone had a 'get # of comments' mechanism but I
now see that by looking @ the two Scawl blogs that apparently it does
(ex: Read comments ( 2 so far)). I'll give that a look. Might that
be a Scrawl-specific template modification? I don't seem to see that
in the Collection templates -- at least for Plone 3.1.

Shane

Jon Stahl

unread,
Jan 4, 2010, 10:50:21 AM1/4/10
to Shane Graber, Jon Baldivieso, plone_users
Honestly, I'm not sure. I doubt we touched the comments system,
because not touching it was an explicit design goal for Scrawl. But
we may have written some little function to count the # of comments on
an object for our template and if so, then it seems it might be
sensible to try to override that in ID? I'll defer to the superior
wisdom of JonB here.

:jon

Shane Graber

unread,
Jan 4, 2010, 11:31:42 AM1/4/10
to Jon Baldivieso, Jon Stahl, plone_users
Yep, looks like about 8-9 lines of ZPT that would need to be adjusted
with ID's comments javascript. Not bad overall.

Shane


On Mon, Jan 4, 2010 at 11:14 AM, Jon Baldivieso <jo...@groundwire.org> wrote:


> On Jan 3, 2010, at 3:47 PM, Shane Graber wrote:
>
>> I was not aware that Plone had a 'get # of comments' mechanism but I
>> now see that by looking @ the two Scawl blogs that apparently it does
>> (ex: Read comments ( 2 so far)).  I'll give that a look.  Might that
>> be a Scrawl-specific template modification?
>

> This isn't Scrawl-specific; it's just portal_discussion. Systems providing alternatives to portal_discussion would probably have to override Scrawl's templates. Like Jon said, Scrawl is pretty ginger.
>
> Jon
> --
> Jon Baldivieso
> Web Development Program Manager
> Groundwire
> 503.222.5064
> jo...@groundwire.org
> http://groundwire.org
>
> ONE/Northwest is now Groundwire!

Shane Graber

unread,
Jan 5, 2010, 7:06:48 AM1/5/10
to plone_users
Ok, I've requested write access to the collective. Now to wait for the
'permission granted' email. :p

Shane

Raphael Ritz

unread,
Jan 7, 2010, 7:45:17 AM1/7/10
to plone...@lists.sourceforge.net
Shane Graber wrote:
> Ok, I've requested write access to the collective. Now to wait for the
> 'permission granted' email. :p

Just try every now-and-then in case you don't hear back.

Welcome on board ;-)

Raphael


>
> Shane

Reply all
Reply to author
Forward
0 new messages