Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / views @ 5bc77346

# Date Author Comment
5bc77346 10/15/2013 06:03 pm Giorgos Korfiatis

astakos: pep8 fixes

bb528b2e 10/09/2013 04:52 pm Giorgos Korfiatis

astakos: pep8 fix

a3e3917f 10/09/2013 04:52 pm Giorgos Korfiatis

astakos: Remove custom commit_on_success decorator

Prior to 1.3, django wouldn't set the transaction dirty upon a DB
exception and thus wouldn't trigger a rollback, resulting in a dangling
aborted DB exception. See https://code.djangoproject.com/ticket/9964...

45a4e443 10/09/2013 02:40 pm Kostas Papadimitriou

astakos: Separate templates in project creation

instead of including application form summary template in the application form
view, render it from scratch. This resolves a bug caused when using django>1.2
since block tags within the included templates are not supported....

c1f65a1e 10/07/2013 05:52 pm Kostas Papadimitriou

astakos: Set initial signup values if available

prefill third party signup form with initial values (first name, last name,
email) if available in the third party provider response.

6a80a0ae 10/07/2013 05:52 pm Kostas Papadimitriou

astakos: Shibboleth EPPN migration functionality

Prior to this commit astakos used the mod_shib2 EPPN header value as the
unique identifier for associating shibboleth idp users to astakos user entries.

This commit alters this behaviour and from now on astakos resloves unique...

0a70d2c5 10/01/2013 06:16 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.8' into develop

Merge hotfix-0.14.8 which ports Synnefo to wheezy and Django 1.4.5

Conflicts:
ci/ci_squeeze.conf
ci/ci_wheezy.conf
ci/schemas/one_node_squeeze/packages.conf
ci/schemas/one_node_squeeze/squeeze.conf
ci/schemas/one_node_squeeze/wheezy.conf...

554ef175 09/27/2013 10:49 am Christos Stavrakakis

astakos: Replace commit_manually decorator

Replace commit_manually decorator with commit_on_success, since the
functions that were using this decorator did not really needed it.

3d08cdca 09/04/2013 07:48 pm Sofia Papagiannaki

astakos: Fix approval_terms view

Fix crash when request user is not logged in.
Add tests

82a53261 08/09/2013 11:54 am Giorgos Korfiatis

astakos: Disable pagination and ordering in project tables

Prepare the tables for client-side ordering.

6d583e07 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Simplify project schema

