75 Commits

Author SHA1 Message Date
Adarnof
03aab76ab9 Group system overhaul
Closes #588
2016-12-29 17:42:10 -05:00
Adarnof
ce35e72e44 Correct discourse group sync task calling. 2016-12-20 01:20:31 +00:00
Adarnof
8582584fd5 prevent redis connectionerror for async tasks 2016-12-19 17:33:11 -05:00
Adarnof
a4a8852400 Replace rabbitmq with redis
Closes #592
2016-12-14 08:28:58 -05:00
Basraah
83b62525eb Added support for group leaders to manage groups 2016-12-05 21:49:12 +10:00
Adarnof
e77c162fa0 API SSO, Beautification of Tables, and more. (#562)
# One Thousandth Commit 🎉 🎈 🎆 🍾

* Allow requiring API ownership validation by SSO.
Closes #163

* Add Discourse group name length restrictions.

* Redirect after api addition/deletion of main character

* Correct admin searching for removed discourse_username field in AuthServicesInfo

* Correct admin function to sync user Discourse groups

* Beautify tables by removing borders and hiding when empty.

*Add buttons on dead-end pages to return to originating view.
2016-10-27 23:28:00 -04:00
Adarnof
4ff21b25c3 Discourse SSO (#560)
* Alter Discourse support to act as SSO provider.
Correct service group sync retry queueing.

* Correct default database enviroment variable names.

* Redirect to requested page after succesful login.

* Correct default redirect handling.
Correct attribute used to logout users on Discourse.
Improve logging messages to use parsed path on Discourse.

* Correct task retry syntax using bind=True.
Inherit from base exception so can catch TeamspeakErrors.
2016-10-25 14:52:12 -04:00
Adarnof
1b4f5e4e88 Adarnof's Little Things (#547)
* Port to Django 1.10
Initial migrations for current states of all models. Requires faking to retain data.
Removed all references to render_to_response, replacing with render shortcut.
Same for HttpResponseRedirect to render shortcut.
Corrected notification signal import to wait for app registry to finish loading.

* Correct typos from render conversion

* Modify models to suppress Django field warnings

* Script for automatic database conversion
 - fakes initial migrations to preserve data
Include LOGIN_URL setting

* Correct context processor import typo

* Removed pathfinder support.
Current pathfinder versions require SSO, not APIs added to database.
Conditionally load additional database definitions only if services are enabled.
Prevents errors when running auth without creating all possible databases.

* Condense context processors

* Include Django 1.10 installation in migrate script
Remove syncdb/evolve, replace with migrate for update script

* Replaced member/blue perms with user state system
Removed sigtracker
Initial migrations for default perms and groups
Removed perm bootstrapping on first run

* Clean up services list

* Remove fleet fittings page

* Provide action feedback via django messaging
Display unread notification count
Correct left navbar alignment

* Stop storing service passwords.
Provide them one time upon activation or reset.
Closes #177

* Add group sync buttons to admin site
Allow searcing of AuthServicesInfo models
Display user main character

* Correct button CSS to remove underlines on hover

* Added bulk actions to notifications
Altered notification default ordering

* Centralize API key validation.
Remove unused error count on API key model.
Restructure API key refresh task to queue all keys per user and await completion.
Closes #350

* Example configuration files for supervisor.
Copy to /etc/supervisor/conf.d and restart to take effect.
Closes #521
Closes #266

* Pre-save receiver for member/blue state switching
Removed is_blue field
Added link to admin site

* Remove all hardcoded URLs from views and templates
Correct missing render arguments
Closes #540

* Correct celeryd process directory

* Migration to automatically set user states.
Runs instead of waiting for next API refresh cycle. Should make the transition much easier.

* Verify service accounts accessible to member state

* Restructure project to remove unnecessary apps.
(celerytask, util, portal, registraion apps)
Added workarounds for python 3 compatibility.

* Correct python2 compatibility

* Check services against state being changed to

* Python3 compatibility fixes

* Relocate x2bool py3 fix

* SSO integration for logging in to existing accounts.

* Add missing url names for fleetup reverse

* Sanitize groupnames before syncing.

* Correct trailing slash preventing url resolution

* Alter group name sanitization to allow periods and hyphens

* Correct state check on pre_save model for corp/alliance group assignment

* Remove sigtracker table from old dbs to allow user deletion

* Include missing celery configuration

* Teamspeak error handling

* Prevent celery worker deadlock on async group result wait

* Correct active navbar links for translated urls.
Correct corp status url resolution for some links.
Remove DiscordAuthToken model.
2016-10-16 18:01:14 -04:00
moriartyj
812268211c Added Discord nickname syncing with EVE alliance character name (#525) 2016-09-03 23:13:54 -04:00
iAddz
c9e490a5c5 Added German Translations (#406)
* Added German Translations

Translated using
https://docs.djangoproject.com/en/1.9/topics/i18n/translation/

Added language drop down menu's for base.html, registration & login
pages

Known issues:
* Translated items in whtracker>create signature remain translated when
posted
* No date/time localisation for Fleet/Structure timers

* Added time locale

Added date/time locale to
*Structure Timers
*Fleet Timers
*Fleet timer form datetimepicker.js

Fixed a bug where the bootstrap label didn't show up when making a
structure timer using the translated form

Missed some base.html translations

* Small translation error

Some obscure SRP strings went unnoticed for context review

* FAT & Fleet-up German Translations

+ a fix in settings.py.example

The only small thing not done is German Date/Time locale for Fleet-up

* Compiled de/django.po
2016-06-16 22:54:04 +00:00
Adarnof
1fd423e20f Discord OAuth Integration (#468)
* Implement Discord OAuth
 - extend group caching to Discord
 - use bot token to manipulate api
 - migrate to official API
Addresses #419

* Remove virtualenv wrapper

* Discord OAuth integration playtest corrections
Closes #419
2016-06-13 00:16:27 +00:00
Meletis Flevarakis
e6b08fca88 XenForo integration initial version (#459)
* XenForo integration beta

* Removing debug loggers
2016-06-11 21:22:58 +00:00
moriartyj
f6a177295d Automatic rejection of old API IDs (#441)
Automatic rejection of old API IDs
Closes #436
2016-05-27 09:24:35 -04:00
Joakim Strandberg
b190b8e191 Adding "Paplink" feature (#401)
* Initial testing of paplink functionality. More fancy interfaces coming.

* Removed a invalid view reference.

* Added a link on the front page.

* Fixed some bad references and incorrect in game browser header usages.

* Started work on statistics-pages.

* Added an initial modify-paplink page where the pap itself can be deleted and characters removed.

* Added a very simple statistics page. Also some name change for ~reasons~.

* Small but crucial fix of syntax.

* Added personal statistics page.

* Corputils page now include fatlinkstats.

* Added link to the personal statistics page. Moved other buttons for clarity.

* Removed some unused code and imports

* Added more statistics, and all corps in alliance are now visible even if no paps are registered.

* Now requesting trust for the right domain. And some redundant imports and commented lines are removed.
2016-04-29 18:00:45 -05:00
johanko
819be1df4d Update settings.py.example 2016-04-18 08:13:49 +02:00
johanko
81ecba59e4 Update settings.py.example 2016-04-18 07:55:46 +02:00
johanko
6ae79ff82e accidently deleted settings example, also fixed a missing folder in api URL.
Keep in mind, this Fleet-up integration has no errorhandling or logging.
2016-04-07 08:52:54 +00:00
johanko
1770fc5548 Fleetup API manager and views 2016-04-06 13:11:15 +00:00
Mr McClain
9a2eb52fca added an example to allowed hosts 2016-04-05 01:53:27 -05:00
Adarnof
5f44d79cbd correct email comment 2016-04-03 16:00:12 -04:00
Adarnof
87968f002c remove need to set template and staticfiles dirs
shamelessly stolen from Adarnauth
2016-04-02 16:10:27 -04:00
Mr McClain
14d0d7519c opsec 2016-03-30 05:20:52 -05:00
orbitroom
75459361dc Added IP Board 4 2016-03-30 04:04:14 -05:00
Adarnof
8c4015126c ICE Authenticator for Murmur
- reads username, pwhash from db table containing MumbleUser models
 - needs to be started separately somehow, instructions unclear
 - adapted from https://github.com/mumble-voip/mumble-scripts/blob/master/Authenticators/SMF/2.0/smfauth.py
Closes #165
2016-03-15 01:36:24 +00:00
Adarnof
287b3a82a9 Move default logfile location to log folder
chmod 777 log folder so apache can write
Addresses #282
2016-02-23 02:45:48 +00:00
Adarnof
ece06a6832 Toggle assignment of alliance groups 2016-02-17 21:16:16 +00:00
Adarnof
5e2c828c3b Front-end notification system
Currently only creates notifications for logging events
Addresses #75
2016-02-13 21:53:43 +00:00
Adarnof
1d99ef69d1 Front-end notification model
Context processor to count notifications for display in base template
Logging handler to generate notifications for users with permission
2016-02-13 05:25:57 +00:00
Adarnof
b988f4ad6f Added ability to toggle assigning corp groups 2016-02-02 06:28:06 +00:00
Adarnof
a1343282d2 Implements solution for #224 2016-01-31 22:44:42 +00:00
Ydmir
9041f0e7c7 Handling missing settings.CORP_ID in alliance mode, and api-scope error in corporation mode. Also fixing visual on the corputilsearchview. 2016-01-31 11:29:54 +01:00
Ydmir
1e86df3992 Fixed indentation for real... 2016-01-30 11:26:42 +01:00
Ydmir
62efad2b66 Merged changes in master. 2016-01-24 00:27:03 +01:00
Mr McClain
586b08d625 fixed installed apps bug
forgot to add it to the settings.py example
2016-01-21 03:40:06 -06:00
orbitroom
59f73abde0 Added Sig tracker debug code 2016-01-15 03:12:26 -06:00
orbitroom
c9e600dfee Added Signature Tracker
Added a tool to help track various sites and wormholes
2016-01-15 03:01:18 -06:00
Ydmir
d0c5e40bc8 Also added the new app corputils to installed apps in settings.py.example 2016-01-15 09:27:14 +01:00
Adarnof
4fa764e301 Renamed MEDIA_URL to prevent overriding django setting
https://docs.djangoproject.com/en/1.9/ref/settings/#media-url
2016-01-06 20:58:17 +00:00
Adarnof
b7a15dff73 Changed default killboard url to blank. 2016-01-06 05:21:36 +00:00
Adarnof
50ea33a247 Relocate FORUM_URL to Front Page Links 2016-01-05 23:59:50 +00:00
Adarnof
87393b8529 Variable forum/killboard/media urls on index #140
- only rendered if set, otherwise link removed
2016-01-05 23:57:30 +00:00
Adarnof
019cf891b0 corrected django logging handler to reference log_file 2016-01-03 21:19:43 +00:00
Adarnof
6c3085f78c Added django core logging with default loglevel ERROR
Corrected logic for logging message in authentication/managers.py
2016-01-03 08:57:52 +00:00
Adarnof
583be5a72e Changed to rotating log file handler.
Added logging description in settings.py
Updated .gitignore to ignore rotated log files.

Logging adapted from http://stackoverflow.com/questions/14354066/django-log-rotating-and-log-file-ownership
2016-01-02 22:34:44 +00:00
Adarnof
a789edb3d8 Logging everywhere.
Corrected corp model updating logic to handle owning corp.
Corrected typecasting during api access mask comparison.
Removed error protection during user TS3 group updating to propogate errors.

Relevent issues:
Sorry for the spam.
2016-01-02 21:24:40 +00:00
Adarnof
b43902c178 Another tweak to logging settings. 2015-12-28 21:13:04 +00:00
Adarnof
834cd8865e Added console logging output. 2015-12-28 20:21:17 +00:00
Adarnof
d44d73d445 Corrected logging of services module. 2015-12-28 19:51:09 +00:00
Adarnof
55fc69cf8d Basic logging for Discord account creation and database updating. 2015-12-28 06:50:13 +00:00
Adarnof
4923862dd6 Updated default setting format for openfire address to accomodate openfire-restapi package 2015-12-22 22:44:46 +00:00