webproject: Remove requires_csrf_token
method does not seem to exist in debian packaged django release. Sincecsrftoken is not used in 500 templates the removal won't cause any sideeffects.
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.
webproject: Configurable webproject root url redirect
optionally append a redirect view to the root url of the project. Redirect urlis configurable using WEBPROJECT_ROOT_REDIRECT setting.
snf-manage: pep8 fixes
snf-manage show_urls: fix empty view module crash
webproject: Remove default contrib.auth context processor
webproject: Default TEMPLATE_DIRS setting typo
missing comma
webproject: Fix typos in parse_bool
webproject: Add optional title in pprint_table
It is shown with `pretty' output format, in non vertical mode.
webproject: remove app, middleware: session, messages
webproject: Do not disable existing loggers
Do not disable by default all existing loggers.
Merge branch 'feature-quotas' into develop
Conflicts: docs/dev-guide.rst
webproject: Do not ljust values in vertical mode
Left-justifying resulted in long wrapped empty lines, when a valueexceeded the line size.
Merge branch 'develop' into feature-quotas
Add support for ordering in ListCommand
Make list command order results either by 'order_by' class attribute,or by primary key.
Merge branch 'feature-change-astakos-commands' into feature-quotas
Conflicts: snf-astakos-app/astakos/im/management/commands/resource-list.py snf-astakos-app/astakos/im/management/commands/service-list.py snf-astakos-app/astakos/im/management/commands/service-modify.py...
Fix import and add main to unittests
Update astakos listing commands
Refs: #3346
Move astakos lib from snf-common to snf-django-lib
Update HIDDEN_COOKIES setting
Use pprint_table in server-show command
Fix CSV output of ListCommand
Fix CSV output format of ListCommand using csv python module, insteadof manually trying to format them. Also fix small issueswith --no-headers option.
Merge branch 'feature-astakos-authpolicies' into develop
Conflicts: snf-cyclades-app/synnefo/api/management/commands/flavor-create.py version
Move UserCache from cyclades.common to lib.astakos
Move UserCache from synnefo.management.common to synnefo.lib.astakos.Also, update ListCommand with 'astakos_url' and 'astakos_token' classattributes, which must be declared only when 'user_uuid_field' is used.
Do not replace stdout when running tests
in order to have usable pdb repl
Move common code for mngmt commands to webproject
Move cyclades functions that are useful for all managament commands, likepprint_table or parse_filters, to snf-webproject.
Add ListCommand to be used for all *-list commands
Create a generic ListCommand to be user for all *-list managementcommands. ListCommand handles must tasks that are common to allmanagement commands, like retrieving objects from db, filteringresults and formating output to a pretty table, json or csv....
Change default TEMPLATE_DIRS setting
Refs #3363
/var/lib/* is commonly used to store application generated data and notas a place to configure installed software.
For every Synnefo app, the administrator is free to install a modifiedcopy of a template under /etc/synnefo/templates....
Rewrite logging settings
Check subcommand for encoding stdout
Dummy check, forced by bug in builtin `isatty` method:https://bugzilla.redhat.com/show_bug.cgi?id=841152
Fix bug in encoding stdout
Propagate attribute access to original sys.stdout. Also fix corner case wheresys.stdout does not have encoding attribute.
Fix typo
Avoid the use of sys__stdout__
Fix UnicodeError when writing to sys.stdout
Due to a bug the was fixed in Python-2.7, in Python-2.6 unicode stringsthat are written to sys.stdout (using sys.stdout.write) are notconverted to bytestrings using the file.encoding. Insteadsys.stdout.encoding is set to None, and the default encoding is used. We...
Minor changes
Cleanse sensitive settings in debug output
In case of server errors prevent django from printing or emailing sensitivesettings.
Move LOGGING_SETUP from common to webproject
Various fixes about logging
Fix logging from snf-manage commands. Modify snf-manage implementationin order to setup the loggers for all snf-manage commands. Configurationis based on SNF_MANAGE_LOGGING_SETUP setting from snf-common or onbasicConfig if that setting is missing....
Move pooling psycopg2 wrapper to synnefo.lib.db
Move pooling psycopg2 wrapper to synnefo.lib.db,please see commit e83ed1fb8fb4d0d19c2d3f86152fde60b3cadfd9 for all thedetails on how to use the pooling wrapper for psycopg2.
Add pooling synnefo.db.pooled_psycopg2 DBAPI drv
Add DBAPI driver synnefo.db.pooled_psycopg2, which is athin, pooling wrapper around psycopg2.
To use, first monkey-patch psycopg2:
from synnefo.db.pooled_psycopg2 import monkey_patch_psycopg2monkey_patch_psycopg2()...
Fix default cyclades ui UI_MEDIA_URL setting
Enable USE_X_FORWARDED_HOST by default in webproject
Set SESSION_SECURE_COOKIE to True by default
Update webproject default settings
- Removed settings that change based on entry_point hooks- Other minor default values improvements
Improve webproject static files serve views
Updated webproject changelog
snf-webproject fixes
Logging config and entry_points in snf-webproject
Default configuration changes
- cached_db as default session backend- removed default SITE_ID setting (not required by all synnefo components)
Serve MEDIA_ROOT path from MEDIA_URL url
Serve static files view from django project
- Disabled if DEBUG is set to False- Configurable using WEBPROJECT_SERVE_STATIC- To avoid the need of each synnefo django application to add new url entries for serving its own static files.
Move link_static management command in webproject
Add default 404 and 500 templates in webproject
Moved set_language view in webproject
since the url that changes the user session language was moved in webprojectas an app wide url, the view that gets bind to the url should exist alsoin webproject.
New entry point for TEMPLATE_CONTEXT_PROCESSORS
Change DEBUG setting to False
Moved default database settings in webproject
Moved database default config in snf-app
Fix management commands imports for namespace packages
Added snf-app entry points for static files
Management utility fix
Handle command discovery of namespaced application modules.
Exclude version modules from repository
Improved packaging
- Improved automatic version tagging from git repo.- Added auto generated synnefo.<package>.version module to contain each package version.
Initial commit for snf-webproject
- new package snf-webproject- moved basic django related settings in snf-webproject- added new entry point utils to ease the extension mechanism of snf-webproject (urlpatterns, middleware, static_files, installed_apps)...