Applications now point to a project (rather than an extra model Chain).
A Project is created upon submitting an application; it always points to
a single `reference' application.

Model Chain is kept as a sequence to generate project ids.

c4028837 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Remove precursor_application field

Submit a project modification by specifying a project id rather than
an application

f243d667 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Adapt UI to new project schema

Base tables on projects rather than applications; update templates.

dc946891 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Omit project_id in membership operations

Identify a membership by its id only.

e1723ca1 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Return membership when joining project

9024ed2e 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Catch exceptions in submit app views

Ignore exceptions in custom _create_object and _update_object;
let the views handle exceptions and specify commit strategy.

f12bcb3d 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Raise project-specific exceptions on failure

Replace IOError and PermissionDenied with project-specific exceptions.

51db2da2 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Fix some issues pointed out by pyflakes

b10ceccd 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Enhance project tables rendering

Prefetch data in bulk queries in order to avoid continuously querying
the database.

890f3d4c 07/12/2013 01:22 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.2' into develop

Conflicts:
Changelog
snf-astakos-app/astakos/im/messages.py
snf-astakos-app/astakos/im/views/target/__init__.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/logic/management/commands/reconcile-servers.py...

07ad7b1c 07/10/2013 01:25 pm Kostas Papadimitriou

Revert "astakos: Improve invalid login handling"

This reverts commit 02c1f22a0f7396a7b2211677db78247586e10805.

02c1f22a 07/09/2013 01:12 pm Kostas Papadimitriou

astakos: Improve invalid login handling

avoid redirecting user to signup view. Notify user the login credentials was
invalid instead.

830747d2 07/09/2013 12:54 pm Kostas Papadimitriou

astakos: Shibboleth improvements

- include shibboleth headers in provider_details
- display eppn instead of identifier in profile

feebcc02 07/08/2013 02:18 pm Kostas Papadimitriou

astakos: Fix shibboleth headers logging

0f433ce2 07/05/2013 12:38 pm Giorgos Korfiatis

astakos: pep8 fixes

ce264c16 06/28/2013 09:27 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.2' into develop

Conflicts:
snf-astakos-app/astakos/im/views/projects.py
snf-cyclades-app/synnefo/logic/backend.py
snf-django-lib/snf_django/lib/astakos.py
version

abe6915b 06/28/2013 09:12 pm Christos Stavrakakis

Merge branch 'release-0.14' into develop

Conflicts:
snf-astakos-app/astakos/im/views/target/redirect.py
snf-cyclades-app/synnefo/logic/backend.py
version

8c8f856b 06/28/2013 01:34 pm Olga Brani

astakos: Correct plural in 1 pending membership

d895de37 06/28/2013 01:34 pm Giorgos Korfiatis

astakos: Fix listing of approved members

Include leave requested and suspended members in the list of approved.

f7c3c4c4 06/28/2013 12:27 pm Sofia Papagiannaki

astakos: return uuid in weblogin

The weblogin used to return the user uuid.
However, this in 0.14 version had been removed since the uuid
can be retrieved using the POST /tokens authentication method.
However, the old pithos clients have no other way
to get the uuid, so we restore it temporarily.

184f551f 06/19/2013 06:46 pm Georgios D. Tsoukalas

astakos: REDIRECT_ALLOWED_SCHEMES hidden setting

1c13522f 06/19/2013 05:31 pm Sofia Papagiannaki

astakos: modifications in redirect view

  • If there is no next request parameter, the view fails with 400
    (BadRequest) response status.
  • ``pithosdev`` added in allowed schemes for the next parameter
e7726e14 06/19/2013 04:09 pm Kostas Papadimitriou

astakos: Fix regression in signup view

when recpatcha is enabled in astakos settings

f86ceff1 06/19/2013 01:01 pm Christos Stavrakakis

Merge branch 'release-0.14' into develop

Conflicts:
version

a1ed6730 06/18/2013 10:39 am Kostas Papadimitriou

astakos: Typo fix

a53f77ee 06/18/2013 10:39 am Kostas Papadimitriou

astakos: Explicit transaction handling in commit_manually views

since django 1.3, when using the ``transaction.commit_manually`` decorator,
transaction is required to be closed (using either commit/rollback) even if
only read db operations are executed from within the wrapped method.

c09cb651 06/17/2013 06:24 pm Georgios D. Tsoukalas

Merge branch 'release-0.14' into develop

Conflicts:
snf-astakos-app/astakos/im/messages.py
snf-astakos-app/astakos/im/settings.py
version

8fb8d0cf 06/17/2013 04:22 pm Giorgos Korfiatis

astakos: pep8 fixes

967a99e1 06/14/2013 06:01 pm Kostas Papadimitriou

astakos: Proper content type for .kamakirc view

Django response object content_type attribute is not used. Pass desired content
type in HttpResponse constructor.

31240d2c 06/13/2013 01:15 pm Olga Brani

astakos: Adding info for other clients in API access page

3466f0a3 06/12/2013 05:20 pm Kostas Papadimitriou

astakos: API access page url fix

remove trailing /tokens from `Authentication URL`

d75baafa 06/12/2013 05:20 pm Kostas Papadimitriou

astakos: Redirect local login GET requests to login

1ca02d1a 06/12/2013 05:20 pm Kostas Papadimitriou

astakos: Kamaki sample config file view

b6496f0c 06/12/2013 05:20 pm Kostas Papadimitriou

astakos: Dynamically resolve login_url in login_required

duplicated django user_passes_test and login_required decorators to be able
to dynamicaly resolve the url to which we redirect unauthorized users. Replaced
django login_required with astakos.im.views.decorators.login_required.

1ecda536 06/11/2013 02:21 pm Kostas Papadimitriou

astakos: Separate index/login views

- Login view added. The view renders the login template.
- Index view acts as a gateway to landing/login views based on whether the
user is authenticated.

9dd94cc7 06/11/2013 12:42 pm Kostas Papadimitriou

astakos: Remove uuid parameter from weblogin redirect

url only contains token parameter. Clients can use the identity/tokens endpoint
using the gathered token to access the uuid information.

65dad30c 06/10/2013 09:37 pm Sofia Papagiannaki

astakos: change web login view

  • allow only GET method
  • ignore next request parameter unless it has pithos scheme
e9a7ce7c 06/06/2013 05:28 pm Kostas Papadimitriou

astakos: Remove debug statement

2e45abfd 06/06/2013 04:12 pm Kostas Papadimitriou

webproject: common 404, 500 handling

- Move 404, 500 templates from astakos to webproject
- Remove 404, 500 templates from pithos-app
- Webproject now includes static files to serve jquery as an asset in 404, 500
pages.
- Custom 500 handler. Use RequestContext if possible.

f73fc886 06/06/2013 03:36 pm Kostas Papadimitriou

astakos: Change default ui redirect

redirect user to landing page by default

d558ca0b 06/05/2013 08:11 pm Kostas Papadimitriou

astakos: Fix identity endpoint construction

in api access view

c5e59a8e 06/05/2013 08:08 pm Kostas Papadimitriou

Merge branch 'feature-api-access-view' into develop

14c76abe 06/05/2013 06:13 pm Kostas Papadimitriou

astakos: Renew token action from api access view

11b7870d 06/05/2013 05:38 pm Georgios D. Tsoukalas

Merge branch 'feature-reconfigure-urls' into develop

Conflicts:
docs/pithos-api-guide.rst

7763f5c6 06/05/2013 01:40 pm Kostas Papadimitriou

astakos: Initial commit of API access view

api access view contains all available information for the user to access the
service api.

8c8e318d 06/04/2013 08:54 pm Kostas Papadimitriou

astakos: Properly resolve urls from base host

BASE_URL contains the prefix which is also included in paths returned from
django's reverse utility. Thereby joining BASE_URL with a reverse result
generates urls with duplicate BASE_PREFIX. Replaced BASE_URL with BASE_HOST in...

e6d8c1c0 06/03/2013 01:52 pm Kostas Papadimitriou

astakos: Improved twitter oauth response handling

- Log error responses
- Handle invalid token request responses (HTTP response is 200 so we check
status value nested in oauth response body)

bea584e1 06/03/2013 12:00 pm Giorgos Korfiatis

astakos: Lift old-style services to components

Add model Component and migrate services along with their token
and UI URL to this new model. Rename service to component where
needed.

Add field service_type in Resource and fill it based on the name
of the service that used to own the resource.

6c7af65c 06/03/2013 11:50 am Georgios D. Tsoukalas

astakos: remove BASEURL, use BASE_URL setting

3c5a2b21 05/31/2013 01:40 pm Kostas Papadimitriou

astakos: Configurable third party provider endpoints

not so often, but providers do seem to change urls

23381834 05/30/2013 12:02 pm Kostas Papadimitriou

Merge branch 'feature-projects-ux' into develop

f5389699 05/29/2013 07:14 pm Kostas Papadimitriou

astakos: Handle project approval failures

when project approval fails chain_id is set to None causing reverse to fail.
Resolved by redirecting admin user to the projects list.

9df6f541 05/29/2013 07:13 pm Kostas Papadimitriou

astakos: common_detail views helper fix

early initialiaztion of variables that used only when project is available

59eb6ec5 05/29/2013 04:40 pm Kostas Papadimitriou

astakos: Use redirect_back on project members actions

redirect browser back to tha page the action called from

06086f91 05/29/2013 04:32 pm Kostas Papadimitriou

asatkos: Include chain_id in logging message

8eb176ab 05/29/2013 12:58 pm Kostas Papadimitriou

astakos: Include missing context variables

c363a678 05/29/2013 12:56 pm Kostas Papadimitriou

astakos: Include missing members_action view

cdf0a80b 05/29/2013 12:52 pm Kostas Papadimitriou

Merge branch 'feature-projects-ux' of https://code.grnet.gr/git/synnefo into feature-projects-ux

Conflicts:
snf-astakos-app/astakos/im/views/projects.py

9b846781 05/29/2013 12:36 pm Kostas Papadimitriou

astakos: Batch members actions template integration

udpated project members template to properly post selected membership ids to
the appropriate urls.

272ba9b9 05/29/2013 12:33 pm Kostas Papadimitriou

astakos: Batch project members action view

added new view to handle multiple project members actions. View accepts
multiple `members` parameters containing project membership ids.

/<chain_id>/members/remove/ -> removes project membership ids
/<chain_id>/members/accept/ -> approves posted membership ids...

7971e5da 05/29/2013 10:48 am Kostas Papadimitriou

astakos: Only allow owners/admins to access member views

0b058d6f 05/29/2013 10:39 am Kostas Papadimitriou

astakos: Only allow owners/admins to access member views

460b907d 05/29/2013 10:15 am Kostas Papadimitriou

Merge branch 'develop' into feature-projects-ux

Conflicts:
snf-astakos-app/astakos/im/templates/im/projects/intro.html
snf-astakos-app/astakos/im/templatetags/astakos_tags.py
snf-astakos-app/astakos/im/urls.py
snf-astakos-app/astakos/im/views.py

93614ef0 05/27/2013 05:05 pm Kostas Papadimitriou

astakos: LinkedIn provider fix

initialize client in login view

933d3219 05/27/2013 05:05 pm Kostas Papadimitriou

astakos: Typo fix

incorrect variable use. Retrieve message from provider object instead of
astakos_messages module.

327a4c1e 05/27/2013 05:01 pm Olga Brani

astakos: Change auth provider remove HTTP method

Convert provider removal links to forms (using POST), in order to be able
to remove GET from the remove view allowed HTTP methods.

Refs #3793

58350a50 05/23/2013 04:30 pm Sofia Papagiannaki

astakos: move get_services back to astakos im services

9fb7a900 05/23/2013 01:58 pm Giorgos Korfiatis

astakos: Move ExceptionHandler in views.util

It is view-specific and did not deserve a separate file.

0be81d73 05/21/2013 07:41 pm Sofia Papagiannaki

astakos: move get_menu service under astakos im services

get_menu is used only by astakos cloudbar:
it should not be under astakos api services

8998f09a 05/21/2013 06:28 pm Sofia Papagiannaki

astakos: unified settings handling

Import astakos settings module instead of importing specific settings

3e0a032d 05/21/2013 11:54 am Sofia Papagiannaki

astakos: remove unused imports

70e11eaa 05/20/2013 09:18 pm Sofia Papagiannaki

astakos: reorganize views

  • split project views from the rest views
  • move third party authentication views (astakos.im.target)
    under astakos.im.views
  • move view decorators to a separate module
  • move utility methods utilized by views to a separate module