Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Import alias Import alias identifier Assign NameStore ListLoad Str Str Str FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call NameLoad NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad TryExcept body Expr Call NameLoad BinOpAdd NameLoad Str handlers ExceptHandler type NameLoad name NameStore body If CompareIn Str Call NameLoad NameLoad body Assign NameStore NameLoad ExceptHandler body If NameLoad body Raise Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BoolOpOr BoolOpAnd Call NameLoad NameLoad BinOpAdd NameLoad Str BinOpAdd NameLoad Str TryExcept body Assign NameStore Call NameLoad NameLoad Call NameLoad Call NameLoad ListLoad Str handlers ExceptHandler body Return NameLoad Return Call NameLoad Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareNotEq NameLoad Str Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad BinOpAdd NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd Str NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad keyword TupleLoad Str Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num handlers ExceptHandler body Raise Call NameLoad Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num If CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call NameLoad NameLoad If Call NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad If Call NameLoad NameLoad body AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Slice Num Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword NameLoad keyword NameLoad If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword BinOpAdd Str NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad ExceptHandler body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Raise Call NameLoad BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd Str NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad keyword TupleLoad Str Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num handlers ExceptHandler body Raise Call NameLoad Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num If CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad For NameStore ListLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call NameLoad NameLoad If Call NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad If Call NameLoad NameLoad body AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Slice Num Assign NameStore Str Assign NameStore Str If NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Str If NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad Str attr ListLoad NameLoad NameLoad AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad BinOpMult Str Num BinOpMult Str Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore Str AugAssignAdd NameStore Str AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword NameLoad keyword NameLoad If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword BinOpAdd Str NameLoad keyword NameLoad Print NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad ExceptHandler body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Raise Call NameLoad BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd Str NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Num keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Num If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Print NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd Str NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Num keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Num If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str orelse Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str If BoolOpAnd NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Exec Str NameLoad Exec Str NameLoad Exec Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore ListComp NameLoad comprehension NameStore Call NameLoad NameLoad BoolOpOr UnaryOpNot Call AttributeLoad NameLoad attr Str CompareEq NameLoad Str Expr Call AttributeLoad NameLoad attr GeneratorExp TupleLoad NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Str If NameLoad body AugAssignAdd NameStore BinOpMod Str TupleLoad Str Str AugAssignAdd NameStore BinOpMod Str TupleLoad Str Str AugAssignAdd NameStore BinOpMod Str TupleLoad Str Str TryExcept body If AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad TryExcept body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Assign NameStore Call NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body ImportFrom alias Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad TryFinally body Expr Call NameLoad keyword NameLoad keyword Dict finalbody Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr handlers ExceptHandler type NameLoad body Import alias Assign NameStore BoolOpOr BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list
N/A N/A Paster Commands, for use with paster in your project

.. highlight:: bash

The following commands are made available via paster utilizing
setuptools points discovery. These can be used from the command line
when the directory is the Pylons project.

Commands available:

``controller``
    Create a Controller and accompanying functional test
``restcontroller``
    Create a REST Controller and accompanying functional test
``shell``
    Open an interactive shell with the Pylons app loaded

Example usage::

    ~/sample$ paster controller account
    Creating /Users/ben/sample/sample/controllers/account.py
    Creating /Users/ben/sample/sample/tests/functional/test_account.py
    ~/sample$

