asana_hub/tool.py
def get_saved_issue_data(self, issue, namespace='open'):
        """Returns issue data from local data.

        Args:
            issue:
                `int`. Github issue number.
            namespace:
                `str`. Namespace for storing this issue.
        """

        if isinstance(issue, int):
            issue_number = str(issue)
        elif isinstance(issue, basestring):
            issue_number = issue
        else:
            issue_number = issue.number

        issue_data_key = self._issue_data_key(namespace)
        issue_data = self.data.get(issue_data_key,
            {})

        _data = issue_data.get(str(issue_number), {})
        issue_data[str(issue_number)] = _data
        return _data
def get_saved_issue_data(self, issue, namespace='open'):
        if isinstance(issue, int):
            issue_number = str(issue)
        elif isinstance(issue, basestring):
            issue_number = issue
        else:
            issue_number = issue.number

        issue_data_key = self._issue_data_key(namespace)
        issue_data = self.data.get(issue_data_key,
            {})

        _data = issue_data.get(str(issue_number), {})
        issue_data[str(issue_number)] = _data
        return _data
def get_saved_issue_data ( self , issue , namespace = 'open' ) : if isinstance ( issue , int ) : issue_number = str ( issue ) elif isinstance ( issue , basestring ) : issue_number = issue else : issue_number = issue . number issue_data_key = self . _issue_data_key ( namespace ) issue_data = self . data . get ( issue_data_key , { } ) _data = issue_data . get ( str ( issue_number ) , { } ) issue_data [ str ( issue_number ) ] = _data return _data
Returns issue data from local data.

        Args:
            issue:
                `int`. Github issue number.
            namespace:
                `str`. Namespace for storing this issue.
Returns issue data from local data .