'Load loid (and timestamp) from cookie or optionally create one.
:param request: current :py:module:`pylons` request object
:param context: current :py:module:`pylons` context object
:param bool create: On failure to load from a cookie,
:rtype: :py:class:`LoId`'

@classmethod
def load(cls, request, context, create=True):

    stub = cls(request, context, serializable=False)
    loid = request.cookies.get(LOID_COOKIE)
    if loid:
        (loid, _, _) = unquote(loid).partition('.')
        try:
            created = ensure_unquoted(request.cookies.get(LOID_CREATED_COOKIE, ''))
            created = date_parse(created)
        except ValueError:
            created = None
        return cls(request, context, new=False, loid=loid, version=0, created=created)
    elif create:
        return cls._create(request, context)
    else:
        return stub
