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

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

src/f/e/feincms-HEAD/feincms/management/commands/medialibrary_orphans.py   feincms(Download)
    def handle_noargs(self, **options):
        mediafiles = list(MediaFile.objects.values_list('file', flat=True))
 
        # TODO make this smarter, and take MEDIA_ROOT into account
        for base, dirs, files in os.walk('media/medialibrary'):

src/f/e/FeinCMS-1.9.3/feincms/management/commands/medialibrary_orphans.py   FeinCMS(Download)
    def handle_noargs(self, **options):
        mediafiles = list(MediaFile.objects.values_list('file', flat=True))
 
        # TODO make this smarter, and take MEDIA_ROOT into account
        for base, dirs, files in os.walk('media/medialibrary'):

src/f/e/feincms-HEAD/tests/testapp/tests/test_page.py   feincms(Download)
            '100x100.png" alt="" />')
 
        stats = list(MediaFile.objects.values_list('type', flat=True))
        self.assertEqual(stats.count('image'), 12)
        self.assertEqual(stats.count('other'), 0)