moo.core.models.verb.Verb

class moo.core.models.verb.Verb(id, code, repo, filename, ref, owner, origin, direct_object)
__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

adelete([using, keep_parents])

allow(accessor, permission)

Allow a certain object or group to do something on this object.

annotated()

arefresh_from_db([using, fields])

asave([force_insert, force_update, using, ...])

can_caller(permission, subject)

Check if the current caller has permission for something.

check(**kwargs)

clean()

Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields.

clean_fields([exclude])

Clean all fields and raise a ValidationError containing a dict of all validation errors if any occur.

date_error_message(lookup_type, field_name, ...)

delete(*args, **kwargs)

deny(accessor, permission)

Deny a certain object or group from doing something on this object.

from_db(db, field_names, values)

full_clean([exclude, validate_unique, ...])

Call clean_fields(), clean(), validate_unique(), and validate_constraints() on the model.

get_constraints()

get_deferred_fields()

Return a set containing names of deferred fields for this instance.

get_direct_object_display(*[, field])

is_bound()

name()

passthrough(*args, **kwargs)

Invoke this verb on the parent objects, if they exist.

prepare_database_save(field)

refresh_from_db([using, fields])

Reload field values from the database.

reload()

save(*args, **kwargs)

Save the current instance.

save_base([raw, force_insert, force_update, ...])

Handle the parts of saving which should be done only once per save, yet need to be done in raw saves, too.

serializable_value(field_name)

Return the value of the field name for this instance.

unique_error_message(model_class, unique_check)

validate_constraints([exclude])

validate_unique([exclude])

Check unique constraints on the model and raise ValidationError if any failed.

Attributes

acl

Accessor to the related objects manager on the reverse side of a many-to-one relation.

code

The Python source code for this Verb.

direct_object

Direct object specifier.

do_not_call_in_templates

filename

Absolute filesystem path to the verb source file.

id

A wrapper for a deferred-loading field.

indirect_objects

Indirect object specifiers — one entry per accepted preposition, each with its own this/any/none rule.

is_ability

is_method

kind

names

Accessor to the related objects manager on the reverse side of a many-to-one relation.

objects

origin

The Object the verb is attached to.

origin_id

owner

The Object whose permissions this verb runs with.

owner_id

pk

ref

Git ref of the verb source.

repo

The Repository row identifying the dataset this verb's source came from.

repo_id