.. admonition:: How it Works

    :command:`paster` is a command line script (from the PasteScript
    package) that allows the creation of context sensitive commands.
    :command:`paster` looks in the current directory for a
    ``.egg-info`` directory, then loads the ``paster_plugins.txt``
    file.

    Using setuptools entry points, :command:`paster` looks for
    functions registered with setuptools as
    :func:`paste.paster_command`. These are defined in the entry_points
    block in each packages :file:`setup.py` module.

    This same system is used when running :command:`paster create` to
    determine what templates are available when creating new projects.

 N/A os N/A sys N/A paste.fixture N/A paste.registry paste.deploy loadapp paste.script.command Command BadCommand paste.script.filemaker FileOp tempita paste_script_template_renderer N/A pylons N/A pylons.util util N/A __all__ N/A ControllerCommand RestControllerCommand ShellCommand can_import N/A N/A name N/A N/A N/A Attempt to __import__ the specified package/module, returning
    True when succeeding, otherwise False N/A N/A N/A N/A __import__ name N/A True N/A N/A N/A ImportError N/A N/A False N/A is_minimal_template N/A N/A package fail_fast N/A False N/A N/A Determine if the specified Pylons project (package) uses the
    Pylons Minimal Template.

    fail_fast causes ImportErrors encountered during detection to be
    raised.
     N/A minimal_template False N/A N/A N/A N/A __import__ N/A package .lib.base N/A N/A N/A ImportError N/A ie N/A N/A N/A No module named lib.base N/A str ie N/A N/A minimal_template True N/A N/A N/A fail_fast N/A N/A N/A minimal_template N/A defines_render N/A N/A package N/A N/A N/A Determine if the specified Pylons project (package) defines a
    render callable in their base module
     N/A base_module N/A N/A N/A is_minimal_template package N/A package .controllers N/A package .lib.base N/A N/A N/A base N/A __import__ base_module N/A globals N/A locals N/A __doc__ N/A N/A N/A N/A False N/A N/A callable N/A getattr base render None N/A validate_name N/A N/A name N/A N/A N/A Validate that the name for the controller isn't present on the
    path already N/A N/A name N/A N/A N/A BadCommand Please give the name of a controller. N/A N/A N/A name setup N/A can_import name N/A N/A N/A BadCommand N/A 

