def phone2numeric_filter(value):
    """Take a phone number and converts it in to its numerical equivalent."""
    return phone2numeric(value)
예제 #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)
예제 #3
0
def phone2numeric_filter(value):
    """Takes a phone number and converts it in to its numerical equivalent."""
    return phone2numeric(value)
예제 #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')
예제 #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)
예제 #6
0
파일: test_text.py 프로젝트: isotoma/django
 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")
예제 #7
0
파일: test_text.py 프로젝트: cloudera/hue
 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')
예제 #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."""
예제 #10
0
def test_phone(inp):
    text.phone2numeric(inp)