class ForexRate(dbsettings.Group): AUDCNH = dbsettings.DecimalValue('AUD-RMB', default=5.2) USDCNH = dbsettings.DecimalValue('USD-RMB', default=6.5) EURCNH = dbsettings.DecimalValue('EUR-RMB', default=7.9) GBPCNH = dbsettings.DecimalValue('GBP-RMB', default=8.8) CADCNH = dbsettings.DecimalValue('CAD-RMB', default=5.23) NZDCNH = dbsettings.DecimalValue('NZD-RMB', default=4.7) JPYCNH = dbsettings.DecimalValue('JPY-RMB', default=0.058)
class NonRequiredSettings(dbsettings.Group): integer = dbsettings.IntegerValue(required=False) string = dbsettings.StringValue(required=False) fl = dbsettings.FloatValue(required=False) decimal = dbsettings.DecimalValue(required=False) percent = dbsettings.PercentValue(required=False)