PATCH: User AutoCreation in RT (NEW, UNTESTED)

Hello!

Here’s a revised patch to RT::User_Overlay.pm which implements
LoadOrCreate() which honors $RT::AutoCreateUserInfo as a hashref which
provides defaults for any user attributes not explicitly provided by
the caller. It also adds LoadOrCreateByName() and refactors
LoadOrCreateByEmail(), making them both thin wrappers to
LoadOrCreate(). I’ve caught a few bugs since the last one, but it
seems to be shaping up well.

Also attached are patches for RT::Interface::Email.pm,
RT::Queue_Overlay.pm, and share/html/autohandler with mostly trivial
refactoring to have them use RT::User::LoadOrCreate() and not override
priority.

I’m going to test these through next Wednesday (assuming our
daughter’s impending birth doesn’t happen between now and then =) at
which point I’m going to roll them out to production and stop paying
attention to them.

Now to finish the actual autocreation-at-login bits. =]

Cheers!

–j
Jim Meyer, Geek at Large purp@acm.org

Here’s a revised patch …

Also attached are patches …

You did it again. :wink:

~reed

Reed Loden - reed@reedloden.com

Hello!On 4/7/06, Reed Loden reed@reedloden.com wrote:

On Fri, 7 Apr 2006 20:08:02 -0700 “Jim Meyer” purp@acm.org wrote:

Here’s a revised patch …

Also attached are patches …

You did it again. :wink:

Let this be a lesson – don’t attempt to switch mail clients when
you’re expecting a child thus half-distracted to begin with.

Attached, by golly. Thanks for the noodge.

–j
Jim Meyer, Geek at Large purp@acm.org

User_Overlay.pm.LoadOrCreate.patch (6.1 KB)

autohandler.LoadOrCreate.patch (497 Bytes)

Interface_Email.pm.LoadOrCreate.patch (946 Bytes)

Queue_Overlay.pm.LoadOrCreate.patch (1.66 KB)