Re: [Mailman-Developers] [Queries] Related to List Styles in mailman

2015-03-16 Thread prakhar joshi
hi,
 The advantage of first is that we will gonna have all the styles at a
single place and no need to call for the default page from other places as
we will gonna do in the second method. Here but we have to apply the
constraints on the default entries and not on other entries.
  On other hand in second point we will have a unify table with
same functionality for all the entries but we have to call the default
styles which will be at different place.

Thanks,

Prakhar Joshi
DA-IICT,Gandhinagar

On Mon, Mar 16, 2015 at 8:48 AM, Stephen J. Turnbull step...@xemacs.org
wrote:

 prakhar joshi writes:
   hi,
I am Prakhar Joshi (irc name :- _pjoshi). I have few things to
 discuss
   about the storage of new styles for the list that will be created
 through
   rest API. I think we should create a separate table for the list styles
 and
   there we can add the entries for the newly created styles in those
 tables.
   Now we have to work around for storing these default styles in the
   database. Here what I think is we can do it in 2 ways :-
   1) We have two default entries in the table and can only have GET
   request for these two and GET/POST request for rest of the entries
 in
   the table.
   2) We can have these 2 default styles out of the table and these 2
 can
   be called as they are now from their places in the web interface
 directly.

 What are the advantages and disadvanatages of the two approaches as
 far as you are concerned?

 Steve

___
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


[Mailman-Developers] [Queries] Related to List Styles in mailman

2015-03-15 Thread prakhar joshi
hi,
 I am Prakhar Joshi (irc name :- _pjoshi). I have few things to discuss
about the storage of new styles for the list that will be created through
rest API. I think we should create a separate table for the list styles and
there we can add the entries for the newly created styles in those tables.
Now we have to work around for storing these default styles in the
database. Here what I think is we can do it in 2 ways :-
1) We have two default entries in the table and can only have GET
request for these two and GET/POST request for rest of the entries in
the table.
2) We can have these 2 default styles out of the table and these 2 can
be called as they are now from their places in the web interface directly.

I will really need to discuss these things. Any new suggestions are also
welcome.

Thanks,
Prakhar Joshi
DA-IICT,Gandhinagar
___
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


[Mailman-Developers] [Queries] Related to List Styles in mailman

2015-03-15 Thread Stephen J. Turnbull
prakhar joshi writes:
  hi,
   I am Prakhar Joshi (irc name :- _pjoshi). I have few things to discuss
  about the storage of new styles for the list that will be created through
  rest API. I think we should create a separate table for the list styles and
  there we can add the entries for the newly created styles in those tables.
  Now we have to work around for storing these default styles in the
  database. Here what I think is we can do it in 2 ways :-
  1) We have two default entries in the table and can only have GET
  request for these two and GET/POST request for rest of the entries in
  the table.
  2) We can have these 2 default styles out of the table and these 2 can
  be called as they are now from their places in the web interface directly.

What are the advantages and disadvanatages of the two approaches as
far as you are concerned?

Steve
___
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


Re: [Mailman-Developers] [Queries] Related to list styles.

2015-03-13 Thread Barry Warsaw
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


[Mailman-Developers] [Queries] Related to list styles.

2015-03-13 Thread prakhar joshi
hi,
 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.

Thanks,
Prakhar Joshi
DA-IICT,Gandhinagar
___
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


[Mailman-Developers] Queries related to list styles

2015-03-12 Thread prakhar joshi
hi,
 I am 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.

Thanks,
Prakhar Joshi
DA-IICT,Gandhinagar
___
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