Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / models.py @ 9301c7f9

History | View | Annotate | Download (91.9 kB)

# Date Author Comment
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

bd9af366 01/14/2013 12:21 pm Kostas Papadimitriou

Additional project views fixes

b7f503a1 01/14/2013 12:08 pm Kostas Papadimitriou

Merge remote-tracking branch 'synnefo/latest-quota' into latest-quota-new-states-views

67598031 01/14/2013 11:03 am Sofia Papagiannaki

Remove obsolete AstakosUser email, is_active unique together check

05617ab9 01/11/2013 06:42 pm Kostas Papadimitriou

New states views Part 1

0801358a 01/11/2013 04:33 pm Giorgos Korfiatis

Set a project application REPLACED only when PENDING

Application state has historical significance:
we need to keep track which have been APPROVED/DENIED.

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

Implement application denial

d0e78bbe 01/11/2013 03:13 pm Giorgos Korfiatis

Change projects, eliminate development migrations

Change Project's state field and ProjectMembershipHistory's person field;
replace all migrations starting 0015 with a single new one.

Need to check for missing data migrations.

943d5554 01/11/2013 02:23 pm Giorgos Korfiatis

Fix typo

564a2292 01/11/2013 12:52 pm Kostas Papadimitriou

Auth providers improvements

- Enrich login/logout messages.
- Clear unverified accounts when user adds the same third party account
to an existing account.
- Other minor improvements.

c4892cd2 01/11/2013 12:38 pm Sofia Papagiannaki

Composite index chain, id in project application table

3d6dade7 01/11/2013 12:03 pm Sofia Papagiannaki

Stylistic change

022c61cd 01/11/2013 12:01 pm Sofia Papagiannaki

Consider unlimited project members

a769d7ba 01/11/2013 12:00 pm Sofia Papagiannaki

Do not add owner to the project during approve

c846fad1 01/11/2013 12:00 am Sofia Papagiannaki

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

Conflicts:
snf-astakos-app/astakos/im/forms.py
snf-astakos-app/astakos/im/functions.py

6c997921 01/10/2013 08:58 pm Sofia Papagiannaki

Provide commands for importing/exporting existing user resource policies

9e5eecab 01/10/2013 06:44 pm Giorgos Korfiatis

No need to set precursor application to REPLACED in approve()
(it is set when submitting a new application)

a9ba418f 01/10/2013 06:42 pm Giorgos Korfiatis

Add an id for a chain of applications; this is also the project id

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.

123be68a 01/10/2013 04:21 pm Giorgos Korfiatis

wip Generalize project state

61a1b2d2 01/10/2013 04:12 pm Georgios D. Tsoukalas

astakos-qh-sync: skip email-unverified users

Astakos-qh-sync will create quotas for all eligible users.
Users that have unverified emails are not considered eligible.
When users are activated by an admin via user-update --set-active,
their email is also marked as verified, therefore they become eligible.

43332a76 01/10/2013 04:06 pm Kostas Papadimitriou

Signup workflow changes

- Validate signup email over verified emails. Additional signups with
an existing unverified email will replace those entries.
- Redirect on signup success instead of just rendering a template.