Hi,
I was writing the new 'IStyle' interface and after completing some part of
it I realised that the code has become a bit repetitive as all the
styleable attributes which are present in src/interfaces/mailinglist.py are
to be copied to src/interfaces/styles.py in IStyle interface. For example,

advertised = Attribute(
    """Advertise this mailing list when people ask for an overview of the
available mailing lists.""")

This piece of code is now present in both src/interfaces/mailinglist.py and
src/interfaces/styles.py. Is there any way to correct it or is it fine?
One approach that I am able to think of is to write one seperate interface
containning all the styleable attributes and implement that interface both
in src/model/mailinglist.py and src/model/styles.py.

Thanks,
Harshit Bansal.
_______________________________________________
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