[Mailman-Developers] Bug in postorius, client not defined after shell invokation

Ankush Sharma ankush.sharma.ece12 at iitbhu.ac.in
Wed Mar 4 18:22:53 CET 2015


Sure, Florian. Thanks for giving time to answer my question.

On Wed, Mar 4, 2015 at 10:37 PM, Florian Fuchs <f at florianfuchs.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
> Am 04.03.2015 um 16:25 schrieb Ankush Sharma:
> > Hello everyone,
> >
> > I started going through the postorius docs and found an issue
> > while following this
> >
> http://postorius.readthedocs.org/en/latest/development.html#accessing-the-mailman-api
> >
> >
> .
> >
> > The *client *is not defined after the shell invokation by doing
> > *python manage.py mmclient*. The issue is because the *client *is
> > not present in the *globals() *dictionary when it was used to
> > invoke the interpreter. I have filed a bug regarding this issue:
> > https://bugs.launchpad.net/postorius/+bug/1428169 . The issue can
> > be solved by putting *client *in the scope i.e add *client *to the
> > *globals() *dictionary. I have discussed the bug with people on irc
> > and they also faced the same behavior. I have patched it and will
> > send a pull request shortly.
> >
> > Any views regarding this will be helpful.
>
> Thanks for pointing that out. I have to admit I totally forgot about
> this particular manage.py command, since it's more or less just a
> shortcut to create a mailman.client instance using the given Django
> settings. So it's nice to see someone actually read the documentation
> in full and gave it a test! :-)
>
> Let me have a look at the merge proposal. I'll add further comments
> there if necessary...
>
> Thanks!
>
> Florian
>
>
> >
> > Thanks,
> >
> > Ankush Sharma github.com/black-perl
> > _______________________________________________ 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/f%40florianfuchs.com
> >
> >  Security Policy: http://wiki.list.org/x/QIA9
> >
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQEcBAEBAgAGBQJU9zu0AAoJEEceGbPdavl72HUH/RqFw0c2cvB7NobDnGBbBahY
> eoXX9flHeEczcxmUA7QdY8a0igyy7Y15l1oZHZATDbZIumQ7UoLqwvn6IyWmazUB
> lUyFqT4mWQBWukjcyu4RODnlk5CDQxX0kTHSqY4ltNX+AF+aMht5Jv2ruaNI3zZS
> 6/rRUzY82nGDZThow4RnfZMaaAftyEgAnntYuJt2/UPeUTRRsHF6k0oFsORnEZk0
> /sW4c9F4OfdmafjndRBcyAWIgxqhMJnEQcXqkm0L1oOjSI35APa/BmjdXzJXEQyt
> suXYZDHCcTHn3ssRiOpvdTK0ZzJAwVZaDxkbiqt2MKbwWvk6aMx0Cj5aLo9e/G8=
> =A42d
> -----END PGP SIGNATURE-----
> _______________________________________________
> 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/ankush.sharma.ece12%40itbhu.ac.in
>
> Security Policy: http://wiki.list.org/x/QIA9
>


More information about the Mailman-Developers mailing list