Compare commits

...

4 Commits

Author SHA1 Message Date
James Turk
8d1492f9b3 updates 2015-06-16 17:19:53 -04:00
James Turk
05dee45ee8 Update README.rst 2015-03-03 17:46:25 -05:00
James Turk
60aedff443 bump for 0.2.1 2009-12-09 14:22:56 -05:00
James Turk
0863c41293 prevent empty ideas (if only it were that easy) 2009-08-31 17:04:00 -04:00
7 changed files with 26 additions and 15 deletions

14
CHANGELOG Normal file
View File

@ -0,0 +1,14 @@
0.2.1 - December 9 2009
=======================
- disallow submission of empty ideas
- fix a packaging bug
0.2.0 - August 25 2009
======================
- rewrite for Sunlight Labs website
- reduced a few extra queries
- integrate with django-gatekeeper if installed
0.1.0 - May 27 2009
=====
- initial working release, focused on subsites

View File

@ -1,3 +1,4 @@
Copyright (c) 2015, James Turk
Copyright (c) 2009, Sunlight Foundation
All rights reserved.
@ -5,6 +6,5 @@ Redistribution and use in source and binary forms, with or without modification,
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of Sunlight Foundation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -1,4 +1,5 @@
include LICENSE
include CHANGELOG
include README.rst
include *.py
recursive-include brainstorm/templates *

View File

@ -4,21 +4,14 @@ django-brainstorm
Django app for creating a site with multiple areas to brainstorm ideas.
This app powers http://feedback.sunlightfoundation.com/hackathon/ and http://feedback.sunlightfoundation.com/oogl/ and makes it easy to create any number of these 'subsites.'
django-brainstorm is a project of Sunlight Labs (c) 2009.
Written by James Turk <jturk@sunlightfoundation.com>.
All code is under a BSD-style license, see LICENSE for details.
Source: http://github.com/sunlightlabs/django-brainstorm/
Source: http://github.com/jamesturk/django-brainstorm/
Requirements
============
python >= 2.4
django >= 1.0
* python >= 2.4
* django >= 1.0
Usage
=====

View File

@ -0,0 +1 @@
__version__ = '0.2.1'

View File

@ -31,9 +31,11 @@ def idea_detail(request, slug, id):
def new_idea(request, slug):
subsite = get_object_or_404(Subsite, pk=slug)
if not subsite.user_can_post(request.user):
return HttpResponseRedirect(subsite.get_absolute_url())
return redirect(subsite.get_absolute_url())
title = request.POST['title']
description = request.POST['description']
if not title.strip() or not description.strip():
return redirect(subsite.get_absolute_url())
user = request.user
idea = Idea.objects.create(title=title, description=description, user=user,
subsite=subsite)

View File

@ -4,15 +4,15 @@ long_description = open('README.rst').read()
setup(
name='django-brainstorm',
version="0.2.0",
version="0.2.1",
package_dir={'brainstorm': 'brainstorm'},
packages=['brainstorm'],
package_data={'brainstorm': ['templates/brainstorm/*.html']},
description='Django brainstorming site',
author='James Turk',
author_email='jturk@sunlightfoundation.com',
author_email='james.p.turk@gmail.com',
license='BSD License',
url='http://github.com/sunlightlabs/django-brainstorm/',
url='http://github.com/jamesturk/django-brainstorm/',
long_description=long_description,
platforms=["any"],
classifiers=[