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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/m/e/mediadrop-HEAD/mediadrop/model/media.py   mediadrop(Download)
from sqlalchemy.types import Boolean, DateTime, Integer, Unicode, UnicodeText
 
from mediadrop.lib.auth import Resource
from mediadrop.lib.compat import any
from mediadrop.lib.filetypes import AUDIO, AUDIO_DESC, VIDEO, guess_mimetype
    def resource(self):
        return Resource('media', self.id, media=self)
 
    def increment_views(self):
        """Increment the number of views in the database.