code stringlengths 3 6.57k |
|---|
NotFound(ActionError) |
NotAuthorized(ActionError) |
ValidationError(ActionError) |
__init__(self, error_dict, error_summary=None, extra_msg=None) |
isinstance(error_dict, dict) |
tag_errors.append(', '.join(error['name']) |
tag_errors.append(error) |
super(ValidationError, self) |
__init__(extra_msg) |
error_summary(self) |
summarise(error_dict) |
prettify(field_name) |
re.sub(r'(?<!\w) |
rl(?!\w) |
field_name.replace('_', ' ') |
capitalize() |
_(field_name.replace('_', ' ') |
six.iteritems(error_dict) |
_('Resources') |
_('Package resource(s) |
if (item.get('key') |
errors_extras.append(item.get('key') |
_('Extras') |
join(errors_extras) |
_('Extras') |
_('Tags') |
_(prettify(key) |
summarise(self.error_dict) |
__str__(self) |
super(ValidationError, self) |
__str__() |
join([str(err_msg) |
logging.getLogger(__name__) |
parse_params(params, ignore_keys=None) |
hasattr(params, 'getall') |
params.getall(key) |
params.getlist(key) |
len(value) |
clean_dict(data_dict) |
lists (recursive) |
data_dict.items() |
isinstance(value, list) |
isinstance(inner_dict, string_types) |
any(inner_dict.values() |
value.remove(inner_dict) |
clean_dict(inner_dict) |
tuplize_dict(data_dict) |
like ('table', 0, 'key') |
six.iteritems(data_dict) |
key.split('__') |
enumerate(key_list) |
int(key) |
df.DataError('Bad key') |
tuple(key_list) |
untuplize_dict(tuplized_dict) |
six.iteritems(tuplized_dict) |
join([str(item) |
flatten_to_string_key(dict) |
df.flatten_dict(dict) |
untuplize_dict(flattented) |
_prepopulate_context(context) |
context.setdefault('model', model) |
context.setdefault('session', model.Session) |
context.setdefault('user', c.user) |
check_access(action, context, data_dict=None) |
user (or an anonymous request) |
check_access('package_update', context, data_dict) |
context.get('__auth_audit', []) |
pop() |
context.get('user') |
context.get('ignore_auth') |
context.get('__auth_user_obj_checked') |
context.get('user') |
context.get('auth_user_obj') |
model.User.by_name(context['user']) |
_prepopulate_context(context) |
logic_authorization.get('msg', '') |
NotAuthorized(msg) |
text_type(e) |
log.debug('check access OK - %s user=%s', action, user) |
clear_actions_cache() |
_actions.clear() |
chained_action(func) |
_is_chained_action(func) |
getattr(func, 'chained_action', False) |
get_action(action) |
get_action('package_create') |
ckan.logic.action.create.package_create() |
get_action() |
get_action() |
toolkit.get_action('package_create') |
get_action() |
KeyError("Action '%s' not found" % action) |
_actions.get(action) |
authz.get_local_functions(module) |
hasattr(v, 'side_effect_free') |
defaultdict(list) |
p.PluginImplementations(p.IActions) |
plugin.get_actions() |
items() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.