Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(5)  |  Derive(0)  |  Import(4)

src/f/e/feincms-HEAD/feincms/content/application/models.py   feincms(Download)
from feincms.admin.item_editor import ItemEditorForm
from feincms.contrib.fields import JSONField
from feincms.translations import short_language_code
from feincms.utils import get_object
 
        if len(contents) > 1:
            try:
                current = short_language_code(get_language())
                return [
                    content for content in contents if
                    short_language_code(content.parent.language) == current

src/f/e/FeinCMS-1.9.3/feincms/content/application/models.py   FeinCMS(Download)
from feincms.admin.item_editor import ItemEditorForm
from feincms.contrib.fields import JSONField
from feincms.translations import short_language_code
from feincms.utils import get_object
 
        if len(contents) > 1:
            try:
                current = short_language_code(get_language())
                return [
                    content for content in contents if
                    short_language_code(content.parent.language) == current

src/f/e/feincms-HEAD/tests/testapp/tests/test_page.py   feincms(Download)
from feincms.module.page.models import Page
from feincms.templatetags import feincms_tags
from feincms.translations import short_language_code
 
from .test_stuff import Empty
 
        mediafile.translations.create(
            caption='something', language_code='%s-ha' % short_language_code())
        mediafile.purge_translation_cache()
 

src/f/e/feincms-elephantblog-HEAD/tests/testapp/tests/test_translations.py   feincms-elephantblog(Download)
from django.utils import translation
 
from feincms.translations import short_language_code
 
from elephantblog.models import Entry