A module named '%s' is already present in your PYTHON_PATH.
Choosing a conflicting name will likely cause import problems in
your controller at some point. It's suggested that you choose an
alternate name, and if you'd like that name to be accessible as
'%s', add a route to your projects config/routing.py file similar
to:
    map.connect('%s', controller='my_%s') N/A name name name name N/A True N/A check_controller_existence N/A N/A base_package directory name N/A N/A N/A Check if given controller already exists in project. N/A filename N/A N/A N/A os path join base_package controllers directory N/A name .py N/A N/A N/A N/A os path exists filename N/A N/A N/A BadCommand N/A Controller %s already exists. N/A N/A N/A os path join directory name N/A ControllerCommand N/A Command N/A N/A Create a Controller and accompanying functional test

    The Controller command will create the standard controller template
    file and associated functional test to speed creation of
    controllers.

    Example usage::

        yourproj% paster controller comments
        Creating yourproj/yourproj/controllers/comments.py
        Creating yourproj/yourproj/tests/functional/test_comments.py

    If you'd like to have controllers underneath a directory, just
    include the path as the controller name and the necessary
    directories will be created for you::

        yourproj% paster controller admin/trackback
        Creating yourproj/controllers/admin
        Creating yourproj/yourproj/controllers/admin/trackback.py
        Creating yourproj/yourproj/tests/functional/test_admin_trackback.py

     N/A summary N/A N/A N/A __doc__ splitlines N/A 0 N/A usage N/A __doc__ N/A min_args 1 N/A max_args 1 N/A group_name pylons N/A default_verbosity 3 N/A parser N/A N/A Command standard_parser simulate True N/A N/A N/A parser add_option --no-test action store_true dest no_test help Don't create the test; just the controller command N/A N/A self N/A N/A N/A Main command to create controller N/A N/A N/A file_op N/A FileOp source_dir N/A pylons templates N/A N/A N/A N/A name directory N/A N/A file_op parse_path_name_args N/A N/A self args N/A 0 N/A N/A N/A N/A N/A BadCommand No egg_info directory was found N/A base_package N/A N/A N/A file_op find_dir controllers True N/A 0 N/A N/A N/A N/A base_package lower N/A N/A name lower N/A N/A N/A BadCommand N/A Your controller name should not be the same as the package name %r. base_package N/A name N/A N/A name replace - _ N/A N/A validate_name name N/A N/A is_minimal_template base_package N/A N/A importstatement N/A from %s.controllers import BaseController base_package N/A N/A importstatement N/A from %s.lib.base import BaseController base_package N/A N/A defines_render base_package N/A N/A importstatement , render N/A fullname N/A N/A N/A os path join directory name N/A controller_name N/A N/A util class_name_from_module_name N/A N/A N/A name split / N/A -1 N/A N/A N/A N/A fullname startswith N/A os sep N/A N/A fullname N/A N/A os sep fullname N/A testname N/A N/A N/A fullname replace N/A os sep _ N/A 1 N/A module_dir N/A N/A directory replace / N/A N/A os path sep N/A N/A check_controller_existence base_package module_dir name N/A N/A N/A N/A file_op template_vars update N/A name fname tmpl_name package importstatement controller_name N/A N/A N/A N/A N/A os path join directory name replace \ / name base_package importstatement N/A N/A N/A file_op copy_file template controller.py_tmpl dest N/A N/A N/A os path join controllers directory filename name template_renderer paste_script_template_renderer N/A N/A N/A N/A self options no_test N/A N/A N/A N/A file_op copy_file template test_controller.py_tmpl dest N/A N/A N/A os path join tests functional filename N/A test_ testname template_renderer paste_script_template_renderer N/A N/A N/A BadCommand N/A e N/A N/A N/A BadCommand N/A An error occurred. %s e N/A N/A N/A msg N/A str N/A N/A N/A sys exc_info N/A 1 N/A N/A BadCommand N/A An unknown error occurred. %s msg N/A N/A RestControllerCommand N/A Command N/A N/A Create a REST Controller and accompanying functional test

    The RestController command will create a REST-based Controller file
    for use with the :meth:`~routes.mapper.Mapper.resource`
    REST-based dispatching. This template includes the methods that
    :meth:`~routes.mapper.Mapper.resource` dispatches to in
    addition to doc strings for clarification on when the methods will
    be called.

    The first argument should be the singular form of the REST
    resource. The second argument is the plural form of the word. If
    its a nested controller, put the directory information in front as
    shown in the second example below.

    Example usage::

        yourproj% paster restcontroller comment comments
        Creating yourproj/yourproj/controllers/comments.py
        Creating yourproj/yourproj/tests/functional/test_comments.py

    If you'd like to have controllers underneath a directory, just
    include the path as the controller name and the necessary
    directories will be created for you::

        yourproj% paster restcontroller admin/tracback admin/trackbacks
        Creating yourproj/controllers/admin
        Creating yourproj/yourproj/controllers/admin/trackbacks.py
        Creating yourproj/yourproj/tests/functional/test_admin_trackbacks.py

     N/A summary N/A N/A N/A __doc__ splitlines N/A 0 N/A usage N/A __doc__ N/A min_args 2 N/A max_args 2 N/A group_name pylons N/A default_verbosity 3 N/A parser N/A N/A Command standard_parser simulate True N/A N/A N/A parser add_option --no-test action store_true dest no_test help Don't create the test; just the controller command N/A N/A self N/A N/A N/A Main command to create controller N/A N/A N/A file_op N/A FileOp source_dir N/A pylons templates N/A N/A N/A N/A singularname singulardirectory N/A N/A file_op parse_path_name_args N/A N/A self args N/A 0 N/A N/A pluralname pluraldirectory N/A N/A file_op parse_path_name_args N/A N/A self args N/A 1 N/A N/A N/A N/A N/A BadCommand No egg_info directory was found N/A base_package N/A N/A N/A file_op find_dir controllers True N/A 0 N/A N/A N/A N/A base_package lower N/A N/A pluralname lower N/A N/A N/A BadCommand N/A Your controller name should not be the same as the package name %r. base_package N/A name N/A pluralname N/A N/A name N/A N/A name replace - _ N/A N/A validate_name name N/A N/A is_minimal_template base_package N/A N/A importstatement N/A from %s.controllers import BaseController base_package N/A N/A importstatement N/A from %s.lib.base import BaseController base_package N/A N/A defines_render base_package N/A N/A importstatement , render N/A module_dir N/A N/A pluraldirectory replace / N/A N/A os path sep N/A N/A check_controller_existence base_package module_dir name N/A fullname N/A N/A N/A os path join pluraldirectory pluralname N/A controller_name N/A N/A util class_name_from_module_name N/A N/A N/A pluralname split / N/A -1 N/A N/A N/A N/A fullname startswith N/A os sep N/A N/A fullname N/A N/A os sep fullname N/A testname N/A N/A N/A fullname replace N/A os sep _ N/A 1 N/A nameprefix N/A path N/A pluraldirectory N/A N/A nameprefix N/A N/A N/A pluraldirectory replace N/A N/A os path sep _ _ N/A path N/A pluraldirectory / N/A controller_c N/A nameprefix N/A N/A controller_c N/A , controller='%s', 
	 N/A N/A / join N/A pluraldirectory pluralname N/A controller_c N/A path_prefix='/%s', name_prefix='%s' N/A pluraldirectory nameprefix N/A command N/A map.resource('%s', '%s'%s)
 N/A singularname pluralname controller_c N/A N/A N/A N/A file_op template_vars update N/A classname pluralname singularname name nameprefix package path resource_command fname importstatement controller_name pluralname singularname controller_name nameprefix base_package path N/A N/A command replace N/A 
