Ankush Sharma has proposed merging lp:~black-perl/postorius/fix-postorius into 
lp:postorius.

Requested reviews:
  Mailman Coders (mailman-coders)
Related bugs:
  Bug #1428169 in Postorius: "`client` not present in the scope of the 
interpreter invoked  by doing `python manage.py mmclient`"
  https://bugs.launchpad.net/postorius/+bug/1428169

For more details, see:
https://code.launchpad.net/~black-perl/postorius/fix-postorius/+merge/251761

Added the `client` to the globals() dictionary before invoking the python 
interpreter. This would fix up things for the systems on which ipython is not 
present and therefore default python interpreter is invoked.
-- 
Your team Mailman Coders is requested to review the proposed merge of 
lp:~black-perl/postorius/fix-postorius into lp:postorius.
=== modified file 'src/postorius/management/commands/mmclient.py'
--- src/postorius/management/commands/mmclient.py	2015-02-09 14:35:44 +0000
+++ src/postorius/management/commands/mmclient.py	2015-03-04 15:37:52 +0000
@@ -45,5 +45,7 @@
             console_fn = shell.interact
         # connect to mailmanclient
         client = utils.get_client()
+        # Putting client back in the global scope
+        globals()['client'] = client
         # run the interpreter
         console_fn()

_______________________________________________
Mailman-coders mailing list
Mailman-coders@python.org
https://mail.python.org/mailman/listinfo/mailman-coders

Reply via email to