Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / functions.py @ cb14cc6c

History | View | Annotate | Download (30 kB)

# Date Author Comment
44104cd3 04/22/2013 04:02 pm Giorgos Korfiatis

astakos: Move quota syncing code in quotas.py

b1ea24f3 04/18/2013 12:20 pm Giorgos Korfiatis

Import resources from definition and config files

Register a service's resources giving option --json <file>.
The json file is expected to represent a dictionary with keys
"service" and "resources".

Currently the default base quota (uplimit) for each resource is read...

6cc50d6a 04/11/2013 01:21 pm Giorgos Korfiatis

Cleanup obsolete quota code

aee9a389 04/10/2013 03:22 pm Giorgos Korfiatis

Force query to list before passing as argument

An unevaluated query ends up being used as an argument of intended list
type to another query, which fails in the case of an EmptyQuerySet, which
is not iterable.

aa27f246 04/05/2013 06:49 pm Giorgos Korfiatis

Move quota-related code out of models.py

Intention is to collect all quota-related code to a single file.

8cbea11d 04/05/2013 06:49 pm Giorgos Korfiatis

Sync to quotaholder by recomputing user quotas

On a user joining/leaving a project or on a project definition change,
we used to compute quota diffs for affected users and add them up
to existing values in quotaholder.

We now switch to recomputing all quotas for affected users and resetting...

f77363c2 04/05/2013 06:48 pm Giorgos Korfiatis

wip Update astakos.im to use local quotaholder

Import directly quotaholder.callpoint in endpoint/qh.py
instead of an HTTP client.
Remove code related to entities, such as registering users and services.
Remove sync_projects logic.

992b81b6 04/05/2013 06:48 pm Giorgos Korfiatis

wip Remove check whether membership is pending sync

It is not needed any more, syncing to quotaholder will happen
in a single transaction along with the call initiating the change.

570015d2 04/05/2013 06:48 pm Giorgos Korfiatis

wip New, simplified syncing to quotaholder

878d9cf3 04/02/2013 08:49 am Kostas Papadimitriou

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

31bc3a62 03/27/2013 11:26 pm Kostas Papadimitriou

Astakos email notification improvements

- Use project setting SERVER_EMAIL as sender to all email notifications.
- Remove astakos specific DEFAULT_CONTAC_EMAIL in favor of snf-common's
CONTACT_EMAIL setting.
- Remove DEFAULT_CONTACT_EMAIL and ADMINS astakos specific settings in favor of...

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

Impose pending application limit on owner

We used to check the limit on applicant; however we would like to
to control pending applications per the original applicant, i.e the
owner. The check is ignored when the applicant is a project admin.

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

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

Astakos logging improvements

use the common user_log display method accross logging calls

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

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

Optimize computation of astakos user quotas

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.

e30537f1 02/21/2013 07:47 pm Sofia Papagiannaki

Bug fixing

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

Create membership without causing DB error on existence

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,...

9301c7f9 02/14/2013 04:27 pm Sofia Papagiannaki

Fix change email text

c9b3d7b0 02/14/2013 04:27 pm Kostas Papadimitriou

Update email change email content

- Include EmailChange instance in template context
- Email body improvements

0932ac43 02/14/2013 04:27 pm Giorgos Korfiatis

Automate the stress test for projects

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

Generalize instance checks for integers

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

Add LEAVE_REQUESTED state on ProjectMembership

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

Utility function get_project_by_name

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

Check user status when creating project membership

466cc12c 02/14/2013 04:26 pm Giorgos Korfiatis

Notify for project enrollment

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

Add membership notifications

97e93991 02/14/2013 04:26 pm Kostas Papadimitriou

Ensure only verified users are added to a project

since users get registered at quotaholder during the activation process
(qh_register_user_with_quotas call in `activate` method -- im/functions.py).

An additional safer check in `create_membership` method might be...

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

fix project admin permissions

6cee26a0 01/30/2013 05:20 pm Giorgos Korfiatis

Restrict argument of approve_application() to application id

