summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-10-19 18:43:01 +0000
committerChris McDonough <chrism@agendaless.com>2009-10-19 18:43:01 +0000
commitb3e9ee1f5863cbe0d092f29e25cb4363d7398b64 (patch)
treeb6798fb91ac73a366b6435ab0c8ca70e8a25772f /docs
parentd5b2f46f323571ec32fa7e9c77ccf83f62a03fea (diff)
downloadpyramid-b3e9ee1f5863cbe0d092f29e25cb4363d7398b64.tar.gz
pyramid-b3e9ee1f5863cbe0d092f29e25cb4363d7398b64.tar.bz2
pyramid-b3e9ee1f5863cbe0d092f29e25cb4363d7398b64.zip
- ``paster bfgshell`` now supports IPython if it's available for
import. Thanks to Daniel Holth for the initial patch.
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/project.rst18
1 files changed, 13 insertions, 5 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst
index dc3385fcd..cb69fdc0e 100644
--- a/docs/narr/project.rst
+++ b/docs/narr/project.rst
@@ -200,7 +200,7 @@ the name ``main`` as a section name:
.. code-block:: bash
:linenos:
- [chrism@vitaminf bfgshellenv]$ ../bin/paster bfgshell MyProject.ini main
+ [chrism@vitaminf bfgshellenv]$ ../bin/paster bfgshell --plugin=repoze.bfg MyProject.ini main
Python 2.4.5 (#1, Aug 29 2008, 12:27:37)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
@@ -208,10 +208,18 @@ the name ``main`` as a section name:
>>> root
<foo.models.MyModel object at 0x445270>
-If that command fails because ``paster`` claims it knows nothing about
-the "bfgshell" command (this happens under certain conditions that are
-not yet well-understood) try passing the flag ``--plugin=repoze.bfg``
-before the filename:
+... note:: You *might* get away without passing
+ ``--plugin=repoze.bfg`` to the bfgshell command; the
+ ``--plugin=repoze.bfg`` option is required under conditions
+ that are not yet well-understood.
+
+If you have `IPython <http://en.wikipedia.org/wiki/IPython>`_
+installed in the interpreter you use to invoke the ``paster`` command,
+the ``bfgshell`` command will use an IPython interactive shell instead
+of a standard Python interpreter shell. If you don't want this to
+happen, even if you have IPython installed, you can pass the
+``--disable-ipython`` flag to the ``bfgshell`` command to use a
+standard Python interpreter shell unconditionally.
.. code-block:: bash
:linenos: