Did I find the right examples for you? yes no

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

src/d/j/django-swingers-1.1.1/swingers/geo/widgets.py   django-swingers(Download)
 
from swingers.utils import shorthash
from swingers.utils.auth import retrieve_access_token
 
 
        if service:
            self.service = service
        self.url, self.access_token = retrieve_access_token(request, self.service)
        super(GoldenEyeWidget, self).__init__(*args, **kwargs)
 
def GoldenEyeViewer(request, features=None, geom_field="shape",
                    instance="cc/instances/public", html_info=None):
    serviceurl, access_token = retrieve_access_token(request, "goldeneye")
    uniqueid = shorthash(html_info)
    options = GEDEFAULTS