On Mar 13, 2015, at 01:23 PM, prakhar joshi wrote:

>I have some queries related to project for GSOC'15 named "Improving list
>styles" , as I have seen right now styles have been dependent on zope
>interface. So do we have to remove the zope dependencies ? or We have to work
>around to make a UI that can register the styles (that may not be a good way)
>, I really need what are the intentions behind that project as that will
>gonna help me in proceeding further for that project. Hoping for reply.

There are a few different approaches one could take.

Currently, you define a list of Python import paths which are used to search
for styles (specifically, objects implementing the IStyle interface).  These
are collected in the style manager and then when a mailing list is created
through the create_list() function (in app/lifecycle.py), the style name is
looked up and applied to the newly created mailing list.

The simplest part of this task would be to query the REST API for the
available styles, and provide a selection menu for the style to apply when
creating a new mailing list.  This really wouldn't be enough for a GSoC
though.

The next step might be to add a ui for defining new styles.  You'd have to
work out how to store the style persistently so that it could be used later,
and I'm not sure whether that would be best by writing to the database, or
just creating a file on disk that can be imported into the style manager.
You'd want to handle composition of styles too.

All of these keep the basic idea that styles are applied when the mailing list
is created, but once created a style is no longer used.  We've talked about
building a system where styles would be persistently associated with the
mailing list so that if you change values in the style, all lists connected to
that style would get updated.  That would require a pretty extensive reworking
of both the style system and mailing lists, so I think it would actually be
*too* big for a GSoC.

Cheers,
-Barry

_______________________________________________
Mailman-Developers mailing list
Mailman-Developers@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

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

Reply via email to