From 5c15105e1bfa818e9dc1c19fa1bf699a830f62ef Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 29 Oct 2010 13:35:31 -0400 Subject: repoze.bfg -> pyramid --- docs/designdefense.rst | 22 +++++++++++----------- docs/tutorials/catalog/index.rst | 10 +++++----- docs/tutorials/modwsgi/index.rst | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) (limited to 'docs') diff --git a/docs/designdefense.rst b/docs/designdefense.rst index 8242d7d81..c437f18d9 100644 --- a/docs/designdefense.rst +++ b/docs/designdefense.rst @@ -760,7 +760,7 @@ code. Pyramid Is Too Big ------------------ -"The :mod:`pyramid` compressed tarball is 1MB. It must be +"The :mod:`pyramid` compressed tarball is almost 2MB. It must be enormous!" No. We just ship it with test code and helper templates. Here's a @@ -768,26 +768,26 @@ breakdown of what's included in subdirectories of the package tree: docs/ - 2.2MB + 3.0MB -repoze/bfg/tests +pyramid/tests/ - 580KB + 1.1MB -repoze/bfg/paster_templates +pyramid/paster_templates/ - 372KB + 804KB -repoze/bfg (except for ``repoze/bfg/tests and repoze/bfg/paster_templates``) +pyramid/ (except for ``pyramd/tests and pyramid/paster_templates``) - 316K + 539K -The actual :mod:`pyramid` runtime code is about 10% of the total -size of the tarball omitting docs, helper templates used for package +The actual :mod:`pyramid` runtime code is about 10% of the total size +of the tarball omitting docs, helper templates used for package generation, and test code. Of the approximately 13K lines of Python code in the package, the code that actually has a chance of executing during normal operation, excluding tests and paster template Python -files, accounts for approximately 3K lines of Python code. This is +files, accounts for approximately 5K lines of Python code. This is comparable to Pylons, which ships with a little over 2K lines of Python code, excluding tests. diff --git a/docs/tutorials/catalog/index.rst b/docs/tutorials/catalog/index.rst index 9a5bbfb2f..424286bd9 100644 --- a/docs/tutorials/catalog/index.rst +++ b/docs/tutorials/catalog/index.rst @@ -1,7 +1,7 @@ .. _catalog_tutorial: -Using :mod:`repoze.catalog` Within :mod:`repoze.bfg` -==================================================== +Using :mod:`repoze.catalog` Within :mod:`pyramid` +================================================= :mod:`repoze.catalog` is a ZODB-based system that can be used to index Python objects. It also offers a query interface for retrieving @@ -83,12 +83,12 @@ want the application to be based on :term:`traversal`. .. code-block:: text - [chrism@snowpro sess]$ ../bin/paster --plugin=repoze.bfg bfgshell \ + [chrism@snowpro sess]$ ../bin/paster --plugin=pyramid bfgshell \ myapp.ini myapp Python 2.5.4 (r254:67916, Sep 4 2009, 02:12:16) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help" for more information. "root" is the BFG app root object. - >>> from repoze.bfg.traversal import model_path + >>> from pyramid.traversal import model_path >>> from myapp.models import Document >>> root['name'] = Document('title') >>> doc = root['name'] @@ -107,7 +107,7 @@ or from within a ``bfgshell`` session to update the set of indexes used by your application. In :term:`view` code, you should be able to get a hold of the root -object via the :func:`repoze.bfg.traversal.find_root` API. The +object via the :func:`pyramid.traversal.find_root` API. The ``catalog`` attribute of that root object will represent the catalog previously added. diff --git a/docs/tutorials/modwsgi/index.rst b/docs/tutorials/modwsgi/index.rst index 5572e300b..8b429a0c8 100644 --- a/docs/tutorials/modwsgi/index.rst +++ b/docs/tutorials/modwsgi/index.rst @@ -54,7 +54,7 @@ commands and files. .. code-block:: text $ cd ~/modwsgi/env - $ bin/easy_install repoze.bfg + $ bin/easy_install pyramid #. Create and install your :mod:`pyramid` application. For the purposes of this tutorial, we'll just be using the ``bfg_starter`` -- cgit v1.2.3