Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/n/o/nodeshot-HEAD/nodeshot/core/base/models.py   nodeshot(Download)
 
    """
    access_level = models.SmallIntegerField(_('access level'), choices=choicify(ACCESS_LEVELS), default=ACCESS_LEVELS.get('public'))
 
    class Meta:
            # looks up in settings.py
            # example NODESHOT['DEFAULTS']['ACL_NETWORK_NODE']
            ACL_DEFAULT = ACCESS_LEVELS.get(settings.NODESHOT['DEFAULTS']['ACL_%s' % app_descriptor])
        except KeyError:
            # if setting is not found use the global setting 
            ACL_DEFAULT = ACCESS_LEVELS.get(settings.NODESHOT['DEFAULTS']['ACL_GLOBAL'])