cc1  v2.1
CC1 source code docs
 All Classes Namespaces Files Functions Variables Pages
storage.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 # @COPYRIGHT_begin
3 #
4 # Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18 # @COPYRIGHT_end
19 
20 ##
21 # @package src.clm.views.admin_cm.storage
22 # @alldecoratedby{src.clm.utils.decorators.admin_cm_log}
23 #
24 
25 from clm.utils.decorators import admin_cm_log, cm_request
26 
27 
28 @admin_cm_log(log=True, pack=False)
29 @cm_request
30 ##
31 #
32 # @clmview_admin_cm
33 # @cm_request_transparent{storage.create()}
34 #
35 def create(cm_response, **data):
36  return cm_response
37 
38 
39 @admin_cm_log(log=False, pack=False)
40 @cm_request
41 ##
42 #
43 # @clmview_admin_cm
44 # @cm_request_transparent{storage.get_list()}
45 #
46 def get_list(cm_response, **data):
47  return cm_response
48 
49 
50 @admin_cm_log(log=True, pack=False)
51 @cm_request
52 ##
53 #
54 # @clmview_admin_cm
55 # @cm_request_transparent{storage.lock()}
56 #
57 def lock(cm_response, **data):
58  return cm_response
59 
60 
61 @admin_cm_log(log=True, pack=False)
62 @cm_request
63 ##
64 #
65 # @clmview_admin_cm
66 # @cm_request_transparent{storage.unlock()}
67 #
68 def unlock(cm_response, **data):
69  return cm_response
70 
71 
72 @admin_cm_log(log=True, pack=False)
73 @cm_request
74 ##
75 #
76 # @clmview_admin_cm
77 # @cm_request_transparent{storage.mount()}
78 #
79 def mount(cm_response, **data):
80  return cm_response
81 
82 
83 @admin_cm_log(log=True, pack=False)
84 @cm_request
85 ##
86 #
87 # @clmview_admin_cm
88 # @cm_request_transparent{storage.check()}
89 #
90 def check(cm_response, **data):
91  return cm_response
92