This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """Functions to convert IPv4 address to integer and vice-versa. | |
| Written by Christian Stigen Larsen, http://csl.sublevel3.org | |
| Placed in the public domain by the author, 2012-01-11 | |
| Example usage: | |
| $ ./ipv4 192.168.0.1 3232235521 | |
| 192.168.0.1 ==> 3232235521 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.conf import settings | |
| from django.utils.translation import string_concat, ugettext_lazy | |
| from haystack import indexes, site | |
| from cms.models.managers import PageManager | |
| from cms.models.pagemodel import Page | |
| def page_index_factory(lang, lang_name): | |
| if isinstance(lang_name, basestring): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.conf import settings | |
| from django.utils.translation import string_concat, ugettext_lazy | |
| from django.utils.html import strip_tags | |
| from haystack import indexes, site | |
| from cms.models.managers import PageManager | |
| from cms.models.pagemodel import Page | |
| from cms.models.pluginmodel import CMSPlugin |
OlderNewer