mirror of https://github.com/H-uru/korman.git
Browse Source
Path of the Shell did not like my fancy metaprogramming tricks for defining an AgeSDL Python class that contained characters that are illegal in Python identifiers. So, now, we revert to just using a standard class declaration. That means that we need to strip out any illegal identifiers from the age name first. A legal Python 2.x identifier is constrained to the ASCII alphanumeric characters and the underscore with the stipulation that the first character cannot be a number. To illustrate this to the artist, we alert the age name property field if an illegal character is found in the age name. We also alert on the underscore, which is now used as a very very special replacement character. In the case of an illegal character, an error message is shown in the UI with the correct AgeSDL name. Of course, I hope no one really uses those illegal characters and this is just more fulmination on my part...pull/128/head
Adam Johnson
6 years ago
6 changed files with 72 additions and 12 deletions
Loading…
Reference in new issue