Beispiel #1
0
def createServerActionMessageError(actionID, pyGlooxTag):
    errorType, condition = ProxyHandler(
        StanzaErrorExtension()).handleTag(pyGlooxTag)
    return ServerActionError(
        actionID, errorType, condition
    ) if condition != DEF_STANZA_ERROR_CONDITION else ClientActionError(
        actionID, CLIENT_ERROR_ID.GENERIC)
Beispiel #2
0
def createServerActionPresenceError(actionID, pyGlooxTag):
    return ServerActionError(
        actionID,
        *ProxyHandler(StanzaErrorExtension()).handleTag(pyGlooxTag))
Beispiel #3
0
def createServerPresenceError(pyGlooxTag):
    return StanzaConditionError(
        *ProxyHandler(StanzaErrorExtension()).handleTag(pyGlooxTag))