Skip to content
KeithUSF edited this page Oct 28, 2013 · 4 revisions

Users and Groups

OpenTreeMap uses Django's default user authentication, a custom profile module, a registration module developed by ubernostrum and a reputation module developed by genghisu.

Settings

User management settings should be in the impl_settings.py file if they need to change from the defaults. Here is a list of available settings and their defaults:

  • REGISTRATION_OPEN = True
  • ACCOUNT_ACTIVATION_DAYS = 7

There are also several settings to be found in the reputation module's config.py file. To modify the reputation system, change the following default settings directly in that module's file as it does not pick up settings overrides correctly:

  • MAX_REPUTATION_LOSS_PER_DAY = 250
  • MAX_REPUTATION_GAIN_PER_DAY = 250
  • BASE_REPUTATION = 5000

Management Users

Management users are able to access all user/tree/activity management pages, but not Django's administrative system. To create management users, first create a management group and assign the following permissions:

  • auth | user | Can change user
  • django_reputation | reputation | Can change reputation
  • threadedcomments | [all permissions]
  • treemap | tree | Can delete tree
  • treemap | plot | Can delete plot

Users can be assigned to these groups using the user management page, or in the Django administrative system.

Trusted Users

Trusted users are defined as users with > 1000 reputation points. If you haven't changed the reputation system defaults, all registered users will be trusted users once their accounts are activated. Trusted users can access the Recent Edits management page and assign or remove additional reputation points to fellow users based on their edits. For this system to work correctly, the following Reputation Actions must be created in the Django administrative system:

  • add tree
  • edit tree
  • add plot
  • edit plot
  • edit verified
  • Administrative Action

The action names are case sensitive. An additional permission must be created in the Django_reputation Permissions area: can_edit_condition with a required reputation value above the base reputation value set in the reputation module's config.py file.

Reputation is earned and lost in the following ways:

+25 points - Adding a tree
+5 points - Editing a tree
+5 points - Receiving a thumbs-up on your edit
+1 point - Receiving a neutral reaction to your edit
-5 points - Receiving a thumbs-down on your edit