old_contents: from datetime import datetime, timedelta
  
  from google.appengine.ext import db
  
  
  class CHPIncident(db.Model):
  	CenterID = db.StringProperty(required=True)
  	DispatchID = db.StringProperty(required=True)
  	LogID = db.StringProperty(required=True)
  	LogTime = db.DateTimeProperty()
  	LogType = db.StringProperty()
  	LogTypeID = db.StringProperty()
  	Location = db.StringProperty()
  	Area = db.StringProperty()
  	ThomasBrothers = db.StringProperty()
  	TBXY = db.StringProperty()
  	LogDetails = db.BlobProperty()
  	geolocation = db.GeoPtProperty()
  	created = db.DateTimeProperty(auto_now_add=True)
  	
  	# The following need some explanation. Every incident in a feed is put()ed
  	# as feed is processed, irrespective of any changes.  This updates
  	# 'updated' while 'modified' is updated *only if the data has actually
  	# changed.*
  	updated = db.DateTimeProperty(auto_now=True)
  	modified = db.DateTimeProperty()
  
  	@property
  	def status(self):
  		if self.created > datetime.utcnow() - timedelta(minutes=5):
  			# less than 5 min old == new
  			return 'new'
  		elif self.updated < datetime.utcnow() - timedelta(minutes=15):
  			# not updated in the last update == inactive
  			return 'inactive'
  		else:
  			return 'active'
  
  class Camera(db.Model):
  	name = db.StringProperty()
  	url = db.LinkProperty()
  	geolocation = db.GeoPtProperty()
  	width = db.IntegerProperty()
  	height = db.IntegerProperty()
  	updated = db.DateTimeProperty(auto_now=True)
  
  
new_contents: from datetime import datetime, timedelta
  
  from google.appengine.ext import db
  
  
  class CHPIncident(db.Model):
  	CenterID = db.StringProperty(required=True)
  	DispatchID = db.StringProperty(required=True)
  	LogID = db.StringProperty(required=True)
  	LogTime = db.DateTimeProperty()
  	LogType = db.StringProperty()
  	LogTypeID = db.StringProperty()
  	Location = db.StringProperty()
  	Area = db.StringProperty()
  	ThomasBrothers = db.StringProperty()
  	TBXY = db.StringProperty()
  	LogDetails = db.BlobProperty()
  	geolocation = db.GeoPtProperty()
  	
  	# The following need some explanation. Every incident in a feed is put()ed
  	# as feed is processed, irrespective of any changes.  This updates
  	# 'updated' while 'modified' is updated *only if the data has actually
  	# changed.*
  	updated = db.DateTimeProperty(auto_now=True)
  	modified = db.DateTimeProperty()
  
  	@property
  	def status(self):
  		if self.LogTime > datetime.utcnow() - timedelta(minutes=5):
  			# less than 5 min old == new
  			return 'new'
  		elif self.updated < datetime.utcnow() - timedelta(minutes=15):
  			# not updated in the last update == inactive
  			return 'inactive'
  		else:
  			return 'active'
  
  class Camera(db.Model):
  	name = db.StringProperty()
  	url = db.LinkProperty()
  	geolocation = db.GeoPtProperty()
  	width = db.IntegerProperty()
  	height = db.IntegerProperty()
  	updated = db.DateTimeProperty(auto_now=True)
  
  
subject: Use the LogTime to figure the incident status.