Home | History | Annotate | Download | only in shared

Lines Matching defs:Entry

264 class Entry(Resource):
308 class InstanceEntry(Entry):
356 not_prepared = [entry for entry in entries
357 if not entry._is_prepared_for_full_representation]
358 cls._do_prepare_for_full_representation([entry.instance
359 for entry in not_prepared])
360 for entry in not_prepared:
361 entry._is_prepared_for_full_representation = True
426 for entry in entries:
428 rep = entry.full_representation()
430 rep = entry.short_representation()
500 entry = self._entry_from_instance(instance)
501 entry.update(input_dict)
507 content=entry.href())
508 response['Location'] = entry.href()
512 class Relationship(Entry):
515 # subclasses must override this with a dict mapping name to entry class
533 # kwargs contains URI args for each entry
542 for name, entry in self.entries.iteritems():
543 kwargs.update(entry._uri_args())
549 for name, entry in self.entries.iteritems():
550 rep[name] = entry.short_representation()
585 entry, other_entry = self.entries.itervalues()
586 related_manager = self._get_related_manager(entry.instance)
594 entry = containing_collection.fixed_entry
596 related_manager = cls._get_related_manager(entry.instance)
624 def _set_fixed_entry(self, entry):
625 """Set the fixed entry for this collection.
627 The entry must be an instance of one of the related entry classes. This
634 if isinstance(entry, self.related_classes[names[0]]):
637 assert isinstance(entry, self.related_classes[names[1]])
639 self.fixed_entry = entry
642 entry.instance)