From 5b54a0d28bd2bbd8db3432eba1fe8c0258ac0517 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Thu, 13 Nov 2014 17:47:45 +0000 Subject: [PATCH] Changed license --- LICENSE | 43 +++++++++++++++++++++++--------- README.md | 44 ++++++++++++++++++++++++--------- orchestra/apps/webapps/admin.py | 13 +++------- 3 files changed, 67 insertions(+), 33 deletions(-) diff --git a/LICENSE b/LICENSE index c684ec22..e8b2442b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,14 +1,35 @@ -Copyright (C) 2013 Marc Aymerich +Copyright (c) 2014 Marc Aymerich and individual contributors +All Rights Reserved. -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. +Django-orchestra is licensed under The BSD License (3 Clause, also known as +the new BSD license). The license is an OSI approved Open Source +license and is GPL-compatible(1). -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +The license text can also be found here: +http://www.opensource.org/licenses/BSD-3-Clause -You should have received a copy of the GNU General Public License -along with this program. If not, see . +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * 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 Ask Solem, 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 Ask Solem 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. diff --git a/README.md b/README.md index 87364931..a6ba54bd 100644 --- a/README.md +++ b/README.md @@ -76,18 +76,38 @@ If you are planing to do some development or perhaps just checking out this proj License ------- -Copyright (C) 2013 Marc Aymerich +Copyright (c) 2014 Marc Aymerich and individual contributors +All Rights Reserved. -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. +Django-orchestra is licensed under The BSD License (3 Clause, also known as +the new BSD license). The license is an OSI approved Open Source +license and is GPL-compatible(1). -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +The license text can also be found here: +http://www.opensource.org/licenses/BSD-3-Clause -You should have received a copy of the GNU General Public License -along with this program. If not, see . -Status API Training Shop Blog About +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * 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 Ask Solem, 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 Ask Solem 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. diff --git a/orchestra/apps/webapps/admin.py b/orchestra/apps/webapps/admin.py index b16118a4..711f0573 100644 --- a/orchestra/apps/webapps/admin.py +++ b/orchestra/apps/webapps/admin.py @@ -72,16 +72,9 @@ class WebAppAdmin(AccountAdminMixin, ExtendedModelAdmin): """ Make value input widget bigger """ if db_field.name == 'type': # Help text based on select widget - kwargs['widget'] = forms.Select(attrs={ - 'onClick': """ - siteoptions = %s; - valueelement = $("#"+this.id); - valueelement.parent().find('p').remove(); - valueelement.parent().append( - "

" + siteoptions[this.options[this.selectedIndex].value] + "

" - ); - """ % str(self.TYPE_HELP_TEXT), - }) + kwargs['widget'] = DynamicHelpTextSelect( + 'this.id.replace("name", "value")', self.TYPE_HELP_TEXT + ) kwargs['help_text'] = self.TYPE_HELP_TEXT.get(db_field.default, '') return super(WebAppAdmin, self).formfield_for_dbfield(db_field, **kwargs)