Did I find the right examples for you? yes no

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

src/a/r/archweb-HEAD/packages/utils.py   archweb(Download)
from main.utils import (database_vendor,
        groupby_preserve_order, PackageStandin)
from .models import (PackageGroup, PackageRelation,
        License, Depend, Conflict, Provision, Replacement,
        SignoffSpecification, Signoff, fake_signoff_spec)

src/d/j/django-webmap-corpus-0.5/webmap/admin.py   django-webmap-corpus(Download)
# the geographic_admin folder must be on your python path
# for this import to work correctly
from models import Poi, Photo, PhotoAdminForm, Marker, Property, LegendAdminForm, Legend, Sector, Status, License, BaseLayer, OverlayLayer
 
USE_GOOGLE_TERRAIN_TILES = False

src/o/s/osm-tasking-manager2-HEAD/osmtm/views/project.py   osm-tasking-manager2(Download)
from pyramid.view import view_config
from pyramid.httpexceptions import HTTPFound
from pyramid.url import route_path
from pyramid.response import Response
from ..models import (

src/o/s/osm-tasking-manager2-HEAD/osmtm/scripts/initializedb.py   osm-tasking-manager2(Download)
)
 
from ..models import (
    DBSession,
    Area,
        DBSession.add(area)
 
        license1 = License()
        license1.name = 'NextView'
        license1.description = "This data is licensed for use by the US Government (USG) under the NextView (NV) license and copyrighted by Digital Globe or GeoEye. The NV license allows the USG to share the imagery and Literal Imagery Derived Products (LIDP) with entities outside the USG when that entity is working directly with the USG, for the USG, or in a manner that is directly beneficial to the USG. The party receiving the data can only use the imagery or LIDP for the original purpose or only as otherwise agreed to by the USG. The party receiving the data cannot share the imagery or LIDP with a third party without express permission from the USG. At no time should this imagery or LIDP be used for other than USG-related purposes and must not be used for commercial gain. The copyright information should be maintained at all times. Your acceptance of these license terms is implied by your use."  # noqa
        license1.plain_text = "In other words, you may only use NextView imagery linked from this site for digitizing OpenStreetMap data for humanitarian purposes."  # noqa
        DBSession.add(license1)
 
        license2 = License()

src/o/s/osm-tasking-manager2-HEAD/osmtm/views/license.py   osm-tasking-manager2(Download)
    HTTPUnauthorized
)
from ..models import (
    DBSession,
    License,
    if 'form.submitted' in request.params:
        if not license:
            license = License()
            DBSession.add(license)
            DBSession.flush()

src/z/a/zamboni-HEAD/apps/versions/admin.py   zamboni(Download)
from django.contrib import admin
 
from .models import License, Version