ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxmrlv <...@git.apache.org>
Subject [GitHub] incubator-ariatosca pull request #143: ARIA-254 Create multiple nodes per te...
Date Tue, 04 Jul 2017 12:49:36 GMT
Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/143#discussion_r125461884
  
    --- Diff: extensions/aria_extension_tosca/simple_v1_0/modeling/capabilities.py ---
    @@ -52,12 +52,13 @@ def get_inherited_capability_definitions(context, presentation, for_presentation
         Allows overriding all aspects of parent capability properties except data type.
         """
     
    +    if for_presentation is None:
    +        for_presentation = presentation
    +
         # Get capability definitions from parent
         parent = presentation._get_parent(context)
    -    capability_definitions = get_inherited_capability_definitions(context, parent,
    -                                                                  for_presentation=presentation)
\
    -                                                                  if parent is not None
\
    -                                                                  else OrderedDict()
    +    capability_definitions = get_inherited_capability_definitions(
    +        context, parent, for_presentation) if parent is not None else OrderedDict()
     
         # Add/merge our capability definitions
         our_capability_definitions = presentation.capabilities
    --- End diff --
    
    it's really hard to follow with name like 
    capability_definitions and our_capability_definitions


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message