degal/config.py
changeset 142 2b8dfacc6d2d
parent 135 6534c77de93f
child 144 97505a789003
equal deleted inserted replaced
141:9387da0dc183 142:2b8dfacc6d2d
     1 """
     1 """
     2     Configuration
     2     Configuration
     3 """
     3 """
     4 
     4 
     5 import copy, logging
     5 import copy, logging
       
     6 import templates
     6 
     7 
     7 class InstanceContext (object) :
     8 class InstanceContext (object) :
     8     """
     9     """
     9         An object that behaves like a dict, performing all item lookups as attribute lookups on the given object.
    10         An object that behaves like a dict, performing all item lookups as attribute lookups on the given object.
    10 
    11 
   145         ("ShootingMode",            "Shooting mode"             ),
   146         ("ShootingMode",            "Shooting mode"             ),
   146         ("LensType",                "Lens type"                 ),
   147         ("LensType",                "Lens type"                 ),
   147         ("FocalLength",             "Focal length"              ),
   148         ("FocalLength",             "Focal length"              ),
   148     )
   149     )
   149 
   150 
       
   151     # footer text HTML element, must use html.raw if this includes formatting
       
   152     footer              = templates.footer
       
   153 
   150     # XXX: move elsewhere?
   154     # XXX: move elsewhere?
   151     def is_image (self, file) :
   155     def is_image (self, file) :
   152         """
   156         """
   153             Tests if the given File is an image, based on its file extension
   157             Tests if the given File is an image, based on its file extension
   154 
   158