MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / DoRename

Method DoRename

gui/characterEditor.py:114–121  ·  view source on GitHub ↗
(self, entity, name)

Source from the content-addressed store, hash-verified

112 return sChar.new(name)
113
114 def DoRename(self, entity, name):
115 sChar = Character.getInstance()
116
117 if entity.alphaCloneID:
118 trimmed_name = re.sub('[ \\(\u03B1\\)]+$', '', name)
119 sChar.rename(entity, trimmed_name)
120 else:
121 sChar.rename(entity, name)
122
123 def DoCopy(self, entity, name):
124 sChar = Character.getInstance()

Callers

nothing calls this directly

Calls 2

renameMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected