forked from roundware/roundware-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a fairly extensive commit, since most of the requirements had to be upgraded as well. Dependencies have been locked down to specific versions for consistency and troubleshooting. Notable changes: - Moved wsgi.py to a more standard location, updated apache config. Now referenced in roundware.settings.WSGI_APPLICATION - For roundware.api2, implemented the new Application Configuration structure. See http://stackoverflow.com/q/32795227/1943591 - django-guardian now creates its own AnonymousUser in the database. Removed AnonymousUser references from fixtures to avoid conflicts. http://django-guardian.readthedocs.io/en/stable/configuration.html - django-guardian assign is being depricated for assign_perm See django-guardian/django-guardian@1419048 - ManyToManyField no longer accepts null=True - django.contrib.auth.models.User should not be accessed directly. Use django.conf.settings.AUTH_USER_MODEL instead - Django changed the way it loads models, which broke streaming. Moving django.setup() in roundwared.rwstreamd fixed the issue. - django_chartit is no longer maintained. Moved to django_chartit2 This may require us to install jQuery and Highcharts manually - django.forms.models.save_instance has been removed. We are now calling save() instead, but it might need more testing. django/django@8656cf django/django@b11564 - Fixed errors in Travis install script (thanks @hburgund) - Fixed jsocol/django-adminplus/issues/42 - Fixed django-admin-bootstrapped dependency See IMAmuseum/django-admin-bootstrapped - Fixed queryset filtering in ProjectProtectedThrough classes in admin.py Added explicit permission-based queryset filtering to ProjectAdmin - Fixed duplicate rows in auth_permission, removed default_auth fixtures. - Removed fix-m2m-deserial.patch This closes roundware#229, fixes roundware#291, and supersedes roundware#282.
- Loading branch information
1 parent
fadb34d
commit 4b43011
Showing
26 changed files
with
255 additions
and
953 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
-r ./common.txt | ||
|
||
django-debug-toolbar | ||
django-debug-toolbar==1.4 | ||
django-profiler==2.0 | ||
|
||
#testing. | ||
coverage==3.7.1 | ||
#testing. | ||
coverage==4.0.3 | ||
webtest==2.0.9 | ||
django-webtest==1.7.5 | ||
model_mommy==1.2 | ||
mock==1.0.1 | ||
python-dbusmock==0.8 | ||
django-webtest==1.7.9 | ||
model_mommy==1.2.6 | ||
mock==2.0.0 | ||
python-dbusmock==0.16.3 | ||
|
||
#interactive interpreter for debugging | ||
ipython | ||
ipython==4.0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,4 @@ | ||
# Roundware Server is released under the GNU Affero General Public License v3. | ||
# See COPYRIGHT.txt, AUTHORS.txt, and LICENSE.txt in the project root directory. | ||
|
||
# Contains Roundware DRF REST API V2 signals. | ||
from __future__ import unicode_literals | ||
from django.contrib.auth import get_user_model | ||
from django.db.models.signals import post_save | ||
from rest_framework.authtoken.models import Token | ||
import logging | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
def create_auth_token(sender, instance=None, created=False, **kwargs): | ||
""" | ||
Create an access Token for every new user | ||
""" | ||
if created: | ||
Token.objects.create(user=instance) | ||
|
||
post_save.connect(create_auth_token, get_user_model) | ||
default_app_config = 'api2.apps.RoundwareApi2Config' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Roundware Server is released under the GNU Affero General Public License v3. | ||
# See COPYRIGHT.txt, AUTHORS.txt, and LICENSE.txt in the project root directory. | ||
|
||
from django.apps import AppConfig | ||
|
||
class RoundwareApi2Config(AppConfig): | ||
name = 'api2' | ||
|
||
def ready(self): | ||
import roundware.api2.signals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Roundware Server is released under the GNU Affero General Public License v3. | ||
# See COPYRIGHT.txt, AUTHORS.txt, and LICENSE.txt in the project root directory. | ||
|
||
# Contains Roundware DRF REST API V2 signals. | ||
from __future__ import unicode_literals | ||
from django.contrib.auth import get_user_model | ||
from django.db.models.signals import post_save | ||
from rest_framework.authtoken.models import Token | ||
import logging | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
def create_auth_token(sender, instance=None, created=False, **kwargs): | ||
""" | ||
Create an access Token for every new user | ||
""" | ||
if created: | ||
Token.objects.create(user=instance) | ||
|
||
post_save.connect(create_auth_token, get_user_model) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.