コード例 #1
0
 def slug(self):
     """Returns a slugified version from the category title"""
     return slugify(self.title)
コード例 #2
0
ファイル: models.py プロジェクト: cluo/flaskbb
 def slug(self):
     """Returns a slugified version from the category title"""
     return slugify(self.title)
コード例 #3
0
 def slug(self):
     """Returns a slugified version from the forum title"""
     return slugify(self.title)
コード例 #4
0
def test_slugify():
    """Test the slugify helper method."""
    assert slugify(u"Hello world") == u"hello-world"

    assert slugify(u"¿Cómo está?") == u"como-esta"
コード例 #5
0
ファイル: models.py プロジェクト: cluo/flaskbb
 def slug(self):
     """Returns a slugified version from the forum title"""
     return slugify(self.title)
コード例 #6
0
ファイル: test_helpers.py プロジェクト: eirnym/flaskbb
def test_slugify():
    """Test the slugify helper method."""
    assert slugify(u"Hello world") == u"hello-world"

    assert slugify(u"¿Cómo está?") == u"como-esta"
コード例 #7
0
ファイル: models.py プロジェクト: nginth/c2c_comm_forum
 def slug(self):
     """Returns a slugified version of the topic title."""
     return slugify(self.title)
コード例 #8
0
ファイル: models.py プロジェクト: djsilcock/flaskbb
 def slug(self):
     """Returns a slugified version of the topic title."""
     return slugify(self.title)
コード例 #9
0
ファイル: test_helpers.py プロジェクト: djsilcock/flaskbb
def test_slugify():
    """Test the slugify helper method."""
    assert slugify(u'Hello world') == u'hello-world'

    assert slugify(u'¿Cómo está?') == u'como-esta'
コード例 #10
0
def test_slugify():
    """Test the slugify helper method."""
    assert slugify(u'Hello world') == u'hello-world'

    assert slugify(u'¿Cómo está?') == u'como-esta'