~jdstrand/click-reviewers-tools/migrate-from-skill-to-interfaces

« back to all changes in this revision

Viewing changes to clickreviews/sr_common.py

  • Committer: Jamie Strandboge
  • Date: 2016-02-24 18:22:42 UTC
  • Revision ID: jamie@ubuntu.com-20160224182242-3pzpwbbuy14az7s0
migrate skills to interfaces

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
                     'socket-group',
68
68
                     ]
69
69
 
70
 
    # https://docs.google.com/document/d/14kTzvPL8WchnzDpKbuxSKlHklzofRGl2g_2iNfIStJU/edit#heading=h.smqdkiy9hs81
71
 
    # 'uses':
72
 
    #    'type': name
 
70
    # https://docs.google.com/document/d/1Q5_T00yTq0wobm_nHzCV-KV8R4jdk-PXcrtm80ETTLU/edit#
 
71
    # 'slots':
 
72
    #    'interface': name
73
73
    #    'attrib-name': <type>
74
 
    # skill_types lists types and the valid attribute names for the type with
75
 
    # the valid python type for the attribute (eg, [], '', {}, etc).
76
 
    # These skill_types are likely going to change based on release, but for
77
 
    # now, this is fine.
78
 
    skill_types = {'migration-skill': {'caps': [],
79
 
                                       'security-override': {},
80
 
                                       'security-policy': {},
81
 
                                       'security-template': "",
82
 
                                       }
83
 
                   }
 
74
    # interfaces lists interfaces and the valid attribute names for the
 
75
    # interface with the valid python type for the attribute (eg, [], '', {},
 
76
    # etc). These interfaces are likely going to change based on release, but
 
77
    # for now, this is fine.
 
78
    interfaces = {'old-security': {'caps': [],
 
79
                                   'security-override': {},
 
80
                                   'security-policy': {},
 
81
                                   'security-template': "",
 
82
                                   }
 
83
                  }
84
84
 
85
85
    def __init__(self, fn, review_type, overrides=None):
86
86
        Review.__init__(self, fn, review_type, overrides=overrides)