def refresh_dashboard(self, user): logger.info("Getting all Widgets from database") try: registry.reset_cache() widgets_list = registry.refresh_widgets() for widget in widgets_list: retrieved = registry.get_widget(widget['name']) retrieved.db_reference = widget json_data = json.dumps({'UUID': None, 'taskname': None}) return json_data except Exception, err: logger.error('ERROR: ' + str(err))
def widget(name, user, args=None): widget = registry.get_widget(name) #TODO: Verify if multiusers cause problems widget.user = user return widget.render(args)
def widget(name, user, args = None): widget = registry.get_widget(name) #TODO: Verify if multiusers cause problems widget.user=user return widget.render(args)