File tree Expand file tree Collapse file tree 6 files changed +2
-12
lines changed
plone/formwidget/geolocation Expand file tree Collapse file tree 6 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 11from zope .i18nmessageid import MessageFactory
22
3-
43PACKAGE_NAME = "plone.formwidget.geolocation"
54
65_ = MessageFactory (PACKAGE_NAME )
76
87from plone .formwidget .geolocation .field import GeolocationField # noqa
98from plone .formwidget .geolocation .geolocation import Geolocation # noqa
109
11-
1210__all__ = ("Geolocation" , "GeolocationField" )
Original file line number Diff line number Diff line change 66
77import unittest
88
9-
109SUPERMODEL_XML = """<field name="dummy" type="plone.formwidget.geolocation.GeolocationField">
1110 <schema>plone.formwidget.geolocation.interfaces.IGeolocation</schema>
1211 <title>Geolocation</title>
Original file line number Diff line number Diff line change 2020import zope .browserpage
2121import zope .component
2222
23-
2423zcml_wrapper = """<configure
2524 xmlns='http://namespaces.zope.org/zope'
2625 xmlns:browser='http://namespaces.zope.org/browser'
@@ -173,18 +172,15 @@ def test_popup(self):
173172 self .assertEqual (popup .strip (), "<h3>Title</h3><p>Description</p>" )
174173
175174 template_path = os .path .join (os .path .dirname (__file__ ), "test_popup.pt" )
176- zcml = (
177- """
175+ zcml = """
178176 <browser:page
179177 name="geolocation-geojson-popup"
180178 for="plone.formwidget.geolocation.tests.test_widget.IDummyContent"
181179 class="plone.formwidget.geolocation.popup.PopupView"
182180 template="%s"
183181 permission="zope.Public"
184182 />
185- """
186- % template_path
187- )
183+ """ % template_path
188184 xmlconfig (StringIO (zcml_wrapper % zcml ))
189185 widget .update ()
190186 json_result = json .loads (widget .data_geojson )
Original file line number Diff line number Diff line change 66
77import logging
88
9-
109logger = logging .getLogger ("plone.formwidget.geolocation upgrade" )
1110PROFILE_ID = "profile-plone.formwidget.geolocation:default"
1211
Original file line number Diff line number Diff line change 66from zope .schema .vocabulary import SimpleTerm
77from zope .schema .vocabulary import SimpleVocabulary
88
9-
109default_map_layer = "OpenStreetMap.Mapnik"
1110default_map_layers = [
1211 "OpenStreetMap.Mapnik" ,
Original file line number Diff line number Diff line change 33
44import os
55
6-
76version = "3.0.8.dev0"
87
98
You can’t perform that action at this time.
0 commit comments