def get_view_settings(self):
    'Return dict editor view settings'
    settings = {}
    for name in REMOTE_SETTINGS:
        settings[name] = getattr(self, name)
    return settings
Return dict editor view settings
def get_view_settings(self):
    
    settings = {}
    for name in REMOTE_SETTINGS:
        settings[name] = getattr(self, name)
    return settings