Did I find the right examples for you? yes no

All Samples(20)  |  Call(12)  |  Derive(0)  |  Import(8)

src/l/o/localwiki-0.4.3/sapling/maps/views.py   localwiki(Download)
 
from widgets import InfoMap
from models import MapData
from forms import MapForm
from django.utils.html import escape
        except Page.DoesNotExist:
            page = Page(slug=slugify(page_slug))
        mapdata = MapData(page=page)
        return HttpResponseNotFound(
            direct_to_template(request, 'maps/mapdata_new.html',
        self.page = page
 
        mapdata = MapData(page=page)
        version = self.kwargs.get('version')
        date = self.kwargs.get('date')
        if mapdatas:
            return mapdatas[0]
        return MapData(page=page)
 
    def get_success_url(self):
        page.name = latest_page.name
 
        self.mapdata = MapData(page=page)
        return self.mapdata.versions.all()
 

src/l/o/localwiki-HEAD/localwiki/maps/views.py   localwiki(Download)
 
from widgets import InfoMap
from models import MapData
from forms import MapForm
from django.utils.html import escape
        except Page.DoesNotExist:
            page = Page(slug=slugify(page_slug))
        mapdata = MapData(page=page)
        return HttpResponseNotFound(
            render(request, 'maps/mapdata_new.html',
        self.page = page
 
        mapdata = MapData(page=page)
        version = self.kwargs.get('version')
        date = self.kwargs.get('date')
        if mapdatas:
            return mapdatas[0]
        return MapData(page=page)
 
    def get_success_url(self):
        page.name = latest_page.name
 
        self.mapdata = MapData(page=page)
        return self.mapdata.versions.all()
 

src/l/o/localwiki-0.4.3/sapling/maps/feeds.py   localwiki(Download)
from recentchanges.feeds import skip_ignored_change_types
 
from models import MapData
 
 
        page.name = latest_page.name
 
        obj = MapData(page=page)
        obj.page = page
        obj.title = _('Map for "%s"') % obj.page.name

src/l/o/localwiki-HEAD/localwiki/maps/feeds.py   localwiki(Download)
from recentchanges.feeds import skip_ignored_change_types
 
from models import MapData
 
 
        page.name = latest_page.name
 
        obj = MapData(page=page)
        obj.page = page
        obj.title = _('Map for "%s"') % obj.page.name

src/l/o/localwiki-0.4.3/sapling/maps/forms.py   localwiki(Download)
from versionutils.merging.forms import MergeMixin
from versionutils.versioning.forms import CommentMixin
from models import MapData
from widgets import MediaMixin
 

src/l/o/localwiki-0.4.3/sapling/maps/api.py   localwiki(Download)
from tastypie.contrib.gis import resources as gis_resources
 
from models import MapData
import pages.api  # Scoped import to prevent ImportError.
from sapling.api import api

src/l/o/localwiki-HEAD/localwiki/maps/forms.py   localwiki(Download)
from versionutils.merging.forms import MergeMixin
from versionutils.versioning.forms import CommentMixin
from models import MapData
from widgets import MediaMixin
 

src/l/o/localwiki-HEAD/localwiki/maps/api.py   localwiki(Download)
from tastypie.contrib.gis import resources as gis_resources
 
from models import MapData
import pages.api  # Scoped import to prevent ImportError.
from main.api import api