def configure(self, config): self.setattr('path', config.get('path', '/trendmanager')) self.setattr('name', config.get('name', 'Trend Manager Handler')) self.setattr( 'manager', as_deferred_node(config.get('manager', '/services/Trend Manager'))) self.secured = as_internal_node("/services").secured super(TrendManagerHandler, self).configure(config) return
def configure(self, config): self.setattr('path', config.get('path','/trendmanager')) self.setattr('name', config.get('name','Trend Manager Handler')) self.setattr( 'manager', as_deferred_node(config.get('manager','/services/Trend Manager')) ) self.secured = as_internal_node("/services").secured super(TrendManagerHandler, self).configure(config) return
def as_deferred_node(self, node_ref): #set_attribute does not pass THIS node in for relative URLs return as_deferred_node(node_ref, self)
def __init__(self): RequestHandler.__init__(self) self.b_service = as_deferred_node('/services/backup_registry')