I rely on `ipython --profile=zope` to debug my Plone instances so I was disappointed that it no longer worked with IPython 0.11 and Plone 4. Fortunately, this is easy to fix with some edits to ipy_profile_zope.py. Here's a very rough overview of what has to be done:
- the deprecated ipapi has moved to IPython core from IPython.core import ipapi - removed references to IPython.Release, no longer set banner - create new IPython profile: ipython profile create zope - move ipy_profile_zope.py to ~/.ipython/profile_zope/zdebug.py - import zdebug in ~/.ipython/profile_zope/ipython_config.py: c.TerminalIPythonApp.exec_lines = [ "import zdebug" ] Also, set CONFIG_FILE to point to Plone/zeocluster/parts/client1/etc/zope.conf. It would be pretty simple to do this the "right" way for IPython 0.11 by removing the ipapi references and just setting the portal, app, utils globals in exec_lines. Does anyone else debug Plone with IPython 0.11? _______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/plone-product-developers
