Пример #1
0
 def get_links(self, obj):
     disruption_links = [
         create_internal_link(_type="disruption", rel="disruptions", id=uri)
         for uri in obj.impact_uris
     ]
     properties_links = pt.make_properties_links(obj.properties)
     return properties_links + disruption_links
Пример #2
0
 def output(self, key, obj):
     return pt.make_properties_links(obj.properties)