A dictionary containing any key-value pairs present in the query
        portion of the `ppaction://` URL in the action attribute. For example
        `{'id':'0', 'return':'true'}` in
        'ppaction://customshow?id=0&return=true'. Returns an empty dictionary
        if the URL contains no query string or if no action attribute is
        present.

def action_fields(self):
        """
        A dictionary containing any key-value pairs present in the query
        portion of the `ppaction://` URL in the action attribute. For example
        `{'id':'0', 'return':'true'}` in
        'ppaction://customshow?id=0&return=true'. Returns an empty dictionary
        if the URL contains no query string or if no action attribute is
        present.
        """
        url = self.action

        if url is None:
            return {}

        halves = url.split('?')
        if len(halves) == 1:
            return {}

        key_value_pairs = halves[1].split('&')
        return dict([pair.split('=') for pair in key_value_pairs])