Statistics
| Branch: | Tag: | Revision:

root / snf-webproject / synnefo @ 0fa71fcc

# Date Author Comment
0fa71fcc 12/03/2013 06:04 pm Christos Stavrakakis

webproject: Custom exception reporter filter

Remove 'cleanse' middleware that was used to clean sensitive variables
from admin mails. Instead, create a custom exception filter and set this
filter as Django's default reporter (DEFAULT_EXCEPTION_REPORTER_FILTER).

ae8f26fc 12/02/2013 05:54 pm Kostas Papadimitriou

webproject: Include common 403.html template

Signed-off-by: Olga Brani <>

7c354a92 11/29/2013 12:44 pm Christos Stavrakakis

webproject: Move patching of hidden settings

Remove patching of 'django.views.debug.HIDDEN_SETTINGS' from 'cleanse'
middleware that is going to be totally removed. Instead, patch them in
'models.py' of webproject.

901b106f 11/28/2013 05:52 pm Christos Stavrakakis

webproject: Propagate 'django.request' logger

ddfb6278 11/28/2013 05:49 pm Christos Stavrakakis

webproject: Add 'admin_mails' logging handler

Add 'admin_mails' handler to default logging configuration and use it
for 'django.request' logger, which is used to log all 5xx responses
and unhandled exceptions.

662413bb 11/28/2013 03:30 pm Christos Stavrakakis

webproject: Do not disable existing loggers

Change default settings for logging, to not disable existing loggers by
default. This was already done for the API, but not for 'snf-manage'.
Also, the example conf file were not updated.

096f8090 10/30/2013 03:39 pm Kostas Papadimitriou

webproject: Do not require django.contrib.admin by default

a0abbade 10/01/2013 06:56 pm Christos Stavrakakis

wheezy: Remove setup_environ

From Django docs:
"""
This function temporarily modified sys.path in order to make the parent
“project” directory importable under the old flat startproject layout.
This function is now deprecated, as its path workarounds are no longer...

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

27724645 09/27/2013 04:50 pm Christos Stavrakakis

Revert "wheezy: Remove setup_environ"

This reverts commit a813a25117f3db14d5517f630d6d0e163a58b0f8. This
commit is reverted because it breaks compatibility with Django 1.2. This
should be applied for Synnefo 0.15.

a813a251 09/27/2013 03:22 pm Christos Stavrakakis

wheezy: Remove setup_environ

From Django docs:
"""
This function temporarily modified sys.path in order to make the parent
“project” directory importable under the old flat startproject layout.
This function is now deprecated, as its path workarounds are no longer...

a6b17d33 09/24/2013 05:16 pm Christos Stavrakakis

wheezy: urls module doesn't export defaults

1d956eea 09/24/2013 05:16 pm Ilias Tsitsimpis

wheezy: Djangos manage has completely changed

We have to review our code that used to manage synnefo
since Djangos management modules have changed.

For now, commenting out two lines seems to do the trick.

49026a89 09/24/2013 05:16 pm Ilias Tsitsimpis

wheezy: Django database engine has been changed

01d00723 09/24/2013 05:16 pm Ilias Tsitsimpis

wheezy: mail_admins method in Django has changed

An extra parameter (html_message) has been added.

ed2064f8 09/18/2013 05:17 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.6' into develop

Conflicts:
Changelog
docs/admin-guide.rst
snf-cyclades-app/synnefo/api/management/commands/network-remove.py
snf-cyclades-app/synnefo/api/servers.py
snf-cyclades-app/synnefo/api/tests/servers.py
snf-cyclades-app/synnefo/logic/backend.py...

beb2b785 08/30/2013 12:01 pm Christos Stavrakakis

Move middlewares from snf-common to snf-webproject

49044e69 08/30/2013 12:01 pm Christos Stavrakakis

Move context_processors from common to middleware

624ebbf8 08/30/2013 12:01 pm Christos Stavrakakis

webproject: Remove unused StripURLMiddleware

