astakos: unified settings handling
Import astakos settings module instead of importing specific settings
branding: Documentation improvements
The synnefo developer is urged to create a directory, place inside all thethe email .txt files he/she wishes to overwrite (respecting the indicatedstructure) and provide the directory path to theTEMPLATE_DIRS setting.
First bits of astakos Changelog for 0.14
webproject: Add optional title in pprint_table
It is shown with `pretty' output format, in non vertical mode.
astakos: Include project membership info in commands
`user-show --projects': Memberships and ownerships for a given user in separate tables `project-show --members': Members of the given project
astakos: Improve output of quota commands
astakos: Filter project listing by name or owner
Use a custom way to retrieve and filter project data; ListCommand isnot suitable when multiple tables must be consulted.
Merge branch 'feature-ganeti-xen' into develop
cyclades: Add --hypervisor option to backend cmds
Add '--hypervisor' option to 'backend-add' and 'backend-modify'management commands.
Refs #3772
cyclades: Sypport backends with Xen hypervisor
ci: Add failfast option to tests
ci: Invalidate existing settings dir
to avoid tests failures due to locally modified settings
helpdesk: Update tests
use existing cyclades db factories instead of json fixtures which are painfulto maintain
astakos: Update tests
astakos: service-remove change to accept service id
instead of name
astakos: Respect module specific policies
also disable switch policy of shibboleth and local providers by default.In the case of local provider it just doesn't make sense. Shibboleth doesn'tallow us to create a url which would force user to login with different...
astakos: Improve provider in use message
explicitly display the type/name of the `in use` provider
cyclades ui: Handle no missing image ids case
astakos: New user fields migration improvement
set accepted_policy to 'migration' for already accepted users which have not yeta verified email address (old flow)
astakos: Add AstakosUser status_display property
the property provides a status outline of the current user status.
astakos: remove unused imports
astakos: reorganize views
astakosclient: Prevent relative uri's requests
do not lstrip slashes from the path of astakos url to avoid making requestswith relative uris.
cyclades ui: Fix resolving of missing image ids
- Start resloving once the images have been loaded.- Continue loading view progress only once all missing ids have been resolved.
quotaholder: Lock holdings in a single query
Order by primary key when selecting multiple holdings for update;this most probably ensures that locking will happen in that order.
As per commit 2f90645, we select all holdings for the given holders,rather that specifying all tuples (holder, source, resource), in order...
astakos: Remove code handling UserSetting
Keep UserSetting model; to be removed in a future version.
django-lib: Preserve proxy target path
branding: Handle non dict context in render_to_string
astakos: Clean up tables on test completion
to get over sqlite driver issues to properly clean up database on transactiontest cases.
astakos: Update stress test code
astakos: Remove some unused imports
Also add a missing import in quotas.py
astakos: Lock chain for projects, user for syncing
Lock project's chain for every operation affecting either a project oran application. Subsequently, lock user when needing to sync or to issuecommission to update pending_app quota.
In views, replace locking qh_add_pending_app with check_pending_app_quota,...
branding: Use branding util to render email templates
Use synnefo_branding.util.render_to_string accross synnefo apps to be able touse branding variables within the templates.
astakos: Fix reset password email
astakos: Remove hardcoded urls from templates
use IM_STATIC_URL instead
cyclades ui: Configurable userdata api url
PublicKey collections used hardcoded urls to access the ssh public keysapi. A new dummy view added (to serve '/ui/userdata/') to be able to usedjango reverse mechanism for the base url of userdata api.
snf-django: Improve headers handling in common proxy util
- Avoid proxying Connection, Host and Cookie headers- Cleanup non headers keys (e.g. wsgi.*)- Set X-Forwarded-For header
branding: Convert tabs to spaces
astakos: do not catch send mail errors
The user should not be informed if for any reasonthe server can not send an email.
Revert "astakos: fix send mail error handling"
This reverts commit 903ce7dccb44db3d3e5fd280a7683747dfa37d7f.
astakos: fix send mail error handling
Restore SendMailError, ChangeEmailError and SendFeedbackError exceptions(deleted by previous commit) since they are still used.
astakos: add astakos.im.decorators module
astakos: replace CookieAuthenticationMiddleware with a view decorator
reverse commits ab30f5f163a13dfc7f9bec4d263208dd35f09d16 &1439d6383113b151b6a3316e320a0418fa30d421
decorate also ``django.contrib.auth.views`` utilized byastakos
astakos: Minor improvements in email change process
- Explicit handling of invalid email change activation code.- Permission denied response if user is authenticated and email change code is assigned to another user.- Improve logging- Updated tests
cyclades ui: Avoid setting group in personality metadata
cyclades ui: Include missing index view setting
UNKNOWN_OS setting was missing from the index view context, causing javascripterrors.
astakos: Update django requirements in synnefo settings
since session and messages middleware classes removed from webproject we shouldexplicitly set them on astakos settings.
webproject: remove app, middleware: session, messages
cyclades: fix name errors in app_settings
fix dependency snf-branding-app -> snf-branding
include branding static files in MANIFEST.in
astakos: remove okeanos reference from cloudbar settings
branding: include package static assets in setup.py
Update changelog
Add changelog entry about lazy networks and 'type' attributein network create API request.
astakosclient: Trick setup into loading version module
setup.py tries to load astakosclient.version modulebefore checking for astakosclient package dependencieswhich leads to importErrors.
Trick setup to load only version module by changing sys.path.
astakosclient: Use path given in astakos_url (if any)
Add snf-branding version file to gitignore
snf-branding: Remove version.py file
ci: Install snf-branding before astakos
ci: Add snf-branding to projects
astakos: Fix typo in tests
astakos: fix incomplete previous commit
commit 1439d6383113b151b6a3316e320a0418fa30d421
astakos: api calls authenticated via X-Auth-Token shall not affect cookie
CookieAuthenticationMiddleware.process_request() synchronizesthe astakos cookie with the request user.If an astakos cookie is set but there is no logged in user,the middleware deletes the cookie....
astakos: Split settings in separate modules
astakos: Update activation email content
astakos: Clean up user-list filter options
removed deprecated options `-p` and `-n`. Admins should use`--pending-moderation` and `--pending-verification` instead.
astakos: Allow admin to verify user from command line
using the new option `--verify` added in `user-modify` command
Merge branch 'feature-branding' into develop
Conflicts: snf-astakos-app/astakos/im/templates/im/account_pending_moderation_notification.txt snf-astakos-app/astakos/im/templates/im/group_creation_notification.txt snf-astakos-app/astakos/im/views.py
cyclades: Update proxy user services
use the common api.proxy method from snf-django-lib
Catch QuotaLimit exception when reconciling resources
This can happen, if the actual usage registered by a service exceedsthe quota limit.Advise the user to try the --force option.
astakos: Let qh errors through when issuing commission
When registering pending apps, catch only NoCapacityError. No otherQuotaholderError is expected and should not be treated here.
astakos: Do not show obsolete user settings
Also fix printing user quota.
quotaholder: Ignore force option when releasing
Since negative usage makes no sense, we always check this lowerboundary when issuing a commission.
astakos: Force query eval when used in __in filter
Related to commit aee9a38
Also fix call of qh_sync_users in migration script.
astakos: Allow submitting application with no resources
cyclades: Move common code to seperate function
Move common between API method and management command for creating aserver to a separate function.
cyclades: Fix bug in flavor-modify command
Fix bug in flavor-modify command, which resulted in flavors being alwaysdeleted. Deleted option must be parsed to bool, otherwise is alwaysTrue.
helpdesk: Use 'mock' library to bypass auth
Use mock to library to bypass astakos authentication in helpdesk views.
webproject: Do not disable existing loggers
Do not disable by default all existing loggers.
astakos: check that request.user is a 'User'
Update astakos 'get_menu' API method, to check if request.user is aninstance of django User model. This view function called by astakoscontext processor. However, if astakos and helpdesk are installedtogether, the request.user will not hold an AnonymousUser, but a...
Enforce Group entries flush. As a fix to strange errors raised while runningtests using sqlite database. The driver doesn't seem to be able to properlycleanup related database entries, a procedure that takes place after eachexecution of a TransactionTestCase test.
astakos: Typo fix
astakos: Fix provider_login_url template tag
Synnefo branding: Documentation correction & minor fixes
Merge branch 'develop' into feature-astakos-userflow
astakos: Adapt tests to 2.6-style unittest
Define assertGreater, assertIn, assertRaises in snf_django.utils.testing
common: Disable proxy in tests
Do not follow redirections in im tests.
robust version importing in docs build config
After changing sys.path, synnefo and synnefo.versions must be reloadedbecause if they have been cached, the updated sys.path will not beconsulted because importing synnefo and synnefo.versions will stop atthe cache in sys.modules
pithos: fix tests
Change erroneous import
astakos: User activation flow improvements
Major refactoring on user email verification/activation process---------------------------------------------------------------Activation logic moved from dispersed code in functions/view modules toActivationBackend methods. All user activation handling code in astakos views...
- In sync with new AstakosUser model- Remove nested settings wrappers to slightly increase tests performance
astakos: Remove deprecated AstakosUser fields
astakos: Avoid using dicts as default arguments
astakos: Remove obsolete code
Remove project_tests.py, empty package im.endpoints and fixtures
astakos: Remove membership policy settings
Available join and leave policies are internally defined and shouldnot be changed by settings. Move policy descriptions to presentation.py.
Do not convert to string the lookup key in templatetags/filters.py
astakos: Remove obsolete keyword argument ctx
astakos: Improve quota syncing
- Split code that lists and syncs quotas - Merge the latter with qh_sync_users - Move qh_sync_projects in quotas.py; sync only active members - Add missing select for update in project suspend - Clean up quotas.py
astakos: Remove two options from resource-import
--service: We do not support automatic importing of resources--conf: Use resource-modify to configure resource limit
Replace 'synnefo.lib.http' with 'objpool.http'
Use custom method for joining urls
Implement 'join_urls' method for joining a base URL with a path,without worrying about redundant or missing "/". Do not use'urlparse.urljoin', since it has different semantics.