def phone2numeric_filter(value):
    """Take a phone number and converts it in to its numerical equivalent."""
    return phone2numeric(value)
Example #2
0
def phone2numeric(value):
    """Takes a phone number and converts it in to its numerical equivalent."""
    from django.utils.text import phone2numeric
    return phone2numeric(value)
Example #3
0
def phone2numeric_filter(value):
    """Takes a phone number and converts it in to its numerical equivalent."""
    return phone2numeric(value)
Example #4
0
 def test_phone2numeric(self):
     numeric = text.phone2numeric('0800 flowers')
     self.assertEqual(numeric, '0800 3569377')
     lazy_numeric = lazystr(text.phone2numeric('0800 flowers'))
     self.assertEqual(lazy_numeric, '0800 3569377')
Example #5
0
def phone2numeric(value):
    """Takes a phone number and converts it in to its numerical equivalent."""
    from django.utils.text import phone2numeric
    return phone2numeric(value)
Example #6
0
 def test_phone2numeric(self):
     numeric = text.phone2numeric("0800 flowers")
     self.assertEqual(numeric, "0800 3569377")
     lazy_numeric = lazystr(text.phone2numeric("0800 flowers"))
     self.assertEqual(lazy_numeric, "0800 3569377")
Example #7
0
 def test_phone2numeric(self):
     numeric = text.phone2numeric('0800 flowers')
     self.assertEqual(numeric, '0800 3569377')
     lazy_numeric = lazystr(text.phone2numeric('0800 flowers'))
     self.assertEqual(lazy_numeric, '0800 3569377')
Example #8
0
 def test_phone2numeric(self):
     numeric = text.phone2numeric("0800 flowers")
     self.assertEqual(numeric, "0800 3569377")
     lazy_numeric = lazystr(text.phone2numeric("0800 flowers"))
     self.assertEqual(lazy_numeric, "0800 3569377")
"""Default variable filters."""
Example #10
0
def test_phone(inp):
    text.phone2numeric(inp)