[Mailman-Developers] [GSoC 2014] Cordova/Android App for GNU Mailman Admin Interface

Bhargav Golla bgolla at g.clemson.edu
Wed Mar 12 18:07:58 CET 2014


Hi

I hope my mail hasn't missed your attention. I would be very much obliged
if someone could answer this question so that I can go ahead and write
proposal.

Thanks


On Mon, Mar 10, 2014 at 9:23 AM, Bhargav Golla <bgolla at g.clemson.edu> wrote:

> Hello
>
> I have gone through the Admin interface and all functions that can be
> achieved with the REST API. I intend to have a login screen where a user
> can enter URL for the REST API endpoint, REST Username and password. We
> will use this to subsequent authenticate all requests made to fetch
> subscribers list, domains list, etc.
>
> I was wondering if I could get some feedback on this. I will start writing
> my proposal based on this starting point and list out what all I would
> features I would be implementing during the period of GSoC.
>
> Regards
>
>
> On Wed, Mar 5, 2014 at 10:32 AM, Bhargav Golla <bgolla at g.clemson.edu>wrote:
>
>> Thanks. I would have probably missed it out the first time. I will go
>> through the web UI and also the documentation of REST API to understand
>> what all functions need to be implemented in the admin interface for a user.
>>
>> Regards
>>
>>
>> On Wed, Mar 5, 2014 at 10:25 AM, Rajeev S <rajeevs1992 at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> You will be asked for the create user prompt only the first time you run
>>> syncdb.That's why you don't see it now.
>>>
>>> Once the DB is created, only new tables, specified via django models,
>>> get added to DB during the syncdb.
>>>
>>>
>>> *Regards,Rajeev S*
>>> *Government Engineering College,Thrissur*
>>> *http://rajeevs.tk <http://rajeevs.tk>*
>>>
>>>
>>> On Wed, Mar 5, 2014 at 8:47 PM, Bhargav Golla <bgolla at g.clemson.edu>wrote:
>>>
>>>> Hi Rajeev
>>>>
>>>> I wasn't asked if I wanted to create a super user when I executed
>>>> python manage.py syncdb. This was the output I got with syncdb:
>>>> Creating tables...
>>>> Installing Custome SQL...
>>>> Installing indexes...
>>>> Installed 0 object(s) from 0 fixture(s)
>>>>
>>>> I tried python manage.py createsuperuser and was able to login with
>>>> details I provided there.
>>>>
>>>> Thanks for your help.
>>>>
>>>> Regards
>>>>
>>>>
>>>> On Wed, Mar 5, 2014 at 10:00 AM, Rajeev S <rajeevs1992 at gmail.com>wrote:
>>>>
>>>>> Hi Bhargav,
>>>>>
>>>>> You will be asked whether to *add a superuser* during *syncdb*. If
>>>>> you answered no to that, do *python manage.py createsuperuser * and
>>>>> use that username and password to login.
>>>>>
>>>>>
>>>>> *Regards,Rajeev S*
>>>>> *Government Engineering College,Thrissur*
>>>>> *http://rajeevs.tk <http://rajeevs.tk>*
>>>>>
>>>>>
>>>>> On Wed, Mar 5, 2014 at 8:05 PM, Bhargav Golla <bgolla at g.clemson.edu>wrote:
>>>>>
>>>>>> Hi Abhilash
>>>>>>
>>>>>> If you mean the last step of installation where we do cd
>>>>>> postorius_standalone;python manage.py syncdb, I wasn't asked for any
>>>>>> username/password. I checked the settings.py and it doesn't have any
>>>>>> specific default username/password.
>>>>>>
>>>>>> And the http://localhost:8001/3.0 worked for me.
>>>>>>
>>>>>>
>>>>>> On Wed, Mar 5, 2014 at 9:22 AM, Abhilash Raj <raj.abhilash1 at gmail.com
>>>>>> >wrote:
>>>>>>
>>>>>> > Hi Bhargav,
>>>>>> >
>>>>>> > On Wednesday 05 March 2014 07:36 PM, Bhargav Golla wrote:
>>>>>> > > Thanks for that change Rajeev. I was able to get the Web UI up and
>>>>>> > running.
>>>>>> > > I was trying to find out the default Username and password for
>>>>>> this but
>>>>>> > was
>>>>>> > > unable to. When I was exploring docs in mailman.client and some
>>>>>> config
>>>>>> > > files in mailman, I found that the default username and password
>>>>>> for
>>>>>> > admin
>>>>>> > > is restadmin and restpass. Tried that and was out of luck there
>>>>>> too.
>>>>>> > Could
>>>>>> > > you help me with the default username and password details?
>>>>>> >
>>>>>> > While setting up Postorius(the web UI) when you do 'python manage.py
>>>>>> > syncdb' for the first time, it asks you to create admin. You can
>>>>>> log in
>>>>>> > using those credentials. 'restadmin' and 'restpass' are the
>>>>>> credentials
>>>>>> > for the mailman rest server.
>>>>>> >
>>>>>> > > Also, there is a using.txt doc in mailman.client which says we
>>>>>> can make
>>>>>> > the
>>>>>> > > REST requests by connecting to http://localhost:9001/3.0 using
>>>>>> username
>>>>>> > and
>>>>>> > > password. Should the URL be http://localhost:9000/3.0 for this
>>>>>> example
>>>>>> > or
>>>>>> > > would it be any different?
>>>>>> >
>>>>>> > AFAIK it is 'http://localhost:8001/3.0'. (Try it once. If I am
>>>>>> wrong
>>>>>> > please someone correct me)
>>>>>> >
>>>>>> > >
>>>>>> > > Thanks
>>>>>> > >
>>>>>> > >
>>>>>> > > On Mon, Mar 3, 2014 at 1:38 PM, Rajeev S <rajeevs1992 at gmail.com>
>>>>>> wrote:
>>>>>> > >
>>>>>> > >> Hi Bhargav,
>>>>>> > >>
>>>>>> > >> Just do *mailman start*, without the bin.
>>>>>> > >>
>>>>>> > >> I have edited the wiki.
>>>>>> > >>
>>>>>> > >>
>>>>>> > >> *Regards, Rajeev S*
>>>>>> > >> *Government Engineering College,Thrissur*
>>>>>> > >> *http://rajeevs.tk <http://rajeevs.tk>*
>>>>>> > >>
>>>>>> > >>
>>>>>> > >> On Mon, Mar 3, 2014 at 10:37 PM, Bhargav Golla <
>>>>>> bgolla at g.clemson.edu
>>>>>> > >wrote:
>>>>>> > >>
>>>>>> > >>> Thanks Barry and Terri for your feedback.
>>>>>> > >>> I was trying to install Postorius locally and analyze what all
>>>>>> would be
>>>>>> > >>> required in a mobile app for Admin. Doing the same, I have hit a
>>>>>> > >>> roadblock.
>>>>>> > >>> I am using the wiki provided here[1]. I tried to install
>>>>>> mailman using
>>>>>> > >>> "set
>>>>>> > >>> up sources" part of the wiki. Though python setup.py install
>>>>>> executes
>>>>>> > >>> without any errors, I am unable to see the folder bin/ in the
>>>>>> same
>>>>>> > >>> directory. So, even though I proceed with further setup, I am
>>>>>> getting a
>>>>>> > >>> "Mailman REST API not available. Please start mailman core" on
>>>>>> my
>>>>>> > >>> localhost:8000 webpage. Could anyone help me here?
>>>>>> > >>>
>>>>>> > >>> [1]
>>>>>> > >>>
>>>>>> > >>>
>>>>>> >
>>>>>> http://wiki.list.org/display/DEV/A+5+minute+guide+to+get+the+Mailman+web+UI+running
>>>>>> > >>>
>>>>>> > >>> Thanks
>>>>>> > >>>
>>>>>> > >>>
>>>>>> > >>> On Sun, Mar 2, 2014 at 1:18 AM, Terri Oda <terri at toybox.ca>
>>>>>> wrote:
>>>>>> > >>>
>>>>>> > >>>>
>>>>>> > >>>> On 2014-02-28, 7:36 AM, Bhargav Golla wrote:
>>>>>> > >>>>
>>>>>> > >>>>> I have a few questions regarding this idea.
>>>>>> > >>>>> 1. I intend to develop it on Cordova since it will help in
>>>>>> porting
>>>>>> > the
>>>>>> > >>> app
>>>>>> > >>>>> easily to multiple platforms. Were there any ideas in this
>>>>>> directions
>>>>>> > >>>>> regarding going native or hybrid?
>>>>>> > >>>>>
>>>>>> > >>>>
>>>>>> > >>>> Personally, I'd prefer if we went hybrid and had an html5
>>>>>> webapp that
>>>>>> > >>>> could be used straight over the web for mobile users who don't
>>>>>> want to
>>>>>> > >>>> install an app, with Cordova used to build the individual
>>>>>> platform
>>>>>> > >>> apps.  I
>>>>>> > >>>> may not be the mentor on this one, though, so I'm happy to
>>>>>> defer to
>>>>>> > >>> whoever
>>>>>> > >>>> the final mentor is on this front.
>>>>>> > >>>>
>>>>>> > >>>> Incidentally, I've been using Intel's XDK for building Cordova
>>>>>> apps
>>>>>> > >>> lately
>>>>>> > >>>> and highly recommend it for quick testing on various platforms
>>>>>> and
>>>>>> > >>> screen
>>>>>> > >>>> sizes.  I've found it a very useful tool, and not just because
>>>>>> I work
>>>>>> > >>> for
>>>>>> > >>>> Intel now!
>>>>>> > >>>>
>>>>>> > >>>>  2. Can I assume that all mailing lists built by Mailman
>>>>>> support the
>>>>>> > >>> REST
>>>>>> > >>>>> interface? Also, I have tried to see if I can get JSON
>>>>>> responses and
>>>>>> > I
>>>>>> > >>> am
>>>>>> > >>>>> unable to by adding a HTTP Accept Header to take
>>>>>> "application/json".
>>>>>> > >>> Am I
>>>>>> > >>>>> doing anything wrong or is JSON not implemented?
>>>>>> > >>>>>
>>>>>> > >>>>
>>>>>> > >>>> I don't know the answer to this off the top of my head: Barry?
>>>>>> > >>>>
>>>>>> > >>>>
>>>>>> > >>>>  3. As a starter, could I ignore internationalization for
>>>>>> GSoC, but
>>>>>> > >>>>> implement interface in such a way as to be able to
>>>>>> internationalize
>>>>>> > it
>>>>>> > >>>>> easily?
>>>>>> > >>>>>
>>>>>> > >>>>
>>>>>> > >>>> We don't expect you to actually translate anything, don't
>>>>>> worry. :)
>>>>>> > But
>>>>>> > >>>> you should definitely build as much as possible so that
>>>>>> > >>>> internationalization will be easy: make sure there's a quick
>>>>>> way to
>>>>>> > get
>>>>>> > >>> a
>>>>>> > >>>> list of strings that need translation, at least.  Some of the
>>>>>> strings
>>>>>> > >>> may
>>>>>> > >>>> be already translated in other components of Mailman, so you
>>>>>> may be
>>>>>> > >>> able to
>>>>>> > >>>> get some translations to use to test if you have time at the
>>>>>> end of
>>>>>> > the
>>>>>> > >>>> summer for internationalization.
>>>>>> > >>>>
>>>>>> > >>>>  Terri
>>>>>> > >>>>
>>>>>> > >>>>
>>>>>> > >>>
>>>>>> > >>>
>>>>>> > >>> --
>>>>>> > >>> Bhargav Golla
>>>>>> > >>> M.S Computer Science
>>>>>> > >>> Github <http://www.github.com/bhargavgolla> |
>>>>>> > >>> LinkedIN<http://www.linkedin.com/in/bhargavgolla>
>>>>>> > >>>  | Website <http://www.bhargavgolla.com/>
>>>>>> > >>> _______________________________________________
>>>>>> > >>> Mailman-Developers mailing list
>>>>>> > >>> Mailman-Developers at 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/rajeevs1992%40gmail.com
>>>>>> > >>>
>>>>>> > >>> Security Policy: http://wiki.list.org/x/QIA9
>>>>>> > >>>
>>>>>> > >>
>>>>>> > >>
>>>>>> > >
>>>>>> > >
>>>>>> >
>>>>>> > --
>>>>>> > Abhilash Raj
>>>>>> >
>>>>>> >
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Bhargav Golla
>>>>>> M.S Computer Science
>>>>>> Github <http://www.github.com/bhargavgolla> |
>>>>>> LinkedIN<http://www.linkedin.com/in/bhargavgolla>
>>>>>>  | Website <http://www.bhargavgolla.com/>
>>>>>> _______________________________________________
>>>>>> Mailman-Developers mailing list
>>>>>> Mailman-Developers at 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/rajeevs1992%40gmail.com
>>>>>>
>>>>>> Security Policy: http://wiki.list.org/x/QIA9
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Bhargav Golla
>>>> M.S Computer Science
>>>> Github <http://www.github.com/bhargavgolla> | LinkedIN<http://www.linkedin.com/in/bhargavgolla>
>>>>  | Website <http://www.bhargavgolla.com/>
>>>>
>>>
>>>
>>
>>
>> --
>> Bhargav Golla
>> M.S Computer Science
>> Github <http://www.github.com/bhargavgolla> | LinkedIN<http://www.linkedin.com/in/bhargavgolla>
>>  | Website <http://www.bhargavgolla.com/>
>>
>
>
>
> --
> Bhargav Golla
> M.S Computer Science
> Github <http://www.github.com/bhargavgolla> | LinkedIN<http://www.linkedin.com/in/bhargavgolla>
>  | Website <http://www.bhargavgolla.com/>
>



-- 
Bhargav Golla
M.S Computer Science
Github <http://www.github.com/bhargavgolla> |
LinkedIN<http://www.linkedin.com/in/bhargavgolla>
 | Website <http://www.bhargavgolla.com/>


More information about the Mailman-Developers mailing list