Modify

Ticket #921 (closed enhancement: fixed)

Opened 12 years ago

Last modified 12 years ago

use ipython in bcfg2-info debug mode

Reported by: https://www.google.com/accounts/o8/id?id=AItOawl5-bwrxN_3riwrFWHgfESsuK8Bn6HsQ2M Owned by: desai
Priority: major Milestone: Bcfg2 1.1.0 Release
Component: bcfg2-server Version: 1.0
Keywords: Cc:

Description

Here is a patch that tries to load ipython when interactive debug is started. If ipython is not installed, it falls back to the standard shell.

Sol wanted bpython. The code for that will be something like:

from bpython import cli
cli.main(args=[])

He'll need to look up what argument main() needs to include locals().

If bpython also gets added, then there will need to be a way to specify which is preferred. I originally thought it could try ipython and fallback to bpython and then fallback to python, but that wouldn't be fair to Sol. So, I will leave the UI design decision for someone else.

Attachments

bcfg2-info.diff (945 bytes) - added by https://www.google.com/accounts/o8/id?id=AItOawl5-bwrxN_3riwrFWHgfESsuK8Bn6HsQ2M 12 years ago.
initial patch

Change History

Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawl5-bwrxN_3riwrFWHgfESsuK8Bn6HsQ2M

initial patch

comment:1 Changed 12 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from Bcfg2 1.2.0 Release to Bcfg2 1.1.0 Release

Added in [d6b3084cbc96307c44ebfd734f88d2692a85c6c7] (SVN r6034). Thanks for the patch!

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.