Beispiel #1
0
 def __init__(self, data):
     self.product = data.get('product')
     self.title = normalize(data.get('title'))
     self.uri = data.get('uri')
     self.absolute_path = data.get('absolute_path')
     self.absolute_type = data.get('absolute_type')
     self.limit_key = data.get('limit_key')
     self.value_key = data.get('value_key')
     self.active = bool(data.get('active'))
     self.id = data.get('_id')
     self.slug = slug(data.get('title'))
Beispiel #2
0
 def __init__(self, data):
     self.product = data.get('product')
     self.title = normalize(data.get('title'))
     self.uri = data.get('uri')
     self.absolute_path = data.get('absolute_path')
     self.absolute_type = data.get('absolute_type')
     self.limit_key = data.get('limit_key')
     self.value_key = data.get('value_key')
     self.active = bool(data.get('active'))
     self.id = data.get('_id')
     self.slug = slug(data.get('title'))
Beispiel #3
0
 def __init__(self, data):
     self.id = data.get('_id')
     self.title = normalize(data.get('title'))
     self.db_name = data.get('db_name')
     self.us_url = data.get('us_url')
     self.uk_url = data.get('uk_url')
     self.doc_url = data.get('doc_url')
     self.pitchfork_url = data.get('pitchfork_url')
     self.require_region = bool(data.get('require_region'))
     self.active = bool(data.get('active'))
     self.limit_maps = self.get_defined_limit_maps(data)
Beispiel #4
0
 def __init__(self, data):
     self.id = data.get('_id')
     self.title = normalize(data.get('title'))
     self.db_name = data.get('db_name')
     self.us_url = data.get('us_url')
     self.uk_url = data.get('uk_url')
     self.doc_url = data.get('doc_url')
     self.pitchfork_url = data.get('pitchfork_url')
     self.require_region = bool(data.get('require_region'))
     self.active = bool(data.get('active'))
     self.limit_maps = self.get_defined_limit_maps(data)