コード例 #1
0
ファイル: buggalo.py プロジェクト: nek0316/Repo
def trackUserFlow(value):
    """
    Registers an entry in the user's flow through the addon.
    The values is stored in a dict with the current time as key and the provided value as the value.

    For plugin-type addons the user flow is automatically registered for each page the user loads.
    The value can be any string, so it's also useful in script-type addons.

    @param value: the value indicating the user's flow.
    @type value: str
    """
    userflow.trackUserFlow(value)
コード例 #2
0
def trackUserFlow(value):
    """
    Registers an entry in the user's flow through the addon.
    The values is stored in a dict with the current time as key and the provided value as the value.

    For plugin-type addons the user flow is automatically registered for each page the user loads.
    The value can be any string, so it's also useful in script-type addons.

    @param value: the value indicating the user's flow.
    @type value: str
    """
    userflow.trackUserFlow(value)
コード例 #3
0
ファイル: buggalo.py プロジェクト: nek0316/Repo
# You must provide either the SUBMIT_URL or GMAIL_RECIPIENT
# via buggalo.SUBMIT_URL = '' or buggalo.GMAIL_RECIPIENT = ''

# The full URL to where the gathered data should be posted.
SUBMIT_URL = None
# The email address where the gathered data should be sent.
GMAIL_RECIPIENT = None

EXTRA_DATA = dict()

SCRIPT_ADDON = len(sys.argv) == 1

if not SCRIPT_ADDON:
    # Automatically track userflow for plugin type addons
    userflow.trackUserFlow('%s%s' % (sys.argv[0], sys.argv[2]))


def addExtraData(key, value):
    EXTRA_DATA[key] = value


def trackUserFlow(value):
    """
    Registers an entry in the user's flow through the addon.
    The values is stored in a dict with the current time as key and the provided value as the value.

    For plugin-type addons the user flow is automatically registered for each page the user loads.
    The value can be any string, so it's also useful in script-type addons.

    @param value: the value indicating the user's flow.
コード例 #4
0
# You must provide either the SUBMIT_URL or GMAIL_RECIPIENT
# via buggalo.SUBMIT_URL = '' or buggalo.GMAIL_RECIPIENT = ''

# The full URL to where the gathered data should be posted.
SUBMIT_URL = None
# The email address where the gathered data should be sent.
GMAIL_RECIPIENT = None

EXTRA_DATA = dict()

SCRIPT_ADDON = len(sys.argv) == 1

if not SCRIPT_ADDON:
    # Automatically track userflow for plugin type addons
    userflow.trackUserFlow('%s%s' % (sys.argv[0], sys.argv[2]))


def addExtraData(key, value):
    EXTRA_DATA[key] = value


def trackUserFlow(value):
    """
    Registers an entry in the user's flow through the addon.
    The values is stored in a dict with the current time as key and the provided value as the value.

    For plugin-type addons the user flow is automatically registered for each page the user loads.
    The value can be any string, so it's also useful in script-type addons.

    @param value: the value indicating the user's flow.