diff options
| author | Steve Piercy <web@stevepiercy.com> | 2013-11-16 16:13:02 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2013-11-16 16:13:02 -0800 |
| commit | e697c98813a4acd332da5688867e799adfc9b835 (patch) | |
| tree | c979ca54739133a35f1d61980c6078c6e42c6827 /docs/narr/scaffolding.rst | |
| parent | 94b754aac45e235b5b11a60489395b77c8195fdc (diff) | |
| parent | bd897bbcfd936d36ad9877a2f00792454767b7fb (diff) | |
| download | pyramid-e697c98813a4acd332da5688867e799adfc9b835.tar.gz pyramid-e697c98813a4acd332da5688867e799adfc9b835.tar.bz2 pyramid-e697c98813a4acd332da5688867e799adfc9b835.zip | |
Merge pull request #1193 from ztane/master
Indentation fixes
Diffstat (limited to 'docs/narr/scaffolding.rst')
| -rw-r--r-- | docs/narr/scaffolding.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/narr/scaffolding.rst b/docs/narr/scaffolding.rst index 534b2caf4..f924d0d62 100644 --- a/docs/narr/scaffolding.rst +++ b/docs/narr/scaffolding.rst @@ -39,9 +39,9 @@ named ``__init__.py`` with something like the following: from pyramid.scaffolds import PyramidTemplate - class CoolExtensionTemplate(PyramidTemplate): - _template_dir = 'coolextension_scaffold' - summary = 'My cool extension' + class CoolExtensionTemplate(PyramidTemplate): + _template_dir = 'coolextension_scaffold' + summary = 'My cool extension' Once this is done, within the ``scaffolds`` directory, create a template directory. Our example used a template directory named @@ -89,7 +89,7 @@ For example: [pyramid.scaffold] coolextension=coolextension.scaffolds:CoolExtensionTemplate """ - ) + ) Run your distribution's ``setup.py develop`` or ``setup.py install`` command. After that, you should be able to see your scaffolding template @@ -112,7 +112,7 @@ want to have extension scaffolds that can work across Pyramid 1.0.X, 1.1.X, defining your scaffold template: .. code-block:: python - :linenos: + :linenos: try: # pyramid 1.0.X # "pyramid.paster.paste_script..." doesn't exist past 1.0.X |
