(cls, event, verb=None)
return
Determine if the event verb is a crud_type (without the 'R') event.

        :param event:
        :type event: models.Event
        :param verb: The event verb to examine.
        :type verb: str
        :returns: The CrudType state object.
        :rtype: CrudType
Determine if the event verb is a crud_type (without the 'R') event.
Determine if the event verb is a crud_type ( without the R ) event .
def determine(cls, event, verb=None):
        """
        Determine if the event verb is a crud_type (without the 'R') event.

        :param event:
        :type event: models.Event
        :param verb: The event verb to examine.
        :type verb: str
        :returns: The CrudType state object.
        :rtype: CrudType
        """
        verb = verb or event.verb

        for enum in CrudType:
            if verb.endswith(enum.value):
                return enum

        # in case nothing matches
        return
def determine ( cls , event , verb = None ) : verb = verb or event . verb for enum in CrudType : if verb . endswith ( enum . value ) : return enum # in case nothing matches return