feels like a ok pattern to me... rapidsms style... you have all these
things that think they might be able to identify the case type and wrap it;
if one does, stop there; if not, try the next one.


On Wed, Jul 24, 2013 at 10:12 AM, Cory Zue <notifications@github.com> wrote:

> In corehq/apps/hqcase/utils.py:
>
> >
> > +    wrapper = None
> > +    for wf in wrapper_funcs:
> > +        wrapper = wf(data)
> > +        if wrapper is not None:
> > +            break
>
> (non blocking) seems like a little bit of an odd way to do this (running
> each wrapper and assuming they'll return nothing if they aren't relevant).
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dimagi/commcare-hq/pull/728/files#r5372217>
> .
>