class documentation

class NameAdapter(HasTraits): (source)

View In Hierarchy

Maps more descriptive names provided by the user to names in the context

Method adapt_keys Returns a list containing any keys (names) defined by this adapter.
Method adapt_name Given a name, see if it is an alias in the map table. If it is not, the unaltered name should be in the context. Note that if a name is listed both as an alias and as an actual variable in the context, the unaltered name will be used.
Class Variable map Undocumented
def adapt_keys(self): (source)

Returns a list containing any keys (names) defined by this adapter.

def adapt_name(self, context, name): (source)

Given a name, see if it is an alias in the map table. If it is not, the unaltered name should be in the context. Note that if a name is listed both as an alias and as an actual variable in the context, the unaltered name will be used.

Undocumented