[Mailman-Developers] GSoC

Abhilash Raj raj.abhilash1 at gmail.com
Sun Mar 8 14:44:09 CET 2015


Hi Vlad,

On Sunday 08 March 2015 01:20 AM, Vlad Shablinsky wrote:
> Hi, I'm Vlad Shablinsky. I wrote about some problems with setting up
> Mailman some time ago and Abhilash helped me. I'm interested in
> contribution to Mailman this summer. I find "GitHub/development tools
> integration" and "A Dashboard for Admins/Owners/Moderators" ideas pretty
> interesting for me and I would like to work for one of them.
> 
> I have Mailman and Postorius set up and built for development. I'm going to
> fix a bug now, but I need some guidance. I've started reading the
> documentation, but not everything works fine.
> 
> 1. When I run `tox` in mailman folder I get OSError:
> 
> "test_linked_nonmember_findable_after_posting
> (mailman.rest.tests.test_membership.TestNonmembership) ... Traceback (most
> recent call last):
>   File "/Users/vlad/Projects/GSoC/Mailman/mailman/.tox/py34/bin/runner",
> line 9, in <module>
>     load_entry_point('mailman==3.0.0b6', 'console_scripts', 'runner')()
>   File
> "/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/bin/runner.py", line
> 200, in main
>     runner = make_runner(*args.runner, once=args.once)
>   File
> "/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/bin/runner.py", line
> 100, in make_runner
>     return runner_class(name, slice)
>   File
> "/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/runners/rest.py",
> line 55, in __init__
>     self._server = make_server()
>   File
> "/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/rest/wsgiapp.py",
> line 163, in make_server
>     handler_class=AdminWebServiceWSGIRequestHandler)
>   File
> "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/wsgiref/simple_server.py",
> line 153, in make_server
>     server = server_class((host, port), handler_class)
>   File
> "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/socketserver.py",
> line 429, in __init__
>     self.server_bind()
>   File
> "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/wsgiref/simple_server.py",
> line 50, in server_bind
>     HTTPServer.server_bind(self)
>   File
> "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/server.py",
> line 133, in server_bind
>     socketserver.TCPServer.server_bind(self)
>   File
> "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/socketserver.py",
> line 440, in server_bind
>     self.socket.bind(self.server_address)
> OSError: [Errno 48] Address already in use”

Do you have something running on your `9001` port? This error means
mailman test server has problems binding to your local 9001 port as
evident from the error message.

> 2. The second issue is that I get NameError when trying `dump_list` in
> `mailman shell` (I follow these instructions
> http://gnu-mailman.readthedocs.org/en/latest/src/mailman/model/docs/addresses.html
> )
> 

First you need to import the `dump_list` function to be able to use it.
try:

	from mailman.testing.documentation import dump_list

> ">>> dump_list(user.display_name for user in user_manager.users)
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
> NameError: name 'dump_list' is not defined"
> 
> 
> 3. I've registed a user via Mozilla Persona and I'm able to log in, but I
> don't know what to do with it. I just have one field filled with email of
> my registred user. Everything is blank. Are the lists added using mailman
> shell?

When you did `python manage.py syncdb` in postorius_standalone, did you
create a superuser? If yes, then use that email address to login and
you'd have lots of others options to play with. If not, then simply go
to postorius_standlaone directory and execute the command:

	python manage.py createsuperuser

> I havent't started fixing a bug yet, but I suppose I have to use web UI or
> the `mailman shell` to see if the bug is fixed or not. I'm supposed to be
> able to reproduce the state that causes the bug. I'm not sure that
> everything works fine since I have errors described above. Could you guide
> me on that?

The usual debugging process after fixing a bug varies from person to
person. There may be a lot of things that you won't be able to find in
Postorius. We generally use a combination of both shell and
mailman.client for our purposes.


-- 
thanks,
Abhilash

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/mailman-developers/attachments/20150308/7e1d8bc3/attachment.sig>


More information about the Mailman-Developers mailing list