%s#%s N/A N/A 4 N/A 9 N/A N/A N/A os path join pluraldirectory pluralname importstatement N/A resource_command 
To create the appropriate RESTful mapping, add a map statement to your
 N/A resource_command config/routing.py file near the top like this:

 N/A resource_command command N/A N/A N/A file_op copy_file template restcontroller.py_tmpl dest N/A N/A N/A os path join controllers pluraldirectory filename pluralname template_renderer paste_script_template_renderer N/A N/A N/A N/A self options no_test N/A N/A N/A N/A file_op copy_file template test_restcontroller.py_tmpl dest N/A N/A N/A os path join tests functional filename N/A test_ testname template_renderer paste_script_template_renderer N/A resource_command N/A N/A N/A BadCommand N/A e N/A N/A N/A BadCommand N/A An error occurred. %s e N/A N/A N/A msg N/A str N/A N/A N/A sys exc_info N/A 1 N/A N/A BadCommand N/A An unknown error occurred. %s msg N/A N/A RoutesCommand N/A Command N/A N/A Print the applications routes

    The optional CONFIG_FILE argument specifies the config file to use.
    CONFIG_FILE defaults to 'development.ini'.

    Example::

        $ paster routes my-development.ini

     N/A summary N/A N/A N/A __doc__ splitlines N/A 0 N/A usage N/A __doc__ N/A min_args 0 N/A max_args 1 N/A group_name pylons N/A parser N/A N/A Command standard_parser simulate True N/A N/A N/A parser add_option -q action count dest quiet default 0 help Do not load logging configuration from the config file command N/A N/A self N/A N/A N/A Main command to create a new shell N/A N/A self verbose 3 N/A N/A N/A len N/A self args 0 N/A N/A config_file development.ini N/A N/A N/A N/A N/A os path isfile config_file N/A N/A N/A BadCommand N/A %sError: CONFIG_FILE not found at: .%s%s
Please specify a CONFIG_FILE N/A N/A N/A N/A self parser get_usage N/A N/A os path sep config_file N/A N/A config_file N/A N/A self args N/A 0 N/A config_name N/A config:%s config_file N/A here_dir N/A N/A os getcwd N/A N/A N/A N/A self options quiet N/A N/A N/A N/A self logging_file_config config_file N/A wsgiapp N/A loadapp config_name relative_to here_dir N/A test_app N/A N/A N/A paste fixture TestApp wsgiapp N/A tresponse N/A N/A test_app get /_test_vars N/A mapper N/A N/A N/A tresponse config get routes.map N/A mapper N/A N/A mapper N/A N/A ShellCommand N/A Command N/A N/A Open an interactive shell with the Pylons app loaded

    The optional CONFIG_FILE argument specifies the config file to use for
    the interactive shell. CONFIG_FILE defaults to 'development.ini'.

    This allows you to test your mapper, models, and simulate web requests
    using ``paste.fixture``.

    Example::

        $ paster shell my-development.ini

     N/A summary N/A N/A N/A __doc__ splitlines N/A 0 N/A usage N/A __doc__ N/A min_args 0 N/A max_args 1 N/A group_name pylons N/A parser N/A N/A Command standard_parser simulate True N/A N/A N/A parser add_option -d --disable-ipython action store_true dest disable_ipython help Don't use IPython if it is available N/A N/A N/A parser add_option -q action count dest quiet default 0 help Do not load logging configuration from the config file command N/A N/A self N/A N/A N/A Main command to create a new shell N/A N/A self verbose 3 N/A N/A N/A len N/A self args 0 N/A N/A config_file development.ini N/A N/A N/A N/A N/A os path isfile config_file N/A N/A N/A BadCommand N/A %sError: CONFIG_FILE not found at: .%s%s
