Ticket #8 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Add a get() method to Entity

Reported by: guest Owned by:
Priority: normal Milestone: 0.4
Component: core Version:
Keywords: Cc:

Description

The fact that Entity doesn't have a get method causes problems with TurboGears-1.0.3.2 when it tries to "get" instances from a class. Proposing a patch that adds a get method to to Entity basing itself on the first primary key defined for the Entity.

Attachments

Elixir-0.4.0_entity.py.diff (0.7 kB) - added by guest 6 years ago.

Change History

Changed 6 years ago by guest

Changed 6 years ago by guest

An improvement on the patch would be to use cls._descriptor.primary_keys[0].name instead of looping through.

Changed 6 years ago by guest

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.