<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module dataplot.soccer.models</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="dataplot.html"><font color="#ffffff">dataplot</font></a>.<a href="dataplot.soccer.html"><font color="#ffffff">soccer</font></a>.models</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/thocking/dataplot/docs/htdocs/pydoc/dataplot/soccer/models.py">/home/thocking/dataplot/docs/htdocs/pydoc/dataplot/soccer/models.py</a></font></td></tr></table>
<p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="dataplot.R.html">dataplot.R</a><br>
</td><td width="25%" valign=top><a href="dataplot.plotmodels.html">dataplot.plotmodels</a><br>
</td><td width="25%" valign=top><a href="os.html">os</a><br>
</td><td width="25%" valign=top><a href="pdb.html">pdb</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="dataplot.plotmodels.html#Model">dataplot.plotmodels.Model</a>(<a href="django.db.models.base.html#Model">django.db.models.base.Model</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="dataplot.soccer.models.html#Game">Game</a>
</font></dt><dt><font face="helvetica, arial"><a href="dataplot.soccer.models.html#Player">Player</a>
</font></dt><dt><font face="helvetica, arial"><a href="dataplot.soccer.models.html#Score">Score</a>
</font></dt><dt><font face="helvetica, arial"><a href="dataplot.soccer.models.html#Team">Team</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="dataplot.soccer.models.html#GameManager">GameManager</a>
</font></dt><dt><font face="helvetica, arial"><a href="dataplot.soccer.models.html#PlayerManager">PlayerManager</a>
</font></dt></dl>
</dd>
</dl>
<strong>Game</strong> = <class 'dataplot.soccer.models.Game'> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="GameManager">class <strong>GameManager</strong></a>(<a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="dataplot.soccer.models.html#GameManager">GameManager</a></dd>
<dd><a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="GameManager-create_from_file"><strong>create_from_file</strong></a>(self, filename<font color="#909090">=None</font>)</dt><dd><tt>Create new bike rides based on records in a text file.</tt></dd></dl>
<dl><dt><a name="GameManager-create_from_line"><strong>create_from_line</strong></a>(self, line)</dt><dd><tt>Create one game based on line of text datafile.</tt></dd></dl>
<dl><dt><a name="GameManager-export_games_to_file"><strong>export_games_to_file</strong></a>(self, filename<font color="#909090">=None</font>)</dt><dd><tt>Export data to a text file.</tt></dd></dl>
<dl><dt><a name="GameManager-get_export_text"><strong>get_export_text</strong></a>(self)</dt><dd><tt>Text for exported data file.</tt></dd></dl>
<dl><dt><a name="GameManager-get_latest"><strong>get_latest</strong></a>(self)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>DEFAULT_DATAFILE</strong> = './dataplot/soccer/games.txt'</dl>
<dl><dt><strong>TUPKEYS</strong> = ('name', 'goals', 'own_goals')</dl>
<dl><dt><strong>__slotnames__</strong> = []</dl>
<hr>
Methods inherited from <a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a>:<br>
<dl><dt><a name="GameManager-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="GameManager-all"><strong>all</strong></a>(self)</dt></dl>
<dl><dt><a name="GameManager-complex_filter"><strong>complex_filter</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-contribute_to_class"><strong>contribute_to_class</strong></a>(self, model, name)</dt></dl>
<dl><dt><a name="GameManager-count"><strong>count</strong></a>(self)</dt></dl>
<dl><dt><a name="GameManager-create"><strong>create</strong></a>(self, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-dates"><strong>dates</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-distinct"><strong>distinct</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-exclude"><strong>exclude</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-extra"><strong>extra</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-filter"><strong>filter</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-get"><strong>get</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-get_empty_query_set"><strong>get_empty_query_set</strong></a>(self)</dt></dl>
<dl><dt><a name="GameManager-get_or_create"><strong>get_or_create</strong></a>(self, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-get_query_set"><strong>get_query_set</strong></a>(self)</dt><dd><tt>Returns a new QuerySet object. Subclasses can override this method<br>
to easily customize the behavior of the <a href="django.db.models.manager.html#Manager">Manager</a>.</tt></dd></dl>
<dl><dt><a name="GameManager-in_bulk"><strong>in_bulk</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-iterator"><strong>iterator</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-latest"><strong>latest</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-none"><strong>none</strong></a>(self)</dt></dl>
<dl><dt><a name="GameManager-order_by"><strong>order_by</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-select_related"><strong>select_related</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="GameManager-values"><strong>values</strong></a>(self, *args, **kwargs)</dt></dl>
<hr>
Data and other attributes inherited from <a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a>:<br>
<dl><dt><strong>__dict__</strong> = <dictproxy object><dd><tt>dictionary for instance variables (if defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'Manager' objects><dd><tt>list of weak references to the object (if defined)</tt></dl>
<dl><dt><strong>creation_counter</strong> = 50</dl>
</td></tr></table> <strong>Player</strong> = <class 'dataplot.soccer.models.Player'> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="PlayerManager">class <strong>PlayerManager</strong></a>(<a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Adds plotting methods.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="dataplot.soccer.models.html#PlayerManager">PlayerManager</a></dd>
<dd><a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="PlayerManager-SquareScatter_args"><strong>SquareScatter_args</strong></a>(self)</dt></dl>
<dl><dt><a name="PlayerManager-frequent_players"><strong>frequent_players</strong></a>(self)</dt></dl>
<dl><dt><a name="PlayerManager-get_goals_and_victories_args"><strong>get_goals_and_victories_args</strong></a>(self)</dt></dl>
<dl><dt><a name="PlayerManager-get_ts_data"><strong>get_ts_data</strong></a>(self)</dt><dd><tt>Plot args for making multiple time series of win%<br>
<br>
We should replace this data filtering method with some<br>
database-backed method, so statistics can be looked up and<br>
plotted faster/easier.</tt></dd></dl>
<dl><dt><a name="PlayerManager-multi_time_series_args"><strong>multi_time_series_args</strong></a> = _curried(*moreargs, **morekwargs)</dt></dl>
<dl><dt><a name="PlayerManager-offense_defense_args"><strong>offense_defense_args</strong></a> = _curried(*moreargs, **morekwargs)</dt></dl>
<dl><dt><a name="PlayerManager-plotable"><strong>plotable</strong></a>(self)</dt></dl>
<dl><dt><a name="PlayerManager-wins_diff_args"><strong>wins_diff_args</strong></a>(self)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__slotnames__</strong> = []</dl>
<hr>
Methods inherited from <a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a>:<br>
<dl><dt><a name="PlayerManager-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="PlayerManager-all"><strong>all</strong></a>(self)</dt></dl>
<dl><dt><a name="PlayerManager-complex_filter"><strong>complex_filter</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-contribute_to_class"><strong>contribute_to_class</strong></a>(self, model, name)</dt></dl>
<dl><dt><a name="PlayerManager-count"><strong>count</strong></a>(self)</dt></dl>
<dl><dt><a name="PlayerManager-create"><strong>create</strong></a>(self, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-dates"><strong>dates</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-distinct"><strong>distinct</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-exclude"><strong>exclude</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-extra"><strong>extra</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-filter"><strong>filter</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-get"><strong>get</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-get_empty_query_set"><strong>get_empty_query_set</strong></a>(self)</dt></dl>
<dl><dt><a name="PlayerManager-get_or_create"><strong>get_or_create</strong></a>(self, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-get_query_set"><strong>get_query_set</strong></a>(self)</dt><dd><tt>Returns a new QuerySet object. Subclasses can override this method<br>
to easily customize the behavior of the <a href="django.db.models.manager.html#Manager">Manager</a>.</tt></dd></dl>
<dl><dt><a name="PlayerManager-in_bulk"><strong>in_bulk</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-iterator"><strong>iterator</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-latest"><strong>latest</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-none"><strong>none</strong></a>(self)</dt></dl>
<dl><dt><a name="PlayerManager-order_by"><strong>order_by</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-select_related"><strong>select_related</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="PlayerManager-values"><strong>values</strong></a>(self, *args, **kwargs)</dt></dl>
<hr>
Data and other attributes inherited from <a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a>:<br>
<dl><dt><strong>__dict__</strong> = <dictproxy object><dd><tt>dictionary for instance variables (if defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'Manager' objects><dd><tt>list of weak references to the object (if defined)</tt></dl>
<dl><dt><strong>creation_counter</strong> = 50</dl>
</td></tr></table> <strong>Score</strong> = <class 'dataplot.soccer.models.Score'> <strong>Team</strong> = <class 'dataplot.soccer.models.Team'></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-order_scores"><strong>order_scores</strong></a>(qs)</dt></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>GAME_STATS</strong> = ('hi_score', 'lo_score', 'differential')<br>
<strong>PLAYER_STATS</strong> = ('games', 'wins', 'win_percent', 'goals_per_game', 'team_goals_per_game', 'goals_allowed_per_game', 'differential')</td></tr></table>
</body></html>