610d0948 01/26/2013 09:28 pm Giorgos Korfiatis

Remove obsolete function get_project_id_of_application_id

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

View for cancelling a pending application

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

Changes in project_detail

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

8cf9b2dd 01/23/2013 06:59 pm Giorgos Korfiatis

Use custom project_transaction_context in project views

7d145e78 01/23/2013 06:51 pm Sofia Papagiannaki

Change feedback email sender and body

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

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

d4fc6292 01/21/2013 11:45 pm Giorgos Korfiatis

Checks for membership functions

f9224cc0 01/21/2013 09:11 pm Sofia Papagiannaki

Fix unicode urlencoding in feedback call

3c049f6d 01/21/2013 02:16 pm Giorgos Korfiatis

Better log printing

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.

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

Management command to check and perform project expiration

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

Implement project suspension and resumption

Merge membership's SUSPENDED and TERMINATED states into PROJECT_DEACTIVATED.

79991070 01/14/2013 07:40 pm Giorgos Korfiatis

Remove unused update_application()

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

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

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.

19eb3ee6 01/11/2013 04:33 pm Giorgos Korfiatis

Implement application denial

21e0fdad 01/10/2013 05:40 pm Giorgos Korfiatis

Register a user to quotaholder only when is activated

b6fe8bb8 01/10/2013 04:31 pm Giorgos Korfiatis

New state handling for astakos projects and memberships

Distinguishes is_active, is_pending flags from actual states in ProjectMembership;
likewise is_active, is_modified flags in Project.
Splits syncing in pre-process, actual syncing, and post-process.

a3eb3a95 01/08/2013 07:17 pm Giorgos Korfiatis

Refactor notifications

907f15db 01/08/2013 06:56 pm Giorgos Korfiatis

Remove bypass checks; refactor some checks

ee4aa6eb 01/08/2013 04:19 pm Giorgos Korfiatis

Check user credentials in submit_application

8c3e6cb5 01/08/2013 04:00 pm Kostas Papadimitriou

Missing var

69c822cc 01/08/2013 03:57 pm Giorgos Korfiatis

wip Simplify submit/update application

15ca2bea 01/08/2013 03:57 pm Giorgos Korfiatis

Refactor submit application; always mark precursor as REPLACED

1352dabb 01/08/2013 03:32 pm Kostas Papadimitriou

Fix typo

4e057833 01/08/2013 02:19 pm Sofia Papagiannaki

Fix policy checking

e47fb17a 01/08/2013 01:38 pm Sofia Papagiannaki

Perform membership checks during add member form validation

be4811c0 01/08/2013 11:16 am Giorgos Korfiatis

Fix a dict iteration

b0686c16 01/07/2013 06:20 pm Giorgos Korfiatis

Fix join/leave policy checks

272cf735 01/04/2013 09:36 pm Sofia Papagiannaki

Membership policies kept in settings instead of db

5b9e9530 01/04/2013 07:32 pm Giorgos Korfiatis

Project deactivation/termination

a073c3b2 01/04/2013 12:02 pm Giorgos Korfiatis

Add member limit check in do_join_project

c8dfbe98 01/04/2013 11:21 am Giorgos Korfiatis

Fix some arg names

8dcaa6ac 01/03/2013 11:29 pm Giorgos Korfiatis

Simple refactor: do_* methods always take a project_id argument;
select_for_update for project and membership

fcc1e93f 12/21/2012 05:48 pm Sofia Papagiannaki

Delete more obsolete code

eb9ff37a 12/21/2012 04:41 pm Sofia Papagiannaki

Project update and suspend functions

03869281 12/20/2012 02:09 am Sofia Papagiannaki

Fix leave project in case of auto_accept policy

7dd3047d 12/19/2012 11:07 pm Sofia Papagiannaki

Separate function for enroll member

f7fc5a34 12/19/2012 06:11 pm Giorgos Korfiatis

Fix typos

fc61dfb7 12/19/2012 05:30 pm Sofia Papagiannaki

Fix member join when join policy is auto_accept