7cfc0cef 08/05/2013 12:45 pm Christos Stavrakakis

snf-django: Move ListCommand to snf-django

snf-webproject contained the generic ListCommand, and because of this it
had a dependency from snf-django-lib. This commit moves this command from
snf-webproject to snf-django-lib and removes this dependency. Also,...

d4e4e501 07/25/2013 12:46 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.3' into develop

Conflicts:
Changelog
snf-astakos-app/astakos/im/messages.py
snf-pithos-app/pithos/api/manage_accounts/__init__.py
snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py
snf-pithos-app/pithos/api/settings.py...

8ae38ff8 07/23/2013 01:42 pm Stratos Psomadakis

Replace regexp in cleanse middleware

Replace the regexp in mail_admins_safe() with manual parsing of the message.

7afa5bde 07/22/2013 04:53 pm Christos Stavrakakis

webproject: Fix typo

4691814d 07/09/2013 04:30 pm Ilias Tsitsimpis

pep8 changes

d9db295a 06/13/2013 06:00 pm Olga Brani

Improved style for 404 and 500 pages

04f0a678 06/13/2013 12:08 pm Giorgos Korfiatis

webproject: Correct typos in 500 message

49c0d427 06/13/2013 11:38 am Kostas Papadimitriou

webproject: Disable APPEND_SLASH setting by default

14ed4030 06/06/2013 10:47 pm Kostas Papadimitriou

webproject: Remove requires_csrf_token

method does not seem to exist in debian packaged django release. Since
csrftoken is not used in 500 templates the removal won't cause any side
effects.

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.

8b812637 06/05/2013 09:08 pm Kostas Papadimitriou

webproject: Configurable webproject root url redirect

optionally append a redirect view to the root url of the project. Redirect url
is configurable using WEBPROJECT_ROOT_REDIRECT setting.

bc89ff1a 06/03/2013 11:49 am Georgios D. Tsoukalas

snf-manage: pep8 fixes

10157d43 06/03/2013 11:49 am Georgios D. Tsoukalas

snf-manage show_urls: fix empty view module crash

ffc56ef0 05/27/2013 05:53 pm Kostas Papadimitriou

webproject: Remove default contrib.auth context processor

2c45745e 05/27/2013 03:14 pm Kostas Papadimitriou

webproject: Default TEMPLATE_DIRS setting typo

missing comma

ec5ebdf5 05/23/2013 01:58 pm Giorgos Korfiatis

webproject: Fix typos in parse_bool

b482fbcc 05/21/2013 03:06 pm Giorgos Korfiatis

webproject: Add optional title in pprint_table

