def _set_attributes(self, kwds):
    cls = self.__class__
    for name, value in kwds.iteritems():
      prop = getattr(cls, name)  # Raises AttributeError for unknown properties.
      if not isinstance(prop, Property):
        raise TypeError('Cannot set non-property %s' % name)
      prop._set_value(self, value)
Show page links.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/Model._set_attributes--crossover with--dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/templatetags/endless.py/show_pages