ARIA-324 Refactor ctx proxy access
Our previous use of "." to delimit nested dict keys was wrong (keys
could have a ".") and inflexible. The new implementation uses subsequent
args to move into the dict. The same format can now be used to access
object attributes.
This commit also changes how to
Force use of [ and ] for ctx function calls. Add test for changing prop by list
index. Cleanups.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit:
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/607f1dd1
Tree:
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130870769
--- Diff: aria/utils/console.py ---
@@ -19,19 +19,68 @@
import os
import sys
+from StringIO import StringIO
from
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130873555
--- Diff: extensions/aria_extension_tosca/simple_v1_0/modeling/__init__.py
---
@@ -497,8 +497,8 @@ def get(name, default=None):
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130902625
--- Diff: aria/orchestrator/topology/instance_handler.py ---
@@ -0,0 +1,644 @@
+# Licensed to the Apache Software Foundation (ASF) under one
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130844628
--- Diff: aria/parser/consumption/modeling.py ---
@@ -105,9 +106,26 @@ def consume(self):
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130842710
--- Diff: aria/parser/consumption/modeling.py ---
@@ -74,7 +75,7 @@ def dump(self):
raw = self.context.modeling.template_as_raw
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130876740
--- Diff: tests/parser/service_templates.py ---
@@ -27,6 +27,7 @@ def consume_literal(literal,
consumer_class_name='instance', cache=True,
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130829336
--- Diff: aria/orchestrator/topology/topology.py ---
@@ -0,0 +1,217 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130826035
--- Diff: aria/orchestrator/topology/topology.py ---
@@ -0,0 +1,217 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130858804
--- Diff: aria/parser/consumption/modeling.py ---
@@ -74,7 +75,7 @@ def dump(self):
raw = self.context.modeling.template_as_raw
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130823646
--- Diff: aria/orchestrator/topology/topology.py ---
@@ -0,0 +1,217 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130871342
--- Diff: aria/utils/console.py ---
@@ -19,19 +19,68 @@
import os
import sys
+from StringIO import StringIO
from
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130827261
--- Diff: aria/orchestrator/topology/topology.py ---
@@ -0,0 +1,217 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130820499
--- Diff: aria/orchestrator/topology/topology.py ---
@@ -0,0 +1,217 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130906157
--- Diff: aria/orchestrator/topology/instance_handler.py ---
@@ -0,0 +1,644 @@
+# Licensed to the Apache Software Foundation (ASF) under one
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130824971
--- Diff: aria/orchestrator/topology/topology.py ---
@@ -0,0 +1,217 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130830529
--- Diff: aria/orchestrator/topology/topology.py ---
@@ -0,0 +1,217 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130828395
--- Diff: aria/orchestrator/topology/topology.py ---
@@ -0,0 +1,217 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130875236
--- Diff: tests/instantiation/test_configuration.py ---
@@ -165,8 +165,11 @@ def test_remote(service):
def
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130876338
--- Diff: tests/instantiation/test_configuration.py ---
@@ -165,8 +165,11 @@ def test_remote(service):
def
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130868717
--- Diff: aria/utils/console.py ---
@@ -19,19 +19,68 @@
import os
import sys
+from StringIO import StringIO
from
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130904352
--- Diff: aria/orchestrator/topology/instance_handler.py ---
@@ -0,0 +1,644 @@
+# Licensed to the Apache Software Foundation (ASF) under one
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130868151
--- Diff: aria/utils/__init__.py ---
@@ -16,3 +16,50 @@
"""
General-purpose utilities package.
"""
+
+from . import (
+
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130879245
--- Diff: tests/parser/test_reqs_caps.py ---
@@ -0,0 +1,29 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+#
25 matches
Mail list logo