Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
23b48e1d
Commit
23b48e1d
authored
Feb 23, 2012
by
Kostas Papadimitriou
Browse files
Updated snf-webproject hooks
parent
21d55180
Changes
7
Hide whitespace changes
Inline
Side-by-side
snf-pithos-app/conf/20-snf-pithos-app-settings.conf
View file @
23b48e1d
...
...
@@ -13,7 +13,7 @@ PITHOS_BACKEND_DB_CONNECTION = 'sqlite://///user/share/synnefo/pithos/backend.db
# Block storage.
#PITHOS_BACKEND_BLOCK_MODULE = 'pithos.backends.lib.hashfiler'
PITHOS_BACKEND_BLOCK_PATH
=
'/us
e
r/share/synnefo/pithos/data'
PITHOS_BACKEND_BLOCK_PATH
=
'/usr/share/synnefo/pithos/data'
# Queue for billing.
#
...
...
snf-pithos-app/pithos/api/synnefo_settings.py
View file @
23b48e1d
# Setup logging (use this name for the setting to avoid conflicts with django > 1.2.x).
LOGGING_SETUP
=
{
'version'
:
1
,
'disable_existing_loggers'
:
True
,
'formatters'
:
{
'simple'
:
{
'format'
:
'%(message)s'
},
'verbose'
:
{
'format'
:
'%(asctime)s [%(levelname)s] %(name)s %(message)s'
},
},
'handlers'
:
{
'null'
:
{
'class'
:
'logging.NullHandler'
,
},
'console'
:
{
'class'
:
'logging.StreamHandler'
,
'formatter'
:
'verbose'
},
'file'
:
{
'class'
:
'logging.FileHandler'
,
'formatter'
:
'verbose'
},
"""
Hooks for snf-webproject used in snf-pithos-app setup.py entry_points
"""
synnefo_installed_apps
=
[
'pithos.api'
]
# apply required middleware
synnefo_middlewares
=
[
'synnefo.lib.middleware.LoggingConfigMiddleware'
,
'synnefo.lib.middleware.SecureMiddleware'
]
loggers
=
{
'pithos'
:
{
'handlers'
:
[
'console'
],
'level'
:
'INFO'
},
'loggers'
:
{
'pithos'
:
{
'handlers'
:
[
'console'
],
'level'
:
'INFO'
},
}
}
snf-pithos-app/pithos/synnefo_settings.py
deleted
100644 → 0
View file @
21d55180
"""
Hooks for snf-webproject used in snf-pithos-app setup.py entry_points
"""
from
django.conf.urls.defaults
import
include
,
patterns
synnefo_installed_apps
=
[
'pithos.api'
]
synnefo_urls
=
patterns
(
''
,
(
r
''
,
include
(
'pithos.urls'
)),
)
synnefo_middlewares
=
[
'pithos.middleware.LoggingConfigMiddleware'
,
'pithos.middleware.SecureMiddleware'
]
from
pithos.api.synnefo_settings
import
*
snf-pithos-app/pithos/urls.py
deleted
100644 → 0
View file @
21d55180
# Copyright 2011-2012 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above
# copyright notice, this list of conditions and the following
# disclaimer.
#
# 2. Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# The views and conclusions contained in the software and
# documentation are those of the authors and should not be
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
from
django.conf.urls.defaults
import
include
,
patterns
urlpatterns
=
patterns
(
''
,
(
r
''
,
include
(
'pithos.api.urls'
)),
)
snf-pithos-app/setup.py
View file @
23b48e1d
...
...
@@ -65,7 +65,7 @@ CLASSIFIERS = []
# Package requirements
INSTALL_REQUIRES
=
[
'snf-common'
,
'snf-common
>=0.8.1
'
,
'snf-pithos-backend'
,
'Django>=1.2, <1.3'
,
'south>=0.7, <=0.7.3'
...
...
@@ -200,10 +200,11 @@ setup(
'console_scripts'
:
[
],
'synnefo'
:
[
'default_settings = pithos.synnefo_settings'
,
'web_apps = pithos.synnefo_settings:synnefo_installed_apps'
,
'web_middleware = pithos.synnefo_settings:synnefo_middlewares'
,
'urls = pithos.synnefo_settings:synnefo_urls'
'default_settings = pithos.api.synnefo_settings'
,
'web_apps = pithos.api.synnefo_settings:synnefo_installed_apps'
,
'web_middleware = pithos.api.synnefo_settings:synnefo_middlewares'
,
'urls = pithos.api.urls:urlpatterns'
,
'loggers = pithos.api.synnefo_settings:logging'
]
},
)
...
...
snf-pithos-backend/setup.py
View file @
23b48e1d
...
...
@@ -65,7 +65,7 @@ CLASSIFIERS = []
# Package requirements
INSTALL_REQUIRES
=
[
'snf-common'
,
'snf-common
>=0.8.1
'
,
'SQLAlchemy>=0.6.3'
,
]
...
...
snf-pithos-tools/setup.py
View file @
23b48e1d
...
...
@@ -67,7 +67,7 @@ CLASSIFIERS = []
# Package requirements
INSTALL_REQUIRES
=
[
'snf-common'
'snf-common
>=0.8.1
'
]
EXTRAS_REQUIRES
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment