Did I find the right examples for you? yes no

All Samples(25)  |  Call(8)  |  Derive(0)  |  Import(17)

src/g/a/Gather-HEAD/gather/topic/forms.py   Gather(Download)
from ghdiff import diff
from gather.node.models import Node
from .models import Topic, Reply, History
 
 
    def save(self, topic):
        if self.title.data != topic.title:
            title = self.title.data
            history = History(
                diff_content="将标题从 %s 修改为 %s" % (topic.title, title),
            node = self.node.data
            history = History(
                diff_content="从 %s 移动到 %s" % (topic.node.name, node.name),
                topic=topic,
                author=g.user
            content = self.content.data
            history = History(
                diff_content=diff(topic.content, content, css=False),
                topic=topic,
                author=g.user
    def save(self, reply):
        if self.content.data != reply.content:
            content = self.content.data
            history = History(
                diff_content=diff(reply.content, content, css=False),

src/p/y/pyramid_saaudittrail-0.3/pyramid_saaudittrail/__init__.py   pyramid_saaudittrail(Download)
from sqlalchemy.orm.session import SessionExtension
from models import History, Transaction
from sqlalchemy import func
from sqlalchemy.orm.attributes import NO_VALUE
 
            if data or action in ('delete', 'add'):
                transaction = self.get_transaction(session)
                history = History(transaction.id, obj, action,
                                  class_path, data)
                session.add(history)

src/j/u/jukebox-0.4.1/jukebox/jukebox_core/api.py   jukebox(Download)
from signal import SIGABRT
from django.contrib.auth.models import User
from models import Song, Artist, Album, Genre, Queue, Favourite, History, Player
 
 
    def addToHistory(self, song_instance, user_list):
        history_instance = History(
            Song=song_instance
        )
        history_instance.save()

src/j/u/jukebox-HEAD/jukebox/jukebox_core/api.py   jukebox(Download)
from signal import SIGABRT
from django.contrib.auth.models import User
from models import Song, Artist, Album, Genre, Queue, Favourite, History, Player
 
 
    def addToHistory(self, song_instance, user_list):
        history_instance = History(
            Song=song_instance
        )
        history_instance.save()

src/m/a/mayan-HEAD/apps/history/api.py   mayan(Download)
from django.db.utils import DatabaseError
 
from .models import HistoryType, History
from .runtime_data import history_types_dict
 
def create_history(history_type_dict, source_object=None, data=None):
    history_type = get_object_or_404(HistoryType, namespace=history_type_dict['namespace'], name=history_type_dict['name'])
    new_history = History(history_type=history_type)
    if source_object:
        new_history.content_object = source_object

src/j/u/jukebox-0.4.1/jukebox/jukebox_core/admin.py   jukebox(Download)
# -*- coding: UTF-8 -*-
 
from models import Artist, Genre, Album, Song, Queue, History, Favourite
from django.contrib import admin
 

src/j/u/jukebox-HEAD/jukebox/jukebox_core/admin.py   jukebox(Download)
# -*- coding: UTF-8 -*-
 
from models import Artist, Genre, Album, Song, Queue, History, Favourite
from django.contrib import admin
 

src/m/a/mayan-HEAD/apps/history/views.py   mayan(Download)
from acls.models import AccessEntry
 
from .models import History, HistoryType
from .forms import HistoryDetailForm
from .permissions import PERMISSION_HISTORY_VIEW

src/s/v/Sveetchies-1.8.9.2/Sveetchies/django/mailings/interface.py   Sveetchies(Download)
from models import RECEIVE_PERMISSION_KEY
from models import Template as MailTemplate
from models import History as MailHistory
 
# TODO: à déplacer dans le __init__ avec des ``foo = getattr(settings, NAME, DEFAULT)``

src/s/v/Sveetchies-1.8.9.2/Sveetchies/django/mailings/admin.py   Sveetchies(Download)
from django.contrib import admin
 
from models import Template, History
 
class TemplateAdmin(admin.ModelAdmin):

  1 | 2  Next