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

All Samples(36)  |  Call(7)  |  Derive(0)  |  Import(29)
Provides scoped management of :class:`.Session` objects.

See :ref:`unitofwork_contextual` for a tutorial.

src/j/o/JoshuaGoblin-HEAD/mediagoblin/media_types/blog/models.py   JoshuaGoblin(Download)
 
from mediagoblin.db.base import Base
from mediagoblin.db.base import Session
from mediagoblin.db.models import Collection, User, MediaEntry
from mediagoblin.db.mixin import GenerateSlugMixin

src/m/e/mediagoblin-0.6.1/mediagoblin/db/open.py   mediagoblin(Download)
import logging
 
from mediagoblin.db.base import Base, Session
from mediagoblin import mg_globals
 
    def check_session_clean(self):
        for dummy in Session():
            _log.warn("STRANGE: There are elements in the sql session. "
                      "Please report this and help us track this down.")
            break

src/m/e/mediagoblin-0.6.1/mediagoblin/db/models_v0.py   mediagoblin(Download)
 
from mediagoblin.db.extratypes import PathTupleWithSlashes, JSONEncoded
from mediagoblin.db.base import GMGTableBase, Session
 
 
    def media_data_init(self, **kwargs):
        """
        Initialize or update the contents of a media entry's media_data row
        """
        session = Session()

src/j/o/JoshuaGoblin-HEAD/mediagoblin/db/open.py   JoshuaGoblin(Download)
import logging
 
from mediagoblin.db.base import Base, Session
from mediagoblin import mg_globals
 
    def check_session_clean(self):
        for dummy in Session():
            _log.warn("STRANGE: There are elements in the sql session. "
                      "Please report this and help us track this down.")
            break

src/j/o/JoshuaGoblin-HEAD/mediagoblin/db/models_v0.py   JoshuaGoblin(Download)
 
from mediagoblin.db.extratypes import PathTupleWithSlashes, JSONEncoded
from mediagoblin.db.base import GMGTableBase, Session
 
 
    def media_data_init(self, **kwargs):
        """
        Initialize or update the contents of a media entry's media_data row
        """
        session = Session()

src/j/o/JoshuaGoblin-HEAD/mediagoblin/db/util.py   JoshuaGoblin(Download)
 
from mediagoblin import mg_globals as mgg
from mediagoblin.db.base import Session
from mediagoblin.db.models import MediaEntry, Tag, MediaTag, Collection
from mediagoblin.gmg_commands.dbupdate import gather_database_data
 
    for dbdata in dbdatas:
        migration_manager = dbdata.make_migration_manager(Session())
        if migration_manager.database_current_migration is None or \
                migration_manager.migrations_to_run():

src/j/o/JoshuaGoblin-HEAD/mediagoblin/plugins/tagcloud/__init__.py   JoshuaGoblin(Download)
 
from mediagoblin.decorators import active_user_from_url
from mediagoblin.db.base import Session
from mediagoblin.db.models import User, MediaTag, MediaEntry, Tag
from mediagoblin.tools import pluginapi

src/j/o/JoshuaGoblin-HEAD/mediagoblin/plugins/dogma_lib/lib.py   JoshuaGoblin(Download)
from mediagoblin.user_pages.lib import add_media_to_collection
from mediagoblin.db.models import (Collection, CollectionItem, MediaTag, MediaEntry, Tag)
from mediagoblin.db.base import Session
from mediagoblin.plugins.dogma.models import (DogmaBandDB, DogmaAlbumDB, BandAlbumRelationship, BandMemberRelationship, DogmaMemberDB,
        DogmaKeywordDataDB, DogmaComposerDB, DogmaAuthorDB)

src/m/e/mediagoblin-0.6.1/mediagoblin/user_pages/lib.py   mediagoblin(Download)
from mediagoblin.tools.translate import pass_to_ugettext as _
from mediagoblin import mg_globals
from mediagoblin.db.base import Session
from mediagoblin.db.models import (CollectionItem, MediaReport, CommentReport,
                                  MediaComment, MediaEntry)

src/m/e/mediagoblin-0.6.1/mediagoblin/moderation/tools.py   mediagoblin(Download)
from mediagoblin import mg_globals
from mediagoblin.db.models import User, Privilege, UserBan
from mediagoblin.db.base import Session
from mediagoblin.tools.mail import send_email
from mediagoblin.tools.response import redirect

  1 | 2 | 3  Next