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

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

src/z/a/zamboni-HEAD/apps/files/tasks.py   zamboni(Download)
import logging
from django.conf import settings
from cache_nuggets.lib import Message
def extract_file(viewer, **kw):
    # This message is for end users so they'll see a nice error.
    msg = Message('file-viewer:%s' % viewer)
    # This flag is so that we can signal when the extraction is completed.
    flag = Message(viewer._extraction_cache_key())

src/z/a/zamboni-HEAD/mkt/files/views.py   zamboni(Download)
import commonware.log
from cache_nuggets.lib import Message, Token
from tower import ugettext as _

src/z/a/zamboni-HEAD/mkt/files/helpers.py   zamboni(Download)
import commonware.log
import jinja2
from cache_nuggets.lib import memoize, Message
from jingo import env, register
from tower import ugettext as _

src/z/a/zamboni-HEAD/mkt/files/tests/test_views.py   zamboni(Download)
import amo
import amo.tests
from cache_nuggets.lib import Message
from files.models import File
from mkt.files.helpers import DiffHelper, FileViewer
    def test_poll_failed(self):
        msg = Message('file-viewer:%s' % self.file_viewer)
        msg.save('I like cheese.')
        res = self.client.get(self.poll_url())
        eq_(res.status_code, 200)