asana_hub/tool.py
def move_saved_issue_data(self, issue, ns, other_ns):
        """Moves an issue_data from one namespace to another."""

        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(ns)
        other_issue_data_key = self._issue_data_key(other_ns)
        issue_data = self.data.get(issue_data_key,
            {})
        other_issue_data = self.data.get(other_issue_data_key,
            {})

        _id = issue_data.pop(issue_number, None)
        if _id:
            other_issue_data[issue_number] = _id

        self.data[other_issue_data_key] = other_issue_data
        self.data[issue_data_key] = issue_data
def move_saved_issue_data(self, issue, ns, other_ns):
        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(ns)
        other_issue_data_key = self._issue_data_key(other_ns)
        issue_data = self.data.get(issue_data_key,
            {})
        other_issue_data = self.data.get(other_issue_data_key,
            {})

        _id = issue_data.pop(issue_number, None)
        if _id:
            other_issue_data[issue_number] = _id

        self.data[other_issue_data_key] = other_issue_data
        self.data[issue_data_key] = issue_data
def move_saved_issue_data ( self , issue , ns , other_ns ) : 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 ( ns ) other_issue_data_key = self . _issue_data_key ( other_ns ) issue_data = self . data . get ( issue_data_key , { } ) other_issue_data = self . data . get ( other_issue_data_key , { } ) _id = issue_data . pop ( issue_number , None ) if _id : other_issue_data [ issue_number ] = _id self . data [ other_issue_data_key ] = other_issue_data self . data [ issue_data_key ] = issue_data
Moves an issue_data from one namespace to another.
Moves an issue_data from one namespace to another .