Statistics
| Branch: | Tag: | Revision:

root / snf-pithos-app / pithos / api / resources.py @ 47d421ae

History | View | Annotate | Download (1.7 kB)

1 82e123f9 Giorgos Korfiatis
# Copyright 2013 GRNET S.A. All rights reserved.
2 82e123f9 Giorgos Korfiatis
#
3 82e123f9 Giorgos Korfiatis
# Redistribution and use in source and binary forms, with or
4 82e123f9 Giorgos Korfiatis
# without modification, are permitted provided that the following
5 82e123f9 Giorgos Korfiatis
# conditions are met:
6 82e123f9 Giorgos Korfiatis
#
7 82e123f9 Giorgos Korfiatis
#   1. Redistributions of source code must retain the above
8 82e123f9 Giorgos Korfiatis
#      copyright notice, this list of conditions and the following
9 82e123f9 Giorgos Korfiatis
#      disclaimer.
10 82e123f9 Giorgos Korfiatis
#
11 82e123f9 Giorgos Korfiatis
#   2. Redistributions in binary form must reproduce the above
12 82e123f9 Giorgos Korfiatis
#      copyright notice, this list of conditions and the following
13 82e123f9 Giorgos Korfiatis
#      disclaimer in the documentation and/or other materials
14 82e123f9 Giorgos Korfiatis
#      provided with the distribution.
15 82e123f9 Giorgos Korfiatis
#
16 82e123f9 Giorgos Korfiatis
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17 82e123f9 Giorgos Korfiatis
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 82e123f9 Giorgos Korfiatis
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 82e123f9 Giorgos Korfiatis
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20 82e123f9 Giorgos Korfiatis
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 82e123f9 Giorgos Korfiatis
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 82e123f9 Giorgos Korfiatis
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 82e123f9 Giorgos Korfiatis
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 82e123f9 Giorgos Korfiatis
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 82e123f9 Giorgos Korfiatis
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26 82e123f9 Giorgos Korfiatis
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 82e123f9 Giorgos Korfiatis
# POSSIBILITY OF SUCH DAMAGE.
28 82e123f9 Giorgos Korfiatis
#
29 82e123f9 Giorgos Korfiatis
# The views and conclusions contained in the software and
30 82e123f9 Giorgos Korfiatis
# documentation are those of the authors and should not be
31 82e123f9 Giorgos Korfiatis
# interpreted as representing official policies, either expressed
32 82e123f9 Giorgos Korfiatis
# or implied, of GRNET S.A.
33 82e123f9 Giorgos Korfiatis
34 47d421ae Georgios D. Tsoukalas
from synnefo.util.keypath import get_path
35 47d421ae Georgios D. Tsoukalas
from pithos.api.settings import pithos_services
36 82e123f9 Giorgos Korfiatis
37 47d421ae Georgios D. Tsoukalas
resources = get_path(pithos_services, 'pithos_object-store.resources').values()