コード例 #1
0
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
ファイル: test_text.py プロジェクト: raghava4u/Rdjango
 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
ファイル: defaultfilters.py プロジェクト: gitdlam/geraldo
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
ファイル: test_text.py プロジェクト: thibaudcolas/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")
コード例 #9
0
"""Default variable filters."""
コード例 #10
0
def test_phone(inp):
    text.phone2numeric(inp)