Please specify a CONFIG_FILE N/A N/A N/A N/A self parser get_usage N/A N/A os path sep config_file N/A N/A config_file N/A N/A self args N/A 0 N/A config_name N/A config:%s config_file N/A here_dir N/A N/A os getcwd N/A locs N/A dict __name__ pylons-admin N/A N/A N/A N/A self options quiet N/A N/A N/A N/A self logging_file_config config_file N/A N/A N/A N/A sys path insert 0 here_dir N/A wsgiapp N/A loadapp config_name relative_to here_dir N/A test_app N/A N/A N/A paste fixture TestApp wsgiapp N/A tresponse N/A N/A test_app get /_test_vars N/A request_id N/A int N/A tresponse body N/A N/A test_app pre_request_hook N/A N/A N/A self N/A N/A N/A N/A N/A paste registry restorer restoration_end N/A N/A test_app post_request_hook N/A N/A N/A self N/A N/A N/A N/A N/A paste registry restorer restoration_begin request_id N/A N/A N/A N/A N/A paste registry restorer restoration_begin request_id N/A pkg_name N/A N/A pylons config N/A pylons.package N/A N/A is_minimal_template pkg_name True N/A N/A model_module None N/A helpers_module N/A pkg_name .helpers N/A base_module N/A pkg_name .controllers N/A N/A model_module N/A pkg_name .model N/A helpers_module N/A pkg_name .lib.helpers N/A base_module N/A pkg_name .lib.base N/A N/A model_module N/A can_import model_module N/A N/A N/A locs N/A model N/A N/A sys modules N/A model_module N/A N/A can_import helpers_module N/A N/A N/A locs N/A h N/A N/A sys modules N/A helpers_module N/A from pylons import app_globals, config, request, response, session, tmpl_context, url locs N/A from pylons.controllers.util import abort, redirect locs N/A from pylons.i18n import _, ungettext, N_ locs N/A N/A N/A locs pop __builtins__ None N/A N/A __import__ base_module N/A base N/A N/A sys modules N/A base_module N/A base_public N/A __name N/A __name N/A dir base N/A N/A N/A N/A __name startswith _ N/A __name _ N/A N/A N/A locs update N/A N/A name N/A getattr base name N/A name base_public N/A N/A N/A locs update N/A dict wsgiapp wsgiapp app test_app N/A mapper N/A N/A N/A tresponse config get routes.map N/A mapper N/A N/A N/A locs N/A mapper mapper N/A banner N/A   All objects from %s are available
 base_module N/A banner   Additional Objects:
 N/A mapper N/A N/A banner N/A   %-10s -  %s
 N/A mapper Routes mapper object N/A banner N/A   %-10s -  %s
 N/A wsgiapp This project's WSGI App instance N/A banner N/A   %-10s -  %s
 N/A app paste.fixture wrapped around wsgiapp N/A N/A N/A N/A N/A self options disable_ipython N/A N/A N/A ImportError N/A N/A N/A N/A IPython.terminal.embed InteractiveShellEmbed N/A N/A N/A ImportError N/A IPython.frontend.terminal.embed InteractiveShellEmbed N/A shell N/A InteractiveShellEmbed banner2 banner N/A N/A N/A ImportError N/A IPython.Shell IPShellEmbed N/A shell N/A IPShellEmbed argv N/A self args N/A N/A N/A shell set_banner N/A N/A N/A N/A shell IP BANNER banner N/A N/A N/A N/A shell local_ns locs global_ns N/A N/A N/A N/A N/A N/A N/A paste registry restorer restoration_end N/A N/A N/A ImportError N/A N/A code N/A py_prefix N/A N/A N/A N/A N/A sys platform startswith java J P N/A newbanner N/A Pylons Interactive Shell
%sython %s

 N/A py_prefix N/A sys version N/A banner N/A newbanner banner N/A shell N/A N/A code InteractiveConsole locals locs N/A N/A N/A readline N/A N/A N/A ImportError N/A N/A N/A N/A N/A N/A N/A shell interact banner N/A N/A N/A N/A N/A N/A paste registry restorer restoration_end N/A N/A