Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / models.py @ d2b8ec7b

History | View | Annotate | Download (96 kB)

# Date Author Comment
878d9cf3 04/02/2013 08:49 am Kostas Papadimitriou

Merge branch 'tmp-common-email-recipients' into develop

f30f0170 03/26/2013 06:42 pm Giorgos Korfiatis

Log project actions

6f25ec42 03/26/2013 03:50 pm Kostas Papadimitriou

Merge branch 'release-0.13' into feature-astakos-authpolicies

2b745492 03/26/2013 01:30 pm Giorgos Korfiatis

Specify reason when denying project application

Add field `response' in ProjectApplication model.
Add option `-m' in project-control command.

Refs #3493

a6a152d6 03/22/2013 03:55 pm Giorgos Korfiatis

Move managers.py in synnefo.lib.db

This makes it easier to maintain, since it is used in multiple applications
(astakos.im and quotaholder_app).

2ef1e2d7 03/22/2013 12:35 pm Giorgos Korfiatis

Change output of astakos-quota --sync

Inform specifically which users, if any, have been synced, instead of
listing the whole diff. The latter can be recovered by giving the
option --verify.

f6950864 03/21/2013 06:04 pm Giorgos Korfiatis

Sync only quotas that differ

Refs #3479

Database stack limit issue was triggered by syncing quotas for
all users. It is much faster to compare quotas locally and send
for sync to quotaholder only those that differ.

9d20fe23 03/15/2013 07:49 pm Kostas Papadimitriou

Authentication providers improvements

Major authentication provider refactoring to support

- Modular and easily configurable messages with common context
- Fine grained provider policies to support appling specific policies to
users and/or groups

Key points:...

5d5ce247 03/15/2013 07:49 pm Kostas Papadimitriou

Astakos logging improvements

use the common user_log display method accross logging calls

97246b51 03/15/2013 07:49 pm Kostas Papadimitriou

Auth providers improvements

- Improved logging
- Messages changes
- Fixes in local module login/add policies handling

5df4c364 03/07/2013 07:01 pm Kostas Papadimitriou

Astakos logging fixes

Removed with_logging wrapper which inconsistently extracted user/request
arguments. Logging statements placed explicitly within login/logout
methods.

Fix admin notification logging

88f4d3b3 03/07/2013 03:14 pm Georgios D. Tsoukalas

Add 'default' capacity to user-set-initial-quota

9efc25a1 03/06/2013 03:26 pm Giorgos Korfiatis

Fix calculation of initial quotas

Also add all_quotas method in AstakosUser

Refs #3388

09a8fb8e 03/06/2013 02:27 pm Giorgos Korfiatis

Merge branch 'tmp-quota-opt2' into release-0.13

Refs #3388

Improve performance of quota operations

8d1636b5 03/05/2013 06:06 pm Giorgos Korfiatis

Set initial user quota from the command line

Refs #3373

Add option --set-capacity in user-set-initial-quota that sets
initial quota for a specified user/resource pair.

Importing from a file requires option --from-file.

a989b48e 02/27/2013 05:10 pm Giorgos Korfiatis

Optimize computation of astakos user quotas

4391de3d 02/27/2013 05:10 pm Giorgos Korfiatis

Speed up project-list

c9a6e558 02/27/2013 04:54 pm Constantinos Venetsanopoulos

Verbal updates wrt help texts of astakos forms

84a1d7dd 02/27/2013 03:45 pm Georgios D. Tsoukalas

Fix some messages

c7c0ec58 02/27/2013 03:45 pm Giorgos Korfiatis

Add per-user limit on pending applications

Add UserSettings model for storing integer-valued settings.
If an entry is missing, a default synnefo setting is consulted.

The limit can be set/unset with snf-manage user-update.

53777f42 02/18/2013 10:23 pm Sofia Papagiannaki

Change astakos init

Do not override service url if it is not set.

