summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoodwill Coding <goodwillcoding@webhippo.net>2013-05-16 09:07:34 -0700
committerGoodwill Coding <goodwillcoding@webhippo.net>2013-05-16 09:07:34 -0700
commit4e2f1f0660f77816958882459fd819f2928d0f19 (patch)
tree1e403fa29ed793d3eeae6d6af94e58fabd0138e6
parent924a7048ada648b3190b5f73c4df4dbccf37286a (diff)
downloadpyramid-4e2f1f0660f77816958882459fd819f2928d0f19.tar.gz
pyramid-4e2f1f0660f77816958882459fd819f2928d0f19.tar.bz2
pyramid-4e2f1f0660f77816958882459fd819f2928d0f19.zip
Extend informational message to pcreate output. Tutorial, docs, twitter, maillist.
-rw-r--r--pyramid/scaffolds/__init__.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/pyramid/scaffolds/__init__.py b/pyramid/scaffolds/__init__.py
index dc207b540..a87041576 100644
--- a/pyramid/scaffolds/__init__.py
+++ b/pyramid/scaffolds/__init__.py
@@ -1,5 +1,6 @@
import binascii
import os
+from textwrap import dedent
from pyramid.compat import native_
@@ -33,7 +34,22 @@ class PyramidTemplate(Template):
""" Overrides :meth:`pyramid.scaffolds.template.Template.post`, to
print "Welcome to Pyramid. Sorry for the convenience." after a
successful scaffolding rendering."""
- self.out('Welcome to Pyramid. Sorry for the convenience.')
+
+ separator = "=" * 79
+ msg = dedent(
+ """
+ %(separator)s
+ Tutorials: http://docs.pylonsproject.org/projects/pyramid_tutorials
+ Documentation: http://docs.pylonsproject.org/projects/pyramid
+
+ Twitter (tips & updates): http://twitter.com/pylons
+ Mailing List: http://groups.google.com/group/pylons-discuss
+
+ Welcome to Pyramid. Sorry for the convenience.
+ %(separator)s
+ """ % {'separator': separator})
+
+ self.out(msg)
return Template.post(self, command, output_dir, vars)
def out(self, msg): # pragma: no cover (replaceable testing hook)