Example #1
0
def remFlag(*flags):
    '''
    Remove flag action perform.
    
    @param flags: arguments[string]
        The flags to be removed.
    '''
    assert flags, 'At least one flag is required'
    return Perform(callerName(0), *flags)
Example #2
0
def remFlag(*flags):
    '''
    Remove flag action perform.
    
    @param flags: arguments[string]
        The flags to be removed.
    '''
    assert flags, 'At least one flag is required'
    return Perform(callerName(0), *flags)
Example #3
0
def feedIndexed(*flags, actions=None):
    '''
    Stream proxy side indexed content action perform.
    
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    @param actions: Iterable(string)|None
        The action names to be passed to the indexed content to be streamed.
    '''
    return Perform(callerName(0), *flags, actions=actions)
Example #4
0
def feedIndexed(*flags, actions=None):
    '''
    Stream proxy side indexed content action perform.
    
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    @param actions: Iterable(string)|None
        The action names to be passed to the indexed content to be streamed.
    '''
    return Perform(callerName(0), *flags, actions=actions)
Example #5
0
def feedContent(*flags, escapes=None):
    '''
    Stream proxy side content action perform.
    
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    @param escapes: dictionary{string: string}
        The escape dictionary, as a key the value that needs to be escaped and as a value the replacing value.
    '''
    return Perform(callerName(0), *flags, escapes=escapes)
Example #6
0
def feedContent(*flags, escapes=None):
    '''
    Stream proxy side content action perform.
    
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    @param escapes: dictionary{string: string}
        The escape dictionary, as a key the value that needs to be escaped and as a value the replacing value.
    '''
    return Perform(callerName(0), *flags, escapes=escapes)
Example #7
0
def feedValue(value, *flags):
    '''
    Stream a value action perform.

    @param value: string
        The value to be streamed.
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    '''
    assert isinstance(value, str), 'Invalid value %s' % value
    return Perform(callerName(0), *flags, value=value)
Example #8
0
def feed(index, *flags):
    '''
    Stream action perform, if the content stream is already passed or equal to index nothing will be streamed.
    
    @param index: string
        The index name to stream at.
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    '''
    assert isinstance(index, str), 'Invalid index %s' % index
    return Perform(callerName(0), *flags, index=index)
Example #9
0
def feedKey(key, *flags):
    '''
    Stream the value for the block key action perform.

    @param key: string
        The block key to stream the value for.
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    '''
    assert isinstance(key, str), 'Invalid key %s' % key
    return Perform(callerName(0), *flags, key=key)
Example #10
0
def feedKey(key, *flags):
    '''
    Stream the value for the block key action perform.

    @param key: string
        The block key to stream the value for.
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    '''
    assert isinstance(key, str), 'Invalid key %s' % key
    return Perform(callerName(0), *flags, key=key)
Example #11
0
def pop(name, *flags):
    '''
    Pops the last value for the provided name.
    
    @param name: string
        The name to pop the value for.
    @param flags: arguments[string]
        The flags that need to be set in order for the pop to be performed.
    '''
    assert isinstance(name, str), 'Invalid name %s' % name
    return Perform(callerName(0), *flags, name=name)
Example #12
0
def feedName(name, *flags):
    '''
    Stream the value for name action perform.

    @param name: string
        The name to have the value streamed.
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    '''
    assert isinstance(name, str), 'Invalid value %s' % name
    return Perform(callerName(0), *flags, name=name)
Example #13
0
def feedName(name, *flags):
    '''
    Stream the value for name action perform.

    @param name: string
        The name to have the value streamed.
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    '''
    assert isinstance(name, str), 'Invalid value %s' % name
    return Perform(callerName(0), *flags, name=name)
Example #14
0
def feedValue(value, *flags):
    '''
    Stream a value action perform.

    @param value: string
        The value to be streamed.
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    '''
    assert isinstance(value, str), 'Invalid value %s' % value
    return Perform(callerName(0), *flags, value=value)
Example #15
0
def feed(index, *flags):
    '''
    Stream action perform, if the content stream is already passed or equal to index nothing will be streamed.
    
    @param index: string
        The index name to stream at.
    @param flags: arguments[string]
        The flags that need to be set in order for the stream to be performed.
    '''
    assert isinstance(index, str), 'Invalid index %s' % index
    return Perform(callerName(0), *flags, index=index)
