Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1271 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

[PATCH] add the by_email_address class method to the SA identity model

Reported by: faide Owned by: faide
Priority: highest Milestone: 1.0.2
Component: SQLAlchemy Version: 1.0
Severity: normal Keywords:
Cc:

Description

Here is a patch against the SA identity model to add a by_email_address class method equivalent to the one found in the so model.

I had to add this in one of my projects when I wanted to plug-in the registration package from pypi.

Adding this patch to the standard SA model makes the registration package work like a charm.

 http://cheeseshop.python.org/pypi/registration

Though it could be a good idea to have the same functionalities in the two identity provider and thus wrote this patch so other people using sa will be able to plug registration without fiddling with the id model.

Attachments

qstemplate_model_id_reg.diff Download (487 bytes) - added by faide 12 years ago.
My patch of the day ;)

Change History

Changed 12 years ago by faide

My patch of the day ;)

comment:1 Changed 12 years ago by jorge.vargas

  • Priority changed from normal to highest

lets apply this it shouldn't affect old project but will benefit new ones.

comment:2 Changed 12 years ago by jorge.vargas

  • Owner changed from anonymous to jorge.vargas

comment:3 Changed 12 years ago by faide

  • Status changed from new to assigned
  • Owner changed from jorge.vargas to faide

comment:4 Changed 12 years ago by faide

I'll commit this tonight.

comment:5 Changed 12 years ago by faide

  • Status changed from assigned to closed
  • Resolution set to fixed

closed by commits:

  • 2761 (in branch 1.0)
  • 2762 (in trunk)
Note: See TracTickets for help on using tickets.