Did I find the right examples for you? yes no

All Samples(50)  |  Call(10)  |  Derive(0)  |  Import(40)

src/f/o/folivora-HEAD/folivora/tasks.py   folivora(Download)
from distutils.version import LooseVersion
 
from .models import (SyncState, Package, PackageVersion,
    ProjectDependency, Log, Project)
from .utils.pypi import CheeseShop
    for project in affected_projects:
        # Add log entry for new package release
        log = Log(project_id=project, **kwargs)
        log_entries.append(log)
    Log.objects.bulk_create(log_entries)
            tz = timezone.utc
            since = str(timezone.make_naive(pv.release_date, tz))
            log_entries.append(Log(type='project_dependency',
                                   action='update_available',
                                   project=project, package=package,

src/k/e/kenny-loggings-0.1.3/loggings/logger.py   kenny-loggings(Download)
from django.core import serializers
from django.db.models import Model
 
from .constants import ACTION_CREATE, ACTION_DELETE, ACTION_UPDATE
from .models import Log, LogExtra
    def create(self):
        log = Log(
            action=self.action,
            app_name=self.current_obj._meta.app_label,
            model_name=self.current_obj._meta.object_name,

src/d/j/django-abakus-monitoring-0.8/monitoring/log.py   django-abakus-monitoring(Download)
from django.conf import settings
from subprocess import Popen, PIPE
from models import Log
 
 
 
 
        log = Log(level=record.levelname, subject=subject, msg=message, git=git)
        log.save()
 

src/b/i/bitcoin-arbitrage-ui-HEAD/history/__init__.py   bitcoin-arbitrage-ui(Download)
import json, logging, threading
from app import db
from .models import Log, TradeChain, Trade
from websocket import create_connection, WebSocketConnectionClosedException
 
def record_log_websocket(msg):
    db.session.add(Log(message = msg))
    db.session.commit()
 
 

src/d/j/django-rforum-0.0.24/rforum/views.py   django-rforum(Download)
    def get(self, request, *args, **kwargs):
        topic = get_object_or_404(mymodels.Topic, slug=self.kwargs['topicslug'])
        topic.status=0
        topic.save()
        log = mymodels.Log(user=request.user)

src/s/t/stopforumspam-1.4.1/stopforumspam/middleware.py   stopforumspam(Download)
        if cache_entries.count() > 0:
            if sfs_settings.LOG_SPAM:
                log = models.Log(message = "Spam received from %s" % remote_ip)
                log.save()
 

src/b/c/Bcfg2-1.3.4/src/lib/Bcfg2/Server/Hostbase/hostbase/admin.py   Bcfg2(Download)
from django.contrib import admin
 
from models import Host, Interface, IP, MX, Name, CName, Nameserver, ZoneAddress, Zone, Log, ZoneLog
 
admin.site.register(Host)

src/b/c/bcfg2-HEAD/src/lib/Bcfg2/Server/Hostbase/hostbase/admin.py   bcfg2(Download)
from django.contrib import admin
 
from models import Host, Interface, IP, MX, Name, CName, Nameserver, ZoneAddress, Zone, Log, ZoneLog
 
admin.site.register(Host)

src/t/r/tracebin-HEAD/server/tracebin_server/traces/fixture_gen.py   tracebin(Download)
from textwrap import dedent
 
from fixture_generator import fixture_generator
 
from .models import (Log, RuntimeEnviroment, TimelineEvent, StatCounter,

src/b/c/bcfg2-old-HEAD/src/lib/Server/Hostbase/hostbase/admin.py   bcfg2-old(Download)
from django.contrib import admin
 
from models import Host, Interface, IP, MX, Name, CName, Nameserver, ZoneAddress, Zone, Log, ZoneLog
 
admin.site.register(Host)

  1 | 2 | 3 | 4 | 5  Next