Package madrona :: Package layers :: Module models :: Class PublicLayerList
[hide private]

Class PublicLayerList

source code

django.db.models.Model --+
                         |
                        PublicLayerList

Model used for storing uploaded kml files that list all public layers.

======================  ==============================================
Attribute               Description
======================  ==============================================
``active``              Whether this kml file represents the currently 
                        displayed data layers. If set to true and 
                        another ``PublicLayerList`` is active, that 
                        old list will be deactivated.

``kml_file``            Django `FileField <http://docs.djangoproject.com/en/dev/ref/models/fields/#filefield>`_
                        that references the actual kml

``creation_date``       When the layer was created. Is not changed on
                        updates.
======================  ==============================================

Instance Methods [hide private]
 
__unicode__(self) source code
 
save(self, *args, **kwargs) source code
Class Variables [hide private]
  creation_date = models.DateTimeField(auto_now= True)
  active = models.BooleanField(default= True, help_text= ...
  kml_file = models.FileField(upload_to= 'layers/uploaded-kml/',...
Class Variable Details [hide private]

active

Value:
models.BooleanField(default= True, help_text= """
        Checking here indicates that this layer list should be the one\
 used in
        the application. Copies of other layer lists are retained in t\
he
        system so you can go back to an old version if necessary.
    """)

kml_file

Value:
models.FileField(upload_to= 'layers/uploaded-kml/', help_text= """
        KML file that represents the public layers list. This file can\
 use
        NetworkLinks pointing to remote kml datasets or WMS servers.
        For more information on how to create this kml file see the 
        documentation.
    """, blank= False, max_length= 510)