Re: [Mailman-Developers] Event notifications

2012-09-07 Thread George Chatzisofroniou
On Wed, Sep 05, 2012 at 09:38:00PM -0400, Barry Warsaw wrote:
 I've taken a mostly organic approach to adding new events, adding them only
 when needed internally.  I'm open to adding new event notifications as
 necessary to support add-ons or new internal functionality.  The way to
 request this is via the Launchpad bug tracker.

Thanks for the response. I requested this via Launchpad [1].

[1]: https://bugs.launchpad.net/mailman/+bug/1047286

-- 
George Chatzisofroniou
sophron.latthi.com


signature.asc
Description: Digital signature
___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Re: [Mailman-Developers] Event notifications

2012-09-07 Thread Barry Warsaw
On Sep 07, 2012, at 02:25 PM, George Chatzisofroniou wrote:

[1]: https://bugs.launchpad.net/mailman/+bug/1047286

I've added the mailman3 tag.

Cheers,
-Barry


signature.asc
Description: PGP signature
___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Re: [Mailman-Developers] Event notifications

2012-09-05 Thread Barry Warsaw
On Aug 02, 2012, at 12:13 PM, George Chatzisofroniou wrote:

It looks like the only notification the core provides is that of new
postings (through the IArchiver interface). It would be great if core
could provide notifications for more events (like someone subscribed
or a new thread started) that also carry more information (for
postings: number of recipients and message size).

So, what i suggest is basically a message bus that components can
register for notifications. I'm not sure if this has been discussed
before and is already in the plans.

Within the Mailman core, events are triggered using zope.event.notify().  This
is basically a very simply subscribe-notify system where class instances
represent the notifications.  A few things internally depend on this to
perform certain actions, such as removing the members of a mailing list before
that mailing list is deleted.

The idea is that plugins could subscribe to those events if they wanted to
perform additional operations when certain events occur.

I've taken a mostly organic approach to adding new events, adding them only
when needed internally.  I'm open to adding new event notifications as
necessary to support add-ons or new internal functionality.  The way to
request this is via the Launchpad bug tracker.

Cheers,
-Barry

___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Developers] Event notifications

2012-08-02 Thread George Chatzisofroniou
Hello everyone,

There is a mechanism that is not in place yet and thus some features
of my metrics app can't be used. I would like to mention it as feature
request. Of' course i'd like to help on its implementation.

It looks like the only notification the core provides is that of new
postings (through the IArchiver interface). It would be great if core
could provide notifications for more events (like someone subscribed
or a new thread started) that also carry more information (for
postings: number of recipients and message size).

I think most of this information would be helpful for other plugins
(like HyperKitty) as well.

So, what i suggest is basically a message bus that components can
register for notifications. I'm not sure if this has been discussed
before and is already in the plans.

Thanks for your time,


-- 
George Chatzisofroniou
sophron.latthi.com
___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9