diff options
| author | goodwillcoding <goodwillcoding@webhippo.net> | 2013-05-16 09:11:50 -0700 |
|---|---|---|
| committer | goodwillcoding <goodwillcoding@webhippo.net> | 2013-05-16 09:11:50 -0700 |
| commit | d037a9d47b6dd8fe6da88c6a6e26ceefcfe00fc9 (patch) | |
| tree | d51720ba9314c23d0a7e9f5d7a6e9d7f238bf24b | |
| parent | 924a7048ada648b3190b5f73c4df4dbccf37286a (diff) | |
| parent | 647063576a476bba503fc836839d002a7e7368c8 (diff) | |
| download | pyramid-d037a9d47b6dd8fe6da88c6a6e26ceefcfe00fc9.tar.gz pyramid-d037a9d47b6dd8fe6da88c6a6e26ceefcfe00fc9.tar.bz2 pyramid-d037a9d47b6dd8fe6da88c6a6e26ceefcfe00fc9.zip | |
Merge pull request #1018 from goodwillcoding/master
Extend informational message to pcreate output. Tutorial, docs, twitter, maillist.
| -rw-r--r-- | pyramid/scaffolds/__init__.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/pyramid/scaffolds/__init__.py b/pyramid/scaffolds/__init__.py index dc207b540..c993ce5f9 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) |
