A wrapper to utils.parse_phone_no() with unquoting support. Parses a specified set of data and breaks it into a list. Args: content (str): The path to split up into a list. If a list is provided, then it's individual entries are processed.
(content, unquote=True, prefix=False)
| 763 | |
| 764 | @staticmethod |
| 765 | def parse_phone_no(content, unquote=True, prefix=False): |
| 766 | """A wrapper to utils.parse_phone_no() with unquoting support. |
| 767 | |
| 768 | Parses a specified set of data and breaks it into a list. |
| 769 | |
| 770 | Args: |
| 771 | content (str): The path to split up into a list. If a list is |
| 772 | provided, then it's individual entries are processed. |
| 773 | |
| 774 | unquote (:obj:`bool`, optional): call unquote on each element |
| 775 | added to the returned list. |
| 776 | |
| 777 | Returns: |
| 778 | list: A unique list containing all of the elements in the path |
| 779 | """ |
| 780 | |
| 781 | if unquote: |
| 782 | try: |
| 783 | content = URLBase.unquote(content) |
| 784 | except TypeError: |
| 785 | # Nothing further to do |
| 786 | return [] |
| 787 | |
| 788 | content = parse_phone_no(content, prefix=prefix) |
| 789 | |
| 790 | return content |
| 791 | |
| 792 | @property |
| 793 | def app_id(self): |