示例#1
0
 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
示例#2
0
 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
示例#3
0
 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)
示例#4
0
 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)
示例#5
0
 def __init__(self):
     RequestHandler.__init__(self)
     self.b_service = as_deferred_node('/services/backup_registry')
示例#6
0
 def __init__(self):
     RequestHandler.__init__(self)
     self.b_service = as_deferred_node('/services/backup_registry')