Package dataplot :: Package soccer :: Module models :: Class Game
[show private | hide private]
[frames | no frames]

Type Game

object --+        
         |        
     Model --+    
             |    
         Model --+
                 |
                Game


Game(id, date, hi_score, lo_score, differential)
Method Summary
  __str__(self)
  cache(self)
  export(self)
  save(self)
Save method which allows for maximum configurability.
  teams_ordered(self)
  get_absolute_url(*moreargs, **morekwargs)
  get_next_by_date(*moreargs, **morekwargs)
  get_previous_by_date(*moreargs, **morekwargs)
    Inherited from Model
  __init__(self, *args, **kwargs)
  make_manager_plots(cls, force)
Try to remake plots related to this model's manager. (Class method)
  make_model_plots(self, force)
Try to remake plots related to this model.
  save_plots(self)
    Inherited from Model
  __eq__(self, other)
  __hash__(self)
  __ne__(self, other)
  __repr__(self)
  _collect_sub_objects(self, seen_objs)
Recursively populates seen_objs with all objects related to this object.
  _get_FIELD_display(self, field)
  _get_FIELD_filename(self, field)
  _get_FIELD_height(self, field)
  _get_FIELD_size(self, field)
  _get_FIELD_url(self, field)
  _get_FIELD_width(self, field)
  _get_image_dimensions(self, field)
  _get_next_or_previous_by_FIELD(self, field, is_next, **kwargs)
  _get_next_or_previous_in_order(self, is_next)
  _get_pk_val(self)
  _save_FIELD_file(self, field, filename, raw_contents, save)
  _set_pk_val(self, value)
  delete(self)
  validate(self)
First coerces all fields on this instance to their proper Python types.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Property Summary
    Inherited from Model
  pk

Class Variable Summary
GameManager objects = <dataplot.soccer.models.GameManager object at ...
ForeignRelatedObjectsDescriptor team_set = <django.db.models.fields.related.ForeignRelat...
str URLID = 'date'
GameManager _default_manager = <dataplot.soccer.models.GameManager o...
Options _meta = <Options for Game>
type AddManipulator = django.db.models.manipulators.AddManipulator
type ChangeManipulator = django.db.models.manipulators.ChangeManipulator
classobj DoesNotExist = django.db.models.base.DoesNotExist
classobj MultipleObjectsReturned = django.db.models.base.MultipleObjectsReturned

Instance Method Details

save(self)

Save method which allows for maximum configurability.

On a model with no custom save method, we will call django's save first, then try to make plots for this object.

On a model with a custom save method, you should call make_plots and Model.save yourself, depending on when it is appropriate in terms of your data processing.
Overrides:
dataplot.plotmodels.Model.save (inherited documentation)

Class Variable Details

objects

Type:
GameManager
Value:
<dataplot.soccer.models.GameManager object at 0xb7c9ad6c>              

team_set

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

URLID

Type:
str
Value:
'date'                                                                 

_default_manager

Type:
GameManager
Value:
<dataplot.soccer.models.GameManager object at 0xb7c9ad6c>              

_meta

Type:
Options
Value:
<Options for Game>                                                     

Generated by Epydoc 2.1 on Tue Apr 29 23:35:17 2008 http://epydoc.sf.net