Source code for api.sip.dialect

[docs]class Dialect: """Describe a SIP2 dialect. """ # Constants for each class GENERIC_ILS = 'GenericILS' AG_VERSO = 'AutoGraphicsVerso' # Settings defined in each class sendEndSession = None # Map a string to the correct class
[docs] @staticmethod def load_dialect(dialect): if dialect == Dialect.AG_VERSO: return AutoGraphicsVerso else: return GenericILS
[docs]class GenericILS(Dialect): sendEndSession = True
[docs]class AutoGraphicsVerso(Dialect): sendEndSession = False