コード例 #1
0
    def prepare(self):
        super(DashboardContainer, self).prepare()
        layout = eval_app_config(self.config_key)

        if not layout:
            if isinstance(self.layout, basestring):
                layout = eval_app_config(self.layout)
            else:
                layout = self.layout

        # Filter out any None's in the layout which signify apps which are
        # not allowed to run with the current session's authorization level
        self.layout = ConfigWrapper.process_wrappers(layout, self)