Did I find the right examples for you? yes no

All Samples(7)  |  Call(3)  |  Derive(0)  |  Import(4)

src/e/a/easy-transifex-HEAD/src/transifex/transifex/actionlog/models.py   easy-transifex(Download)
from transifex.txcommon.log import logger
try:
    from datastores import TxRedisMapper, ConnectionError
    USE_REDIS = True
except ImportError, e:
    }
    try:
        r = TxRedisMapper()
        r.lpush(key, data=data)
        r.ltrim(key, 0, 11)

src/t/r/transifex-HEAD/transifex/projects/models.py   transifex(Download)
from transifex.txcommon.log import log_model, logger
from transifex.languages.models import Language
from datastores import TxRedisMapper, redis_exception_handler
from .signals import project_created, project_deleted, \
        project_outsourced_changed

src/e/a/easy-transifex-HEAD/src/transifex/transifex/addons/datastores/tests/redis_ds.py   easy-transifex(Download)
# -*- coding: utf-8 -*-
 
from django.test import TestCase
from datastores import TxRedisMapper
from transifex.txcommon.log import logger
    def setUp(self):
        logger.critical("This will delete everything in db=1 i n redis.")
        self.r = TxRedisMapper(db=1)
 
    def tearDown(self):

src/t/r/transifex-HEAD/transifex/addons/datastores/tests/redis_ds.py   transifex(Download)
# -*- coding: utf-8 -*-
 
from django.test import TestCase
from datastores import TxRedisMapper
from transifex.txcommon.log import logger
    def setUp(self):
        logger.critical("This will delete everything in db=1 i n redis.")
        self.r = TxRedisMapper(db=1)
 
    def tearDown(self):