ea1e5d9f 02/14/2013 04:28 pm Giorgos Korfiatis

Make ForUpdateManager thread-safe

The manager held a global flag `_for_update' on a single manager object,
which could be read or set by multiple threads.

select_for_update() is now provided by a subclass of QuerySet.
It must be used as the last modifier of a query set,...

f557d10a 02/14/2013 04:27 pm Giorgos Korfiatis

Unify and rename project management commands

b6eaca30 02/14/2013 04:27 pm Giorgos Korfiatis

Encode unicode strings in str

8c7229a8 02/14/2013 04:27 pm Giorgos Korfiatis

Generalize instance checks for integers

d6ea9b3d 02/14/2013 04:26 pm Olga Brani

Style fixes

New style for resource usage page
Temporary help_text for profile form
Css fixes

606dea8d 02/14/2013 04:26 pm Kostas Papadimitriou

Notify user for pending registrations

astakos allows users to replace pending created accounts (user that
have not yet passed the activation process) by re-submiting the signup
form. A message is now displayed in such cases to remind the user of the
pending account.

d833fcbb 02/14/2013 04:26 pm Kostas Papadimitriou

Helper AstakosUser method

to retrieve the first auth provider assigned to user. Can be used in
activation email template to inform the user about the provider used to
create the account.

c8a8cb19 02/14/2013 04:26 pm Giorgos Korfiatis

Make sync_projects more robust

Retry qh_add_quota on failure excluding faulty memberships.
Call given error view on exception.

c1007621 02/14/2013 04:26 pm Giorgos Korfiatis

Add LEAVE_REQUESTED state on ProjectMembership

d9907a5e 02/14/2013 04:26 pm Giorgos Korfiatis

Check user status when creating project membership

fc154f4a 02/14/2013 04:26 pm Georgios D. Tsoukalas

make astakos-load-service-resources idempotent

astakos-load-service-resources would only load resources correctly once,
during migration. Now it can be used at will to re-initialize service
resources from astakos configuration.

39c9b4e0 02/14/2013 04:26 pm Georgios D. Tsoukalas

astakos-load-service-resources to honor service display order

8e1a5af5 02/14/2013 04:26 pm Georgios D. Tsoukalas

approve, deny, dismiss views

At the project application detail, project administrators
(ASTAKOS_PROJECT_ADMINS setting) may approve or deny it.
A denied application is still viewable by the applicant,
until he dismisses it from the same page.

The project administrators' project list includes all projects.

beda5f0f 02/14/2013 04:26 pm Georgios D. Tsoukalas

fix project admin permissions

022cc8e2 02/14/2013 04:26 pm Giorgos Korfiatis

View and dismiss denied applications of an active project

e2c2cd9d 02/12/2013 05:03 pm Kostas Papadimitriou

Fix dummy field description

a7752e95 01/30/2013 09:42 pm Sofia Papagiannaki

Fix superusers (created by syncdb) command

ea05c568 01/30/2013 09:40 pm Sofia Papagiannaki

Case insensitive displayname search

5d209685 01/28/2013 07:36 pm Giorgos Korfiatis

Change display of Chain.PENDING

033f2822 01/28/2013 05:16 pm Giorgos Korfiatis

Move Chain code block before ProjectApplicationManager

2529745f 01/28/2013 05:16 pm Giorgos Korfiatis

Introduce chain state and related methods

5195c0e9 01/28/2013 12:00 pm Giorgos Korfiatis

Make Chain a proper db table

Keep chain IDs in table Chain and add foreign keys from ProjectApplication
and Project to Chain.

This will allow us to reference a possibly not yet approved project
in a more concise way.

d74111be 01/26/2013 09:14 pm Giorgos Korfiatis

Fix presentation in project template

7f31a7a3 01/25/2013 06:30 pm Giorgos Korfiatis

Check if a user other than the owner can view a project

fa153211 01/25/2013 06:12 pm Giorgos Korfiatis

Remove duplicate function

d1b04b96 01/25/2013 05:42 pm Giorgos Korfiatis

Remove obsolete user_status and its clients

a75dbd7b 01/25/2013 12:26 pm Giorgos Korfiatis

View for cancelling a pending application

8a510584 01/24/2013 07:18 pm Kostas Papadimitriou

Preserve auth provider order across views

d4660e00 01/24/2013 07:04 pm Giorgos Korfiatis

Changes in project_detail

Distinguish project/application view as well as
owner/simple user mode

b8b8fdde 01/24/2013 06:58 pm Constantinos Venetsanopoulos

Update Astakos help text message

Change the message on the form in which the user
changes his/her password.

94e49e22 01/24/2013 06:39 pm Kostas Papadimitriou

Skip project homepage response validation

e1017df9 01/24/2013 04:00 pm Giorgos Korfiatis

Set Project.name None when terminated so that it can be reused

e9e692be 01/24/2013 03:58 pm Kostas Papadimitriou

Auth providers fixes

- Respect CAN_REMOVE provider setting
- Verbal differences in create password form (based on if user requests
to add local password method or just tries to change the password)

db71675c 01/24/2013 03:58 pm Kostas Papadimitriou

Enrich local login method profile display

- Include username/email

2a2c6876 01/24/2013 03:05 pm Giorgos Korfiatis

Use admin version of state display

d77b32f2 01/24/2013 02:32 pm Giorgos Korfiatis

Changes in state display, plus some queries

57f5ea5c 01/24/2013 11:26 am Giorgos Korfiatis

Use locking function as a decorator

0e79735c 01/23/2013 10:04 pm Kostas Papadimitriou

Several auth providers fixes/improvements

- Allow third party signup if existing account with the same third party
identifier is not yet verified. Subsequent registrations will replace
previous ones (pending/unverified accounts will be removed).
- Merge common third party code in target/__init__.py...

890c2065 01/23/2013 06:51 pm Sofia Papagiannaki

Change feedback & user_catalogs astakos && pithos api calls

  • Substitute ``username`` with ``displayname``
aad0e329 01/22/2013 06:55 pm Giorgos Korfiatis

Option to cancel membership request

3e3743f2 01/22/2013 05:56 pm Giorgos Korfiatis

wip More progress with chains

7184f408 01/22/2013 03:29 pm Giorgos Korfiatis

wip Progress with chains

ff67242a 01/22/2013 01:28 pm Giorgos Korfiatis

wip Project views by chain_id

01bdbd17 01/22/2013 11:58 am Giorgos Korfiatis

Checks for operations on applications

14f7f6a5 01/22/2013 11:30 am Giorgos Korfiatis

Fix membership checks

93c4dc6b 01/22/2013 10:57 am Giorgos Korfiatis

Output log for project-sync

d5570293 01/21/2013 02:21 pm Giorgos Korfiatis

Check sync status only for active users

5aac5dc4 01/21/2013 01:04 pm Giorgos Korfiatis

In sync_users log quotas computed by astakos

b98e1df0 01/18/2013 07:23 pm Sofia Papagiannaki

Provide project details command

762900a2 01/18/2013 06:56 pm Giorgos Korfiatis

Collect reporting info for sync_projects()

140da2d1 01/18/2013 06:05 pm Giorgos Korfiatis

Split management command into astakos-quota-verify and project-sync

84a3f701 01/18/2013 04:59 pm Giorgos Korfiatis

Advances in syncing quotaholder with astakos

Factor out trigger_sync() as lock_sync() to be used for other
sync processes in addition to sync_projects().
Implement sync_users(), which registers users and their quotas.
Use both sync processes in astakos-qh-sync management command.

ddcc0dd9 01/18/2013 02:31 pm Kostas Papadimitriou

Merge remote-tracking branch 'synnefo/feature-projects' into feature-astakos-newstyles

a96c495d 01/18/2013 01:41 pm Olga Brani

Improvements in auth_methods js in profile page

7eadc230 01/17/2013 06:52 pm Giorgos Korfiatis

Management command to check and perform project expiration

e1f31e63 01/17/2013 06:48 pm Giorgos Korfiatis

Display project state

72a6e1e8 01/17/2013 06:45 pm Giorgos Korfiatis

Make is_alive equal to not is_terminated

9307cd46 01/17/2013 06:44 pm Giorgos Korfiatis

Rename PROJECT_STATE_DISPLAY to APPLICATION_STATE_DISPLAY

649f2d36 01/17/2013 03:05 pm Kostas Papadimitriou

Check if local provider supports email changet

4d0bdd3b 01/17/2013 03:05 pm Kostas Papadimitriou

Some code refactoring

8eb36753 01/17/2013 03:05 pm Kostas Papadimitriou

Exclude local accounts in unverified accounts cleanup

If an authenticated user tries to add a third party login method, reset
existing pending users created using the same third party identifier.

e5bc7bc9 01/17/2013 02:55 pm Giorgos Korfiatis

Add an assertion check in all_quotas

689226c3 01/17/2013 02:55 pm Giorgos Korfiatis

Compiled project queries for optimization

2a666c36 01/16/2013 05:22 pm Giorgos Korfiatis

Set membership inactive when syncing in PROJECT_DEACTIVATED state

cd633c29 01/16/2013 04:45 pm Giorgos Korfiatis

Fix typo

18516fa0 01/16/2013 02:44 pm Giorgos Korfiatis

Revert "Remove unneeded related_names in ProjectMembership"

This reverts commit e2a15b6a507f716f47c960003089da2f0e32fa2e.

e2a15b6a 01/16/2013 01:01 pm Giorgos Korfiatis

Remove unneeded related_names in ProjectMembership

69ab4df9 01/16/2013 01:01 pm Giorgos Korfiatis

DB index for ProjectApplication state

9deadfcd 01/15/2013 03:32 pm Georgios D. Tsoukalas

fix broken intDecimalField initialization

7db8c163 01/15/2013 03:32 pm Georgios D. Tsoukalas

add pending members indication in projects

8989f446 01/15/2013 03:24 pm Sofia Papagiannaki

Fix TypeError: quota_values() takes no arguments (1 given)

db99f198 01/15/2013 02:56 pm Giorgos Korfiatis

Implement project suspension and resumption

Merge membership's SUSPENDED and TERMINATED states into PROJECT_DEACTIVATED.

3c638f72 01/14/2013 07:40 pm Giorgos Korfiatis

Add states DISMISSED and CANCELLED in ProjectApplication and related calls
Fix defaults in DateTimeFields

99463445 01/14/2013 05:50 pm Giorgos Korfiatis

Fix check for conflicting projects in approve

0514bcc7 01/14/2013 05:50 pm Giorgos Korfiatis

Changes in registering to quotaholder

Add an 'uplimit' (default) field in Resource;
change AstakosUserQuota fields to IntDecimalField;
pass all four limits of initial quotas to the quotaholder;
register services and resources explicitly upon creation;
a wrapper for get_quota.

a3530159 01/14/2013 03:52 pm Georgios D. Tsoukalas

fix project table queryset, minor other fixes

f5991951 01/14/2013 01:51 pm Kostas Papadimitriou

Project action fix

show leave action also when user requested to join the project

0f703cba 01/14/2013 01:21 pm Georgios D. Tsoukalas

fix user_visible_by_last_of_chain()

ProjectApplication.objects.user_visible_by_last_of_chain()
would erroneously list more than one application per chain.
This was due to this behaviour (bug?) in django:

x = objects.values('chain').annotate(last_id=Min('id'))...
efc58b65 01/14/2013 12:41 pm Kostas Papadimitriou

Project details fixes

- Proper labels based on project application status