(self)
| 92 | self.SetEditorValidator(CharacterTextValidor) |
| 93 | |
| 94 | def getEntitiesFromContext(self): |
| 95 | sChar = Character.getInstance() |
| 96 | charList = sorted(sChar.getCharacterList(), key=lambda c: (not c.ro, c.name)) |
| 97 | |
| 98 | # Do some processing to ensure that we have All 0 and All 5 at the top |
| 99 | all5 = sChar.all5() |
| 100 | all0 = sChar.all0() |
| 101 | |
| 102 | charList.remove(all5) |
| 103 | charList.remove(all0) |
| 104 | |
| 105 | charList.insert(0, all5) |
| 106 | charList.insert(0, all0) |
| 107 | |
| 108 | return charList |
| 109 | |
| 110 | def DoNew(self, name): |
| 111 | sChar = Character.getInstance() |
nothing calls this directly
no test coverage detected