5cfd4acb 12/19/2012 05:26 pm Sofia Papagiannaki

Fix add_quota, use user id as quotaholder entity

974ee6a6 12/19/2012 04:34 pm Sofia Papagiannaki

Several fixes

3e47bb0b 12/19/2012 02:57 pm Sofia Papagiannaki

Trigger syncing from the views

3d4a0a9b 12/19/2012 10:59 am Sofia Papagiannaki

Fix notification error messages

172ce682 12/18/2012 04:21 pm Sofia Papagiannaki

Merge branch 'devel-0.13' of https://code.grnet.gr/git/astakos into latest-quota

Conflicts:
snf-astakos-app/astakos/im/messages.py
snf-astakos-app/astakos/im/notifications.py
snf-astakos-app/astakos/im/urls.py
snf-astakos-app/astakos/im/views.py

34a76cdb 12/17/2012 07:29 pm Kostas Papadimitriou

Change email process improvements

- Allow replacement of previously email change requests
- Cleanup expired email change requests in change email view
- Log email change
- Warn user for existing pending requests
- Redirect to profile on change email actions (failed or succeded)

4327c8fc 12/17/2012 07:27 pm Kostas Papadimitriou

Avoid verbose logging output

47b77c8b 12/14/2012 03:52 pm Sofia Papagiannaki

Merge branch 'devel-0.13' of https://code.grnet.gr/git/astakos into latest-quota

Conflicts:
snf-astakos-app/astakos/im/forms.py
snf-astakos-app/astakos/im/management/commands/service-add.py
snf-astakos-app/astakos/im/messages.py
snf-astakos-app/astakos/im/models.py...

73fbaec4 12/14/2012 11:24 am Sofia Papagiannaki

Single model for ProjectApplication & Definition - Membership sync

f1ab6639 12/13/2012 03:47 pm Kostas Papadimitriou

Set sent_activation date on user activation

in case admin activates user skiping email activation process

4bdd7e3d 12/13/2012 02:40 pm Kostas Papadimitriou

User state fixes

- Never reset activation_sent date
- Check for inactive users too for email/username uniqueness
- Check both email/username uniquness in user creation process
- Activated users should have both email_verified/activation_sent fields
set

ccab6eb5 12/10/2012 12:04 am Sofia Papagiannaki

Progress VI

f9aea9c8 12/03/2012 05:49 pm Sofia Papagiannaki

Update snf-manage commands in email templates. Fix authentication token renewal.

c3c2212a 12/03/2012 12:40 pm Sofia Papagiannaki

Fix import error in astakos.im.functions

c0b26605 11/29/2012 05:08 pm Sofia Papagiannaki

Merge remote-tracking branch 'origin/0.12' into devel-0.13

Conflicts:
snf-astakos-app/astakos/im/activation_backends.py
snf-astakos-app/astakos/im/api/admin.py
snf-astakos-app/astakos/im/auth_backends.py
snf-astakos-app/astakos/im/forms.py
snf-astakos-app/astakos/im/functions.py...

bf0c6de5 11/28/2012 12:02 pm Sofia Papagiannaki

Flush other user sessions during password/token change

Refs: #3007

ef20ea07 11/15/2012 05:37 pm Sofia Papagiannaki

Refine shibboleth signup mechanism

Refs: #3041

ae497612 11/13/2012 05:45 pm Olga Brani

Back up file

29b87e7c 11/08/2012 05:53 pm Sofia Papagiannaki

Fix group creation summary view

9a06d96f 11/05/2012 03:38 pm Olga Brani

Merged demo

8cc49f4d 09/27/2012 11:34 am Sofia Papagiannaki

Merge remote-tracking branch 'origin' into dev

Conflicts:
snf-astakos-app/Changelog
snf-astakos-app/README
snf-astakos-app/astakos/im/forms.py
snf-astakos-app/astakos/im/functions.py
snf-astakos-app/astakos/im/settings.py
snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js...

a2436cb6 09/25/2012 04:07 pm Sofia Papagiannaki

merge with 0.6.4