<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module dataplot.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>.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/models.pyc">/home/thocking/dataplot/docs/htdocs/pydoc/dataplot/models.pyc</a></font></td></tr></table>
<p><tt>Auto-update mechanism for django-dataplot images.<br>
<br>
Use:<br>
from dataplot.cache import PlotModel<br>
from django.db import models<br>
class YourModel(PlotModel,models.Model):</tt></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="django.db.models.base.html">django.db.models.base</a><br>
<a href="dataplot.html">dataplot</a><br>
<a href="datetime.html">datetime</a><br>
<a href="decimal.html">decimal</a><br>
<a href="django.dispatch.dispatcher.html">django.dispatch.dispatcher</a><br>
</td><td width="25%" valign=top><a href="django.db.models.fields.html">django.db.models.fields</a><br>
<a href="django.newforms.html">django.newforms</a><br>
<a href="django.db.models.loading.html">django.db.models.loading</a><br>
<a href="django.db.models.manager.html">django.db.models.manager</a><br>
<a href="django.db.models.manipulators.html">django.db.models.manipulators</a><br>
</td><td width="25%" valign=top><a href="django.oldforms.html">django.oldforms</a><br>
<a href="django.db.models.options.html">django.db.models.options</a><br>
<a href="os.html">os</a><br>
<a href="pdb.html">pdb</a><br>
<a href="django.db.models.query.html">django.db.models.query</a><br>
</td><td width="25%" valign=top><a href="re.html">re</a><br>
<a href="django.db.models.fields.related.html">django.db.models.fields.related</a><br>
<a href="django.db.models.signals.html">django.db.models.signals</a><br>
<a href="time.html">time</a><br>
<a href="django.core.validators.html">django.core.validators</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="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="dataplot.models.html#Dataplot">Dataplot</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="dataplot.html#PlotError">dataplot.PlotError</a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="dataplot.models.html#DataplotImproperlyConfigured">DataplotImproperlyConfigured</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="django.db.models.base.html#ModelBase">django.db.models.base.ModelBase</a>(<a href="__builtin__.html#type">__builtin__.type</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="dataplot.models.html#ModelBase">ModelBase</a>
</font></dt></dl>
</dd>
</dl>
<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="Dataplot">class <strong>Dataplot</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Parsing logic for dataplot autoconfig tuples.<br>
<br>
This is just used for DRY convenience here and should not be used<br>
outside this module.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Dataplot-__init__"><strong>__init__</strong></a>(self, plot)</dt><dd><tt>Initialize a dataplot using sensible defaults.<br>
<br>
This can be a<br>
<br>
dataplot (subclass of dataplot.GenericPlot, i.e. R.Scatter) in<br>
this case, we assume basename of scatter and a plot method<br>
called get_scatter_args.<br>
<br>
tuple (dataplot,dict) where dict is a dictionary of kwargs<br>
used to initialize the dataplot. So you can use this form if<br>
you want to override the default basename, get_plot_args<br>
method, or other plot parameters.</tt></dd></dl>
<dl><dt><a name="Dataplot-get_method"><strong>get_method</strong></a>(self)</dt><dd><tt>Construct a data-returning method from the tuple.</tt></dd></dl>
<hr>
Data and other attributes defined here:<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 'Dataplot' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
</td></tr></table> <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="DataplotImproperlyConfigured">class <strong>DataplotImproperlyConfigured</strong></a>(<a href="dataplot.html#PlotError">dataplot.PlotError</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.models.html#DataplotImproperlyConfigured">DataplotImproperlyConfigured</a></dd>
<dd><a href="dataplot.html#PlotError">dataplot.PlotError</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="DataplotImproperlyConfigured-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>
<dl><dt><a name="DataplotImproperlyConfigured-__init__"><strong>__init__</strong></a>(...)</dt></dl>
<dl><dt><a name="DataplotImproperlyConfigured-__str__"><strong>__str__</strong></a>(...)</dt></dl>
</td></tr></table> <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="ModelBase">class <strong>ModelBase</strong></a>(<a href="django.db.models.base.html#ModelBase">django.db.models.base.ModelBase</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Extend <a href="#ModelBase">ModelBase</a> to initialize dataplots.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="dataplot.models.html#ModelBase">ModelBase</a></dd>
<dd><a href="django.db.models.base.html#ModelBase">django.db.models.base.ModelBase</a></dd>
<dd><a href="__builtin__.html#type">__builtin__.type</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="ModelBase-__init__"><strong>__init__</strong></a>(self, *posargs, **kwargs)</dt><dd><tt>automatic dataplot construction based on DATAPLOTS syntax</tt></dd></dl>
<hr>
Methods inherited from <a href="django.db.models.base.html#ModelBase">django.db.models.base.ModelBase</a>:<br>
<dl><dt><a name="ModelBase-add_to_class"><strong>add_to_class</strong></a>(cls, name, value)</dt></dl>
<hr>
Static methods inherited from <a href="django.db.models.base.html#ModelBase">django.db.models.base.ModelBase</a>:<br>
<dl><dt><a name="ModelBase-__new__"><strong>__new__</strong></a>(cls, name, bases, attrs)</dt></dl>
<hr>
Methods inherited from <a href="__builtin__.html#type">__builtin__.type</a>:<br>
<dl><dt><a name="ModelBase-__call__"><strong>__call__</strong></a>(...)</dt><dd><tt>x.<a href="#ModelBase-__call__">__call__</a>(...) <==> x(...)</tt></dd></dl>
<dl><dt><a name="ModelBase-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#ModelBase-__cmp__">__cmp__</a>(y) <==> cmp(x,y)</tt></dd></dl>
<dl><dt><a name="ModelBase-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ModelBase-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
<dl><dt><a name="ModelBase-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#ModelBase-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
<dl><dt><a name="ModelBase-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#ModelBase-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
<dl><dt><a name="ModelBase-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#ModelBase-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
<dl><dt><a name="ModelBase-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ModelBase-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
<dl><dt><a name="ModelBase-__subclasses__"><strong>__subclasses__</strong></a>(...)</dt><dd><tt><a href="#ModelBase-__subclasses__">__subclasses__</a>() -> list of immediate subclasses</tt></dd></dl>
<dl><dt><a name="ModelBase-mro"><strong>mro</strong></a>(...)</dt><dd><tt><a href="#ModelBase-mro">mro</a>() -> list<br>
return a type's method resolution order</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="__builtin__.html#type">__builtin__.type</a>:<br>
<dl><dt><strong>__base__</strong> = <class 'django.db.models.base.ModelBase'></dl>
<dl><dt><strong>__bases__</strong> = (<class 'django.db.models.base.ModelBase'>,)</dl>
<dl><dt><strong>__basicsize__</strong> = 420</dl>
<dl><dt><strong>__dict__</strong> = <dictproxy object></dl>
<dl><dt><strong>__dictoffset__</strong> = 132</dl>
<dl><dt><strong>__flags__</strong> = 22523</dl>
<dl><dt><strong>__itemsize__</strong> = 20</dl>
<dl><dt><strong>__mro__</strong> = (<class 'dataplot.models.ModelBase'>, <class 'django.db.models.base.ModelBase'>, <type 'type'>, <type 'object'>)</dl>
<dl><dt><strong>__weakrefoffset__</strong> = 184</dl>
</td></tr></table></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="-get_plot_args"><strong>get_plot_args</strong></a>(self, plot_dict, default_args_map)</dt></dl>
<dl><dt><a name="-tee"><strong>tee</strong></a>(...)</dt><dd><tt><a href="#-tee">tee</a>(iterable, n=2) --> tuple of n independent iterators.</tt></dd></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>ADD</strong> = 1<br>
<strong>BLANK_CHOICE_DASH</strong> = [('', '---------')]<br>
<strong>BLANK_CHOICE_NONE</strong> = [('', 'None')]<br>
<strong>BOTH</strong> = 3<br>
<strong>CHANGE</strong> = 2<br>
<strong>HORIZONTAL</strong> = 1<br>
<strong>STACKED</strong> = 2<br>
<strong>TABULAR</strong> = 1<br>
<strong>UNSAFE_FILE_CHARS</strong> = <_sre.SRE_Pattern object><br>
<strong>VERTICAL</strong> = 2<br>
<strong>connection</strong> = <django.db.backends.postgresql.base.DatabaseWrapper object><br>
<strong>settings</strong> = <django.conf.LazySettings object></td></tr></table>
</body></html>