PATCH: User AutoCreation in RT (UNTESTED)

Hello again!On 4/3/06, Jim Meyer purp@acm.org wrote:

I’d like to propose a generalized RT::User->LoadOrCreate() function
which can be passed a pile of user info and told which piece to
attempt to load by; it would honor $RT::AutoCreateUserInfo to set any
user info which wasn’t passed in by the caller. […]

LoadOrCreateByEmail() would then be a thin wrapper to LoadOrCreate();
LoadOrCreateByName() could also be such. […]

No one said it’d be a bad idea, so here’s an untested
implementation-as-patch. I’m going to be testing it over the next few
days; in the meantime it gives us something to talk about. =]

Cheers!

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

No one said it’d be a bad idea, so here’s an untested
implementation-as-patch.

er, where is it? :slight_smile:

Reed Loden - reed@reedloden.com

No one said it’d be a bad idea, so here’s an untested
implementation-as-patch.

er, where is it? :slight_smile:

Excellent Question! It’s in /tmp/ … oh, wait, I was supposed to
share, wasn’t I?

Attached.

–j, learning a new email client.
Jim Meyer, Geek at Large purp@acm.org

User_Overlay.pm.LoadOrCreate.patch (5.96 KB)