From ce783f83994293bc128d8cadb8829c7f75030434 Mon Sep 17 00:00:00 2001 From: Stephen Burrows Date: Wed, 5 Jan 2011 16:18:32 -0500 Subject: [PATCH] Added markdown-formatted README, and added a note to the readme re: the IRC channel. Removed the replace_sender_response function as it was a terrible abomination that was bound to encourage hackish solutions. --- README | 2 +- README.markdown | 24 ++++++++++++++++++++++++ signals.py | 9 +-------- 3 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 README.markdown diff --git a/README b/README index 90d12c0..5ce7b93 100644 --- a/README +++ b/README @@ -8,7 +8,7 @@ Prerequisites: * (Optional) recaptcha-django r6 * (Optional) south 0.7.2+ -To contribute, please visit the project website . +To contribute, please visit the project website . Feel free to join us on IRC at irc://irc.oftc.net/#philo. ==== Using philo diff --git a/README.markdown b/README.markdown new file mode 100644 index 0000000..0e695c5 --- /dev/null +++ b/README.markdown @@ -0,0 +1,24 @@ +Philo is a foundation for developing web content management systems. + +Prerequisites: + + * [Python 2.5.4+ <http://www.python.org>](http://www.python.org/) + * [Django 1.2+ <http://www.djangoproject.com/>](http://www.djangoproject.com/) + * [django-mptt 0.4+ <https://github.com/django-mptt/django-mptt/>](https://github.com/django-mptt/django-mptt/) + * (Optional) [django-grappelli 2.0+ <http://code.google.com/p/django-grappelli/>](http://code.google.com/p/django-grappelli/) + * (Optional) [south 0.7.2+ <http://south.aeracode.org/)](http://south.aeracode.org/) + * (Optional) [recaptcha-django r6 <http://code.google.com/p/recaptcha-django/>](http://code.google.com/p/recaptcha-django/) + +To contribute, please visit the [project website](http://philo.ithinksw.org/). Feel free to join us on IRC at [irc://irc.oftc.net/#philo](irc://irc.oftc.net/#philo>). + +Using philo +=========== + +After installing philo and mptt on your python path, make sure to complete the following steps: + +1. add 'philo.middleware.RequestNodeMiddleware' to settings.MIDDLEWARE_CLASSES. +2. add 'philo' and 'mptt' to settings.INSTALLED_APPS. +3. include 'philo.urls' somewhere in your urls.py file. +4. Optionally add a root node to your current Site. + +Philo should be ready to go! \ No newline at end of file diff --git a/signals.py b/signals.py index 875039d..3653c54 100644 --- a/signals.py +++ b/signals.py @@ -5,11 +5,4 @@ entity_class_prepared = Signal(providing_args=['class']) view_about_to_render = Signal(providing_args=['request', 'extra_context']) view_finished_rendering = Signal(providing_args=['response']) page_about_to_render_to_string = Signal(providing_args=['request', 'extra_context']) -page_finished_rendering_to_string = Signal(providing_args=['string']) - - -def replace_sender_response(sender, response): - """Helper function to swap in a new response.""" - def render_to_response(self, *args, **kwargs): - return response - sender.actually_render_to_response = render_to_response \ No newline at end of file +page_finished_rendering_to_string = Signal(providing_args=['string']) \ No newline at end of file -- 2.20.1