25def addInputRename (type, from_name, to_name):
26 """Add a new input renaming.
27
28 For example:
29
30 addInputRename ("Foo", "foo", "bar")
31
32 to rename the object of type Foo named `foo' to `bar'.
33
34 May also be used to rename dynamic (but NOT static) auxiliary variables:
35
36 addInputRename ("Foo", "foo.d1", "foo.x1")
37
38 If both are combined, write it like this:
39
40 addInputRename ("Foo", "foo", "bar")
41 addInputRename ("Foo", "foo.d1", "bar.x1")
42"""
43 ars = getAddressRemappingSvc()
44 ars.TypeKeyRenameMaps += [ '%s#%s->%s' % (type, from_name, to_name) ]
45 return
46
47