def _to_entity(self, entity):
    super(Expando, self)._to_entity(entity)

    if self._dynamic_properties is None:
      self._dynamic_properties = {}

    for key, value in self._dynamic_properties.iteritems():
      entity[key] = value

    all_properties = set(self._dynamic_properties.iterkeys())
    all_properties.update(self._all_properties)
    for key in entity.keys():
      if key not in all_properties:
        del entity[key]
return formatted citations based on list of entries
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/db/__init__.py/Expando._to_entity--crossover with--dataset/ETHPy150Open dschwilk/bibstuff/bibstuff/bibstyles/shared.py/CitationManager.make_citations