[Rt-devel] PATCH: User AutoCreation in RT (UNTESTED)

Jim Meyer purp at acm.org
Thu Apr 6 19:10:30 EDT 2006


Hello again!

On 4/3/06, Jim Meyer <purp at 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 at acm.org


More information about the Rt-devel mailing list