Skip to content

Commit

Permalink
[svn] added PylonsInstaller for new project's paste.app_install entry…
Browse files Browse the repository at this point in the history
… point.

Avoids the Cheetah for requirement for the make-config command
(thanks Alexander Schremmer, Ian Bicking)

--HG--
branch : trunk
  • Loading branch information
pjenvey committed Jan 27, 2007
1 parent 755b276 commit 2480337
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Expand Up @@ -2,6 +2,9 @@ Pylons Changelog
=================

0.9.5 (**svn**)
* PylonsInstaller is now the default paste.app_install entry point for new
projects: this makes Cheetah no longer required for the paster make-config
command. (Thanks Alexander Schremmer, Ian Bicking)
* Added custom redirect_to function in pylons.helpers that will take an
optional _response arg to pull headers and cookies out for preservation
during a redirect. Fixes #136.
Expand Down
4 changes: 2 additions & 2 deletions pylons/templates/default_project/setup.py_tmpl
Expand Up @@ -16,6 +16,6 @@ setup(
[paste.app_factory]
main=${package}:make_app
[paste.app_install]
main=paste.script.appinstall:Installer
main=pylons.util:PylonsInstaller
""",
)
)
4 changes: 2 additions & 2 deletions pylons/templates/minimal_project/setup.py_tmpl
Expand Up @@ -16,6 +16,6 @@ setup(
[paste.app_factory]
main=${package}:make_app
[paste.app_install]
main=paste.script.appinstall:Installer
main=pylons.util:PylonsInstaller
""",
)
)
5 changes: 4 additions & 1 deletion pylons/util.py
Expand Up @@ -6,6 +6,7 @@
"""
import warnings

from paste.script.appinstall import Installer
from paste.script.templates import Template

import pylons
Expand Down Expand Up @@ -123,7 +124,9 @@ class MinimalPylonsTemplate(Template):
_template_dir = 'templates/minimal_project'
summary = 'Pylons minimal application template'
egg_plugins = ['Pylons', 'WebHelpers']


class PylonsInstaller(Installer):
use_cheetah = False

__all__ = ['AttribSafeContextObj', 'ContextObj', 'Helpers',
'class_name_from_module_name', 'log', '_', 'set_lang', 'get_lang']
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -67,7 +67,7 @@
include_package_data=True,
install_requires=[
"Routes>=1.6.2", "WebHelpers>=0.2.2", "Beaker==dev,>=0.6.3dev-r54",
"Paste==dev,>=1.1.2dev-r6138", "PasteDeploy>=1.0", "PasteScript>=1.0",
"Paste==dev,>=1.1.2dev-r6138", "PasteDeploy>=1.0", "PasteScript==dev,>=1.1.1dev-r6149",
"Myghty>=1.1", "FormEncode>=0.6", "simplejson>=1.4", "nose>=0.9.1",
],
classifiers=[
Expand Down

0 comments on commit 2480337

Please sign in to comment.