Did I find the right examples for you? yes no

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

src/o/h/oh-mainline-HEAD/vendor/packages/django-reversion/src/reversion/middleware.py   oh-mainline(Download)
    def process_request(self, request):
        """Starts a new revision."""
        reversion.revision.start()
        if request.user.is_authenticated():
            reversion.revision.user = request.user

src/b/e/Bendakai-HEAD/reversion/middleware.py   Bendakai(Download)
    def process_request(self, request):
        """Starts a new revision."""
        reversion.revision.start()
        if request.user.is_authenticated():
            reversion.revision.user = request.user

src/q/u/qualitio-HEAD/qualitio/history/__init__.py   qualitio(Download)
    def _log(self, message):
        if message:
            revision.start()
            revision.user = self.user
            revision.comment = "%s." % message