Package hm :: Package db :: Module graph :: Class Argument
[hide private]
[frames] | no frames]

Class Argument

source code


Nested Classes [hide private]
  Admin
  DoesNotExist
  MultipleObjectsReturned

Inherited from django.db.models.base.Model: __metaclass__

Instance Methods [hide private]
 
__unicode__(self) source code
 
AddManipulator(...)
 
ChangeManipulator(...)
 
objects(...)

Inherited from rating.RatingMixin: add_rating, rating_by_user

Inherited from tag.TagMixin: add_tag

Inherited from django.db.models.base.Model: __eq__, __init__, __ne__, __repr__, __str__, delete, save, validate

Inherited from django.db.models.base.Model (private): _collect_sub_objects, _get_FIELD_display, _get_FIELD_filename, _get_FIELD_height, _get_FIELD_size, _get_FIELD_url, _get_FIELD_width, _get_image_dimensions, _get_next_or_previous_by_FIELD, _get_next_or_previous_in_order, _get_pk_val, _save_FIELD_file, _set_pk_val

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Methods [hide private]
Argument
make(klass, label, description, sign=1, responds_to=None, behavior=None, argument=None)
Instantiates, and saves a new Argument. See the instance variables for Argument for details about the parameters for this method.
source code
QuerySet
by_behavior(klass, behavior)
Finds and returns all arguments which respond to the specified Behavior.
source code
QuerySet
by_argument(klass, argument)
Finds and returns all arguments which respond to the specified argument.
source code
 
responses_to(klass, argument_or_behavior)
Automatically choose the correct method based on the type of the parameter.
source code

Inherited from tag.TagMixin: by_tag, by_tag_id, tag_cloud

Inherited from log.ActionMixin: by_user

Inherited from utils.ModelMixin: add, find, get

Inherited from django.db.models.base.Model: add_to_class

Inherited from django.db.models.base.Model (private): _prepare

Class Variables [hide private]
  _default_manager = <django.db.models.manager.Manager object at...
  _meta = <Options for Argument>
  citation_set = <django.db.models.fields.related.ForeignRelated...
  response_arguments = <django.db.models.fields.related.ForeignR...
  tagging_set = <django.contrib.contenttypes.generic.ReverseGene...
Instance Variables [hide private]
string label = models.CharField(max_length= 255)
A short description of the Argument
string description = models.TextField()
The description or explanation of the Argument
  sign = models.SmallIntegerField(default=-1)
An integer representing how this argument relates to the one it's responding to.
Behavior behavior = models.ForeignKey(Behavior, null= True)
The Behavior this Argument ultimately references (i.e., is at the top of its Argument-tree.
Argument argument = models.ForeignKey('self', null= True, related_name=...
The Argument this Argument is responding to.

Inherited from rating.RatingMixin: ratings

Inherited from log.ActionMixin: actions, log

Properties [hide private]
  responses
cached_property
  responds_to
cached_property
  rating_sum
  rating_totals

Inherited from rating.RatingMixin: aggregate_rating, rating_by_current_user

Inherited from tag.TagMixin: taggings, tags

Inherited from tag.SlugMixin: slug, slugs

Inherited from log.ActionMixin: action, time, user

Inherited from django.db.models.base.Model: pk

Inherited from object: __class__

Method Details [hide private]

make(klass, label, description, sign=1, responds_to=None, behavior=None, argument=None)
Class Method

source code 
Returns: Argument
The new, saved Argument object.

See Also: Argument

by_behavior(klass, behavior)
Class Method

source code 
Parameters:
  • behavior (Behavior) - The Behavior for which responses will be returned.
Returns: QuerySet
A QuerySet containing the arguments which directly respond to the specified Behavior.

by_argument(klass, argument)
Class Method

source code 
Parameters:
  • argument (Argument) - The Argument to which responses will be returned.
Returns: QuerySet
A QuerySet containing the arguments which directly respond to the specified Behavior.

responses_to(klass, argument_or_behavior)
Class Method

source code 
Parameters:
  • argument_or_behavior (Argument or Behavior) - The object to find responses to.
See Also:
Argument.by_argument, Argument.by_behavior

Class Variable Details [hide private]

_default_manager

Value:
<django.db.models.manager.Manager object at 0x408453cc>

citation_set

Value:
<django.db.models.fields.related.ForeignRelatedObjectsDescriptor objec\
t at 0x408bcb4c>

response_arguments

Value:
<django.db.models.fields.related.ForeignRelatedObjectsDescriptor objec\
t at 0x408453ac>

tagging_set

Value:
<django.contrib.contenttypes.generic.ReverseGenericRelatedObjectsDescr\
iptor object at 0x408d3c6c>

Instance Variable Details [hide private]

sign

An integer representing how this argument relates to the one it's responding to. POSITIVE is FOR, NEGATIVE is AGAINST.
Value:
models.SmallIntegerField(default=-1)

argument

The Argument this Argument is responding to.
Type:
Argument
Value:
models.ForeignKey('self', null= True, related_name= 'response_argument\
s')

Property Details [hide private]

responses

cached_property

Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, value)
Delete Method:
unreachable.fdel(self)

responds_to

cached_property

Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, value)
Delete Method:
unreachable.fdel(self)

rating_sum

Get Method:
unreachable.rating_sum(self)

rating_totals

Get Method:
unreachable.rating_totals(self)