(self, element_name)
return display_options
for the display handler, go through each config file and
        look for a definition.  Each config file may also have a "definition"
        view as well.
for the display handler, go through each config file and
        look for a definition.  Each config file may also have a "definition"
        view as well.
for the display handler go through each config file and look for a definition . Each config file may also have a definition view as well .
def get_display_options(self, element_name):
        '''for the display handler, go through each config file and
        look for a definition.  Each config file may also have a "definition"
        view as well.'''
        assert element_name

        cache = Container.get("WidgetConfigView:display_options_cache")
        if cache == None:
            cache = {}
            Container.put("WidgetConfigView:display_options_cache", cache)

        key = "%s|%s" % (self.hash_id, element_name)
        display_options = cache.get(key)
        if display_options != None:
            return display_options


        # we have a list of configs ... go through each to find the element
        display_options = {}
        for config in self.configs:
            # get the display handler
            display_options = config.get_display_options(element_name)
            
            # if there is a state defind, then replace any expressions
            # DEPRECATED
            """
            if self.state:
                for name, value in display_options.items():
                    if isinstance(value, basestring):
                        if value.startswith("{") and value.endswith("}"):
                            value = Search.eval(value, single=True, state=self.state)
                            display_options[name] = value

                    else:
                        display_options[name] = value
            """


            if display_options:
                break

        cache[key] = display_options
        return display_options
def get_display_options ( self , element_name ) : assert element_name cache = Container . get ( "WidgetConfigView:display_options_cache" ) if cache == None : cache = { } Container . put ( "WidgetConfigView:display_options_cache" , cache ) key = "%s|%s" % ( self . hash_id , element_name ) display_options = cache . get ( key ) if display_options != None : return display_options # we have a list of configs ... go through each to find the element display_options = { } for config in self . configs : # get the display handler display_options = config . get_display_options ( element_name ) # if there is a state defind, then replace any expressions # DEPRECATED """
            if self.state:
                for name, value in display_options.items():
                    if isinstance(value, basestring):
                        if value.startswith("{") and value.endswith("}"):
                            value = Search.eval(value, single=True, state=self.state)
                            display_options[name] = value

                    else:
                        display_options[name] = value
            """ if display_options : break cache [ key ] = display_options return display_options