Example #1
0
 def meta(original):
     timing = thrift_session_model.Timing(original.auto_timing)
     
     try:
         timing.start = original.start.asPOSIXTimestamp()
         timing.end = original.stop.asPOSIXTimestamp()
     except AttributeError:
         pass
     
     loc = original.location
     location = thrift_session_model.Location()
     
     if loc:
         location.label = force_string(loc.label)
         location.coords = thrift_session_model.Coordinates(loc.latitude, loc.longitude)
         location.geocode = force_string(loc.geocode)
     else:
         location.coords = thrift_session_model.Coordinates()
     
     return thrift_session_model.Meta(
         force_string(original.title),
         force_string(original.description),
         timing,
         location,
         set(map(force_string, original.speakers or ()))
     )
Example #2
0
 def status_text(self):
     return force_string(self.original.status_text)
Example #3
0
 def name(self):
     return force_string(self.original.name)