Example #16
0
def pop(name, *flags):
    '''
    Pops the last value for the provided name.
    
    @param name: string
        The name to pop the value for.
    @param flags: arguments[string]
        The flags that need to be set in order for the pop to be performed.
    '''
    assert isinstance(name, str), 'Invalid name %s' % name
    return Perform(callerName(0), *flags, name=name)
Example #17
0
def setFlagIfBefore(index, *flags):
    '''
    Set flag action perform in case the current stream index is before the provided index.
    
    @param index: string
        The index name that needs to be after (not even equal).
    @param flags: arguments[string]
        The flags to be set.
    '''
    assert isinstance(index, str), 'Invalid index %s' % index
    assert flags, 'At least one flag is required'
    return Perform(callerName(0), *flags, index=index)
Example #18
0
def setFlagIfBefore(index, *flags):
    '''
    Set flag action perform in case the current stream index is before the provided index.
    
    @param index: string
        The index name that needs to be after (not even equal).
    @param flags: arguments[string]
        The flags to be set.
    '''
    assert isinstance(index, str), 'Invalid index %s' % index
    assert flags, 'At least one flag is required'
    return Perform(callerName(0), *flags, index=index)
Example #19
0
def pushKey(name, key, *flags):
    '''
    Push the value of a block key.
    
    @param name: string
        The name to push the value with.
    @param key: string
        The block key to get the value to push.
    @param flags: arguments[string]
        The flags that need to be set in order for the push to be performed.
    '''
    assert isinstance(name, str), 'Invalid name %s' % name
    assert isinstance(key, str), 'Invalid key %s' % key
    return Perform(callerName(0), *flags, key=key, name=name)
Example #20
0
def pushValue(name, value, *flags):
    '''
    Push the value action perform.
    
    @param name: string
        The name to push the block name with.
    @param value: string
        The value to be pushed.
    @param flags: arguments[string]
        The flags that need to be set in order for the push to be performed.
    '''
    assert isinstance(name, str), 'Invalid name %s' % name
    assert isinstance(value, str), 'Invalid value %s' % value
    return Perform(callerName(0), *flags, name=name, value=value)
Example #21
0
def push(name, index, *flags):
    '''
    Push the index value action perform, if the content stream is already passed or equal to index nothing will be pushed.
    
    @param name: string
        The name to push the value with.
    @param index: string
        The index name to use for getting the value to push.
    @param flags: arguments[string]
        The flags that need to be set in order for the push to be performed.
    '''
    assert isinstance(name, str), 'Invalid name %s' % name
    assert isinstance(index, str), 'Invalid index %s' % index
    return Perform(callerName(0), *flags, index=index, name=name)
Example #22
0
def push(name, index, *flags):
    '''
    Push the index value action perform, if the content stream is already passed or equal to index nothing will be pushed.
    
    @param name: string
        The name to push the value with.
    @param index: string
        The index name to use for getting the value to push.
    @param flags: arguments[string]
        The flags that need to be set in order for the push to be performed.
    '''
    assert isinstance(name, str), 'Invalid name %s' % name
    assert isinstance(index, str), 'Invalid index %s' % index
    return Perform(callerName(0), *flags, index=index, name=name)
Example #23
0
def pushValue(name, value, *flags):
    '''
    Push the value action perform.
    
    @param name: string
        The name to push the block name with.
    @param value: string
        The value to be pushed.
    @param flags: arguments[string]
        The flags that need to be set in order for the push to be performed.
    '''
    assert isinstance(name, str), 'Invalid name %s' % name
    assert isinstance(value, str), 'Invalid value %s' % value
    return Perform(callerName(0), *flags, name=name, value=value)
Example #24
0
def pushKey(name, key, *flags):
    '''
    Push the value of a block key.
    
    @param name: string
        The name to push the value with.
    @param key: string
        The block key to get the value to push.
    @param flags: arguments[string]
        The flags that need to be set in order for the push to be performed.
    '''
    assert isinstance(name, str), 'Invalid name %s' % name
    assert isinstance(key, str), 'Invalid key %s' % key
    return Perform(callerName(0), *flags, key=key, name=name)