It is shown with `pretty' output format, in non vertical mode.

3ca5c819 05/17/2013 05:46 pm Georgios D. Tsoukalas

webproject: remove app, middleware: session, messages

f1e424a5 05/16/2013 06:30 pm Christos Stavrakakis

webproject: Do not disable existing loggers

Do not disable by default all existing loggers.

47b8d4b1 05/13/2013 12:15 pm Christos Stavrakakis

Merge branch 'feature-quotas' into develop

Conflicts:
docs/dev-guide.rst

4571b863 05/08/2013 06:27 pm Giorgos Korfiatis

webproject: Do not ljust values in vertical mode

Left-justifying resulted in long wrapped empty lines, when a value
exceeded the line size.

21a9ae81 04/30/2013 05:00 pm Christos Stavrakakis

Merge branch 'develop' into feature-quotas

c1ba7f26 04/30/2013 04:28 pm Christos Stavrakakis

Add support for ordering in ListCommand

Make list command order results either by 'order_by' class attribute,
or by primary key.

bd7fe7c1 04/26/2013 12:47 pm Sofia Papagiannaki

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

d3f6994d 04/25/2013 04:14 pm Christos Stavrakakis

Fix import and add main to unittests

ffb5cca1 04/08/2013 06:37 pm Sofia Papagiannaki

Update astakos listing commands

Refs: #3346

  • Change `synnefo.webproject.management.commands.ListCommand`
    to permit post database selection filtering
    and pass the command options to the
    handle_db_objects()
  • Change project-list command to inherit
    `synnefo.webproject.management.commands.ListCommand`...
04a1b675 04/08/2013 06:17 pm Christos Stavrakakis

Move astakos lib from snf-common to snf-django-lib

ef06f09d 04/03/2013 01:12 pm Stratos Psomadakis

Update HIDDEN_COOKIES setting

28578e52 04/02/2013 01:49 pm Christos Stavrakakis

Use pprint_table in server-show command

f105d79d 04/02/2013 12:58 pm Christos Stavrakakis

Fix CSV output of ListCommand

Fix CSV output format of ListCommand using csv python module, instead
of manually trying to format them. Also fix small issues
with --no-headers option.

354b9b6f 04/01/2013 07:02 pm Kostas Papadimitriou

Merge branch 'feature-astakos-authpolicies' into develop

Conflicts:
snf-cyclades-app/synnefo/api/management/commands/flavor-create.py
version

76a13815 03/20/2013 07:42 pm Christos Stavrakakis

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' class
attributes, which must be declared only when 'user_uuid_field' is used.

1f0030e6 03/15/2013 06:19 pm Kostas Papadimitriou

Do not replace stdout when running tests

in order to have usable pdb repl

225cea18 03/14/2013 03:58 pm Christos Stavrakakis

Move common code for mngmt commands to webproject

Move cyclades functions that are useful for all managament commands, like
pprint_table or parse_filters, to snf-webproject.

b0e7f310 03/14/2013 03:58 pm Christos Stavrakakis

Add ListCommand to be used for all *-list commands

Create a generic ListCommand to be user for all *-list management
commands. ListCommand handles must tasks that are common to all
management commands, like retrieving objects from db, filtering
results and formating output to a pretty table, json or csv....

01e056b7 03/04/2013 08:18 pm Kostas Papadimitriou

Change default TEMPLATE_DIRS setting

Refs #3363

/var/lib/* is commonly used to store application generated data and not
as a place to configure installed software.

For every Synnefo app, the administrator is free to install a modified
copy of a template under /etc/synnefo/templates....

6a8d05b4 02/14/2013 05:21 pm Christos Stavrakakis

Rewrite logging settings

e43ac298 01/17/2013 04:38 pm Christos Stavrakakis

Check subcommand for encoding stdout

Dummy check, forced by bug in builtin `isatty` method:
https://bugzilla.redhat.com/show_bug.cgi?id=841152

c9284fad 01/07/2013 02:39 pm Christos Stavrakakis

Fix bug in encoding stdout

Propagate attribute access to original sys.stdout. Also fix corner case where
sys.stdout does not have encoding attribute.

65e4e685 01/04/2013 02:20 pm Christos Stavrakakis

Fix typo

21ce46e9 01/04/2013 02:09 pm Christos Stavrakakis

Avoid the use of sys__stdout__

a45fc1ae 01/04/2013 01:28 pm Christos Stavrakakis

Fix UnicodeError when writing to sys.stdout

Due to a bug the was fixed in Python-2.7, in Python-2.6 unicode strings
that are written to sys.stdout (using sys.stdout.write) are not
converted to bytestrings using the file.encoding. Instead
sys.stdout.encoding is set to None, and the default encoding is used. We...

d80813fb 10/25/2012 05:29 pm Stratos Psomadakis

Minor changes

f12085fa 10/24/2012 10:58 pm Stratos Psomadakis

Cleanse sensitive settings in debug output

In case of server errors prevent django from printing or emailing sensitive
settings.

bdff90d3 10/24/2012 11:55 am Christos Stavrakakis

Move LOGGING_SETUP from common to webproject

d01cd522 10/10/2012 03:19 pm Christos Stavrakakis

Various fixes about logging

Fix logging from snf-manage commands. Modify snf-manage implementation
in order to setup the loggers for all snf-manage commands. Configuration
is based on SNF_MANAGE_LOGGING_SETUP setting from snf-common or on
basicConfig if that setting is missing....

ab133e68 09/07/2012 01:25 pm Vangelis Koukis

Move pooling psycopg2 wrapper to synnefo.lib.db

Move pooling psycopg2 wrapper to synnefo.lib.db,
please see commit e83ed1fb8fb4d0d19c2d3f86152fde60b3cadfd9 for all the
details on how to use the pooling wrapper for psycopg2.

e83ed1fb 08/25/2012 03:53 pm Vangelis Koukis

Add pooling synnefo.db.pooled_psycopg2 DBAPI drv

Add DBAPI driver synnefo.db.pooled_psycopg2, which is a
thin, pooling wrapper around psycopg2.

To use, first monkey-patch psycopg2:

from synnefo.db.pooled_psycopg2 import monkey_patch_psycopg2
monkey_patch_psycopg2()...

6f284708 07/16/2012 07:48 pm Kostas Papadimitriou

Fix default cyclades ui UI_MEDIA_URL setting

b85ac316 04/03/2012 05:38 pm Kostas Papadimitriou

Enable USE_X_FORWARDED_HOST by default in webproject

b24907d1 03/30/2012 05:05 pm Kostas Papadimitriou

Set SESSION_SECURE_COOKIE to True by default

5505e60c 03/30/2012 03:33 pm Kostas Papadimitriou

Update webproject default settings

- Removed settings that change based on entry_point hooks
- Other minor default values improvements

bfbdb021 03/12/2012 06:42 pm Kostas Papadimitriou

Improve webproject static files serve views

dde1dd17 03/08/2012 01:43 pm Kostas Papadimitriou

Updated webproject changelog

8e176bdf 02/23/2012 04:58 pm Kostas Papadimitriou

snf-webproject fixes

d60dc9d4 02/23/2012 03:13 pm Kostas Papadimitriou

Logging config and entry_points in snf-webproject

1b9af82c 02/23/2012 12:42 pm Kostas Papadimitriou

Default configuration changes

- cached_db as default session backend
- removed default SITE_ID setting (not required by all synnefo
components)

62a0fc36 02/21/2012 02:46 pm Kostas Papadimitriou

Serve MEDIA_ROOT path from MEDIA_URL url

b3ae4dd1 02/15/2012 05:18 pm Kostas Papadimitriou

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.

55b1e11f 02/15/2012 02:16 pm Kostas Papadimitriou

Move link_static management command in webproject

426d375b 02/14/2012 06:52 pm Kostas Papadimitriou

Add default 404 and 500 templates in webproject

0aecdbd8 02/14/2012 06:14 pm Kostas Papadimitriou

Moved set_language view in webproject

since the url that changes the user session language was moved in webproject
as an app wide url, the view that gets bind to the url should exist also
in webproject.

6f1fcf10 02/14/2012 02:05 pm Kostas Papadimitriou

New entry point for TEMPLATE_CONTEXT_PROCESSORS

b332dfee 01/27/2012 04:34 pm Kostas Papadimitriou

Change DEBUG setting to False

1c9a0076 01/23/2012 04:37 pm Kostas Papadimitriou

Moved default database settings in webproject

eeda4702 01/19/2012 12:23 pm Kostas Papadimitriou

Moved database default config in snf-app

18c15348 01/18/2012 06:03 pm Kostas Papadimitriou

Fix management commands imports for namespace packages

7df4ecdc 01/16/2012 02:05 pm Kostas Papadimitriou

Added snf-app entry points for static files

18a544f5 01/16/2012 01:56 pm Kostas Papadimitriou

Management utility fix

Handle command discovery of namespaced application modules.

cc11c0dd 01/16/2012 12:55 pm Kostas Papadimitriou

Exclude version modules from repository

07d104d8 01/13/2012 02:11 pm Kostas Papadimitriou

Improved packaging

- Improved automatic version tagging from git repo.
- Added auto generated synnefo.<package>.version module to contain each
package version.

2ce0636e 01/12/2012 03:06 pm Kostas Papadimitriou

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