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

All Samples(14)  |  Call(6)  |  Derive(0)  |  Import(8)

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/db/mixin.py   mediagoblin-spaetz(Download)
    def generate_slug(self):
        # import this here due to a cyclic import issue
        # (db.models -> db.mixin -> db.util -> db.models)
        from mediagoblin.db.util import check_media_slug_used
 
        self.slug = slugify(self.title)
 
        duplicate = check_media_slug_used(mg_globals.database,

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/edit/views.py   mediagoblin-spaetz(Download)
from mediagoblin.tools.text import (
    convert_to_tag_list_of_dicts, media_tags_as_string)
from mediagoblin.db.util import check_media_slug_used, check_collection_slug_used
 
import mimetypes
        # Make sure there isn't already a MediaEntry with such a slug
        # and userid.
        slug_used = check_media_slug_used(request.db, media.uploader,
                request.form['slug'], media.id)
 

src/j/o/JoshuaGoblin-HEAD/mediagoblin/db/mixin.py   JoshuaGoblin(Download)
    def check_slug_used(self, slug):
        # import this here due to a cyclic import issue
        # (db.models -> db.mixin -> db.util -> db.models)
        from mediagoblin.db.util import check_media_slug_used
 
        return check_media_slug_used(self.uploader, slug, self.id)

src/m/e/mediagoblin-0.6.1/mediagoblin/db/mixin.py   mediagoblin(Download)
    def check_slug_used(self, slug):
        # import this here due to a cyclic import issue
        # (db.models -> db.mixin -> db.util -> db.models)
        from mediagoblin.db.util import check_media_slug_used
 
        return check_media_slug_used(self.uploader, slug, self.id)

src/j/o/JoshuaGoblin-HEAD/mediagoblin/edit/views.py   JoshuaGoblin(Download)
    convert_to_tag_list_of_dicts, media_tags_as_string)
from mediagoblin.tools.url import slugify
from mediagoblin.db.util import check_media_slug_used, check_collection_slug_used
from mediagoblin.db.models import User
 
        # and userid.
        slug = slugify(form.slug.data)
        slug_used = check_media_slug_used(media.uploader, slug, media.id)
 
        if slug_used:

src/m/e/mediagoblin-0.6.1/mediagoblin/edit/views.py   mediagoblin(Download)
    convert_to_tag_list_of_dicts, media_tags_as_string)
from mediagoblin.tools.url import slugify
from mediagoblin.db.util import check_media_slug_used, check_collection_slug_used
from mediagoblin.db.models import User
 
        # and userid.
        slug = slugify(form.slug.data)
        slug_used = check_media_slug_used(media.uploader, slug, media.id)
 
        if slug_used:

src/j/o/JoshuaGoblin-HEAD/mediagoblin/plugins/dogma/edit/views.py   JoshuaGoblin(Download)
    convert_to_tag_list_of_dicts, media_tags_as_string)
from mediagoblin.tools.url import slugify
from mediagoblin.db.util import check_media_slug_used, check_collection_slug_used
from mediagoblin.plugins.dogma.models import (DogmaBandDB, BandMemberRelationship, DogmaComposerDB, DogmaAuthorDB, DogmaKeywordDataDB) 
from mediagoblin.db.models import (Collection)

src/j/o/JoshuaGoblin-HEAD/mediagoblin/media_types/blog/views.py   JoshuaGoblin(Download)
    cleaned_markdown_conversion)
 
from mediagoblin.db.util import check_media_slug_used, check_collection_slug_used
from mediagoblin.db.models import User, Collection, MediaEntry