Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/i/n/inventory-HEAD/systems/views.py   inventory(Download)
    if 'value' in request.POST:
        value = request.POST['value'].strip()
    kv = models.KeyValue(obj=system,key=key,value=value)
    print "Key is %s: Value is %s." % (key, value)
    kv.save();

src/m/o/mozilla_inventory-HEAD/systems/views.py   mozilla_inventory(Download)
    if 'value' in request.POST:
        value = request.POST['value'].strip()
    kv = models.KeyValue(system=system,key=key,value=value)
    print "Key is %s: Value is %s." % (key, value)
    kv.save();

src/i/n/inventory-HEAD/truth/views.py   inventory(Download)
def create_key_value(request, id):
    truth = models.Truth.objects.get(id=id)
    kv = models.KeyValue(truth=truth)
    kv.save();
    key_value_store = models.KeyValue.objects.filter(truth=truth)

src/m/o/mozilla_inventory-HEAD/truth/views.py   mozilla_inventory(Download)
def create_key_value(request, id):
    truth = models.Truth.objects.get(id=id)
    kv = models.KeyValue(truth=truth)
    kv.save();
    key_value_store = models.KeyValue.objects.filter(truth=truth)

src/m/o/mozilla_inventory-HEAD/truth/tests.py   mozilla_inventory(Download)
Replace these with more appropriate tests for your application.
"""
from models import Truth, KeyValue
from django.test import TestCase
from django.test.client import Client

src/i/n/inventory-HEAD/truth/tests.py   inventory(Download)
Replace these with more appropriate tests for your application.
"""
from models import Truth, KeyValue
from django.test import TestCase
from django.test.client import Client