dataplot.models
index
/home/thocking/dataplot/docs/htdocs/pydoc/dataplot/models.pyc

Auto-update mechanism for django-dataplot images.
 
Use:
from dataplot.cache import PlotModel
from django.db import models
class YourModel(PlotModel,models.Model):

 
Modules
       
django.db.models.base
dataplot
datetime
decimal
django.dispatch.dispatcher
django.db.models.fields
django.newforms
django.db.models.loading
django.db.models.manager
django.db.models.manipulators
django.oldforms
django.db.models.options
os
pdb
django.db.models.query
re
django.db.models.fields.related
django.db.models.signals
time
django.core.validators

 
Classes
       
__builtin__.object
Dataplot
dataplot.PlotError(exceptions.Exception)
DataplotImproperlyConfigured
django.db.models.base.ModelBase(__builtin__.type)
ModelBase

 
class Dataplot(__builtin__.object)
    Parsing logic for dataplot autoconfig tuples.
 
This is just used for DRY convenience here and should not be used
outside this module.
 
  Methods defined here:
__init__(self, plot)
Initialize a dataplot using sensible defaults.
 
This can be a
 
dataplot (subclass of dataplot.GenericPlot, i.e. R.Scatter) in
this case, we assume basename of scatter and a plot method
called get_scatter_args.
 
tuple (dataplot,dict) where dict is a dictionary of kwargs
used to initialize the dataplot. So you can use this form if
you want to override the default basename, get_plot_args
method, or other plot parameters.
get_method(self)
Construct a data-returning method from the tuple.

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Dataplot' objects>
list of weak references to the object (if defined)

 
class DataplotImproperlyConfigured(dataplot.PlotError)
    
Method resolution order:
DataplotImproperlyConfigured
dataplot.PlotError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class ModelBase(django.db.models.base.ModelBase)
    Extend ModelBase to initialize dataplots.
 
 
Method resolution order:
ModelBase
django.db.models.base.ModelBase
__builtin__.type
__builtin__.object

Methods defined here:
__init__(self, *posargs, **kwargs)
automatic dataplot construction based on DATAPLOTS syntax

Methods inherited from django.db.models.base.ModelBase:
add_to_class(cls, name, value)

Static methods inherited from django.db.models.base.ModelBase:
__new__(cls, name, bases, attrs)

Methods inherited from __builtin__.type:
__call__(...)
x.__call__(...) <==> x(...)
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__subclasses__(...)
__subclasses__() -> list of immediate subclasses
mro(...)
mro() -> list
return a type's method resolution order

Data and other attributes inherited from __builtin__.type:
__base__ = <class 'django.db.models.base.ModelBase'>
__bases__ = (<class 'django.db.models.base.ModelBase'>,)
__basicsize__ = 420
__dict__ = <dictproxy object>
__dictoffset__ = 132
__flags__ = 22523
__itemsize__ = 20
__mro__ = (<class 'dataplot.models.ModelBase'>, <class 'django.db.models.base.ModelBase'>, <type 'type'>, <type 'object'>)
__weakrefoffset__ = 184

 
Functions
       
get_plot_args(self, plot_dict, default_args_map)
tee(...)
tee(iterable, n=2) --> tuple of n independent iterators.

 
Data
        ADD = 1
BLANK_CHOICE_DASH = [('', '---------')]
BLANK_CHOICE_NONE = [('', 'None')]
BOTH = 3
CHANGE = 2
HORIZONTAL = 1
STACKED = 2
TABULAR = 1
UNSAFE_FILE_CHARS = <_sre.SRE_Pattern object>
VERTICAL = 2
connection = <django.db.backends.postgresql.base.DatabaseWrapper object>
settings = <django.conf.LazySettings object>