Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
8d1492f9b3 | ||
![]() |
05dee45ee8 | ||
![]() |
60aedff443 | ||
![]() |
0863c41293 |
14
CHANGELOG
Normal file
14
CHANGELOG
Normal 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
|
2
LICENSE
2
LICENSE
@ -1,3 +1,4 @@
|
|||||||
|
Copyright (c) 2015, James Turk
|
||||||
Copyright (c) 2009, Sunlight Foundation
|
Copyright (c) 2009, Sunlight Foundation
|
||||||
All rights reserved.
|
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 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.
|
* 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.
|
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.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include LICENSE
|
include LICENSE
|
||||||
|
include CHANGELOG
|
||||||
include README.rst
|
include README.rst
|
||||||
include *.py
|
include *.py
|
||||||
recursive-include brainstorm/templates *
|
recursive-include brainstorm/templates *
|
||||||
|
13
README.rst
13
README.rst
@ -4,21 +4,14 @@ django-brainstorm
|
|||||||
|
|
||||||
Django app for creating a site with multiple areas to brainstorm ideas.
|
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.'
|
Source: http://github.com/jamesturk/django-brainstorm/
|
||||||
|
|
||||||
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/
|
|
||||||
|
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
============
|
============
|
||||||
|
|
||||||
python >= 2.4
|
* python >= 2.4
|
||||||
django >= 1.0
|
* django >= 1.0
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
=====
|
=====
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
__version__ = '0.2.1'
|
@ -31,9 +31,11 @@ def idea_detail(request, slug, id):
|
|||||||
def new_idea(request, slug):
|
def new_idea(request, slug):
|
||||||
subsite = get_object_or_404(Subsite, pk=slug)
|
subsite = get_object_or_404(Subsite, pk=slug)
|
||||||
if not subsite.user_can_post(request.user):
|
if not subsite.user_can_post(request.user):
|
||||||
return HttpResponseRedirect(subsite.get_absolute_url())
|
return redirect(subsite.get_absolute_url())
|
||||||
title = request.POST['title']
|
title = request.POST['title']
|
||||||
description = request.POST['description']
|
description = request.POST['description']
|
||||||
|
if not title.strip() or not description.strip():
|
||||||
|
return redirect(subsite.get_absolute_url())
|
||||||
user = request.user
|
user = request.user
|
||||||
idea = Idea.objects.create(title=title, description=description, user=user,
|
idea = Idea.objects.create(title=title, description=description, user=user,
|
||||||
subsite=subsite)
|
subsite=subsite)
|
||||||
|
6
setup.py
6
setup.py
@ -4,15 +4,15 @@ long_description = open('README.rst').read()
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='django-brainstorm',
|
name='django-brainstorm',
|
||||||
version="0.2.0",
|
version="0.2.1",
|
||||||
package_dir={'brainstorm': 'brainstorm'},
|
package_dir={'brainstorm': 'brainstorm'},
|
||||||
packages=['brainstorm'],
|
packages=['brainstorm'],
|
||||||
package_data={'brainstorm': ['templates/brainstorm/*.html']},
|
package_data={'brainstorm': ['templates/brainstorm/*.html']},
|
||||||
description='Django brainstorming site',
|
description='Django brainstorming site',
|
||||||
author='James Turk',
|
author='James Turk',
|
||||||
author_email='jturk@sunlightfoundation.com',
|
author_email='james.p.turk@gmail.com',
|
||||||
license='BSD License',
|
license='BSD License',
|
||||||
url='http://github.com/sunlightlabs/django-brainstorm/',
|
url='http://github.com/jamesturk/django-brainstorm/',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
platforms=["any"],
|
platforms=["any"],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
Loading…
Reference in New Issue
Block a user