1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements. See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
18 from aria import extension
20 from .simple_v1_0 import ToscaSimplePresenter1_0
21 from .simple_nfv_v1_0 import ToscaSimpleNfvPresenter1_0
25 class ParserExtensions(object):
28 def presenter_class():
29 return ToscaSimplePresenter1_0, ToscaSimpleNfvPresenter1_0
32 def specification_package():
33 return 'aria_extension_tosca'
36 def specification_url():
38 'yaml-1.1': 'http://yaml.org',
39 'tosca-simple-1.0': 'http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.0/'
40 'cos01/TOSCA-Simple-Profile-YAML-v1.0-cos01.html',
41 'tosca-simple-nfv-1.0': 'http://docs.oasis-open.org/tosca/tosca-nfv/v1.0/'
46 def uri_loader_prefix():
47 the_dir = os.path.dirname(__file__)
48 return os.path.join(the_dir, 'profiles')