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