Changeset 247
- Timestamp:
- 09/08/06 17:14:16 (2 years ago)
- Files:
-
- PleiadesGeocoder/trunk/Extensions/Install.py (modified) (1 diff)
- PleiadesGeocoder/trunk/README.txt (modified) (1 diff)
- PleiadesGeocoder/trunk/skins/PleiadesGeocoder/georss.xml.pt (modified) (1 diff)
- PleiadesGeocoder/trunk/skins/PleiadesGeocoder/kml.xml.pt (modified) (1 diff)
- PleiadesGeocoder/trunk/tests/FolderGeoViews.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
PleiadesGeocoder/trunk/Extensions/Install.py
r213 r247 1 # TODO: Pleiades copyright header 1 # =========================================================================== 2 # Copyright (C) 2006 Ancient World Mapping Center 3 # 4 # This program is free software; you can redistribute it and/or modify 5 # it under the terms of the GNU General Public License as published by 6 # the Free Software Foundation; either version 2 of the License, or 7 # (at your option) any later version. 8 # 9 # This program is distributed in the hope that it will be useful, 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # GNU General Public License for more details. 13 # 14 # You should have received a copy of the GNU General Public License along 15 # with this program; if not, write to the Free Software Foundation, Inc., 16 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17 # 18 # About Pleiades 19 # -------------- 20 # 21 # Pleiades is an international research network and associated web portal and 22 # content management system devoted to the study of ancient geography. 23 # 24 # See http://icon.stoa.org/trac/pleiades/wiki. 25 # 26 # Funding for the creation of this software was provided by a grant from the 27 # U.S. National Endowment for the Humanities (http://www.neh.gov). 28 # =========================================================================== 2 29 3 30 from Products.CMFCore.DirectoryView import registerDirectory, addDirectoryViews PleiadesGeocoder/trunk/README.txt
r227 r247 5 5 text locations such as "Fort Collins, Colorado" to spatial coordinates. Other 6 6 geocoding backends could be supported in the future. 7 8 See http://icon.stoa.org/trac/pleiades/wiki/PleiadesGeocoder for more 9 information. 7 10 8 11 Contact: Sean Gillies <sgillies@frii.com> PleiadesGeocoder/trunk/skins/PleiadesGeocoder/georss.xml.pt
r212 r247 6 6 xmlns:georss="http://www.georss.org/georss" 7 7 xmlns:tal="http://xml.zope.org/namespaces/tal" 8 tal:define="infos context/@@geo info/forRSS;8 tal:define="infos context/@@geo/forRSS; 9 9 furl context/absolute_url" 10 10 > PleiadesGeocoder/trunk/skins/PleiadesGeocoder/kml.xml.pt
r212 r247 3 3 xmlns="http://earth.google.com/kml/2.1" 4 4 xmlns:tal="http://xml.zope.org/namespaces/tal" 5 tal:define="infos context/@@geo info/forKML;5 tal:define="infos context/@@geo/forKML; 6 6 furl context/absolute_url" 7 7 > PleiadesGeocoder/trunk/tests/FolderGeoViews.txt
r204 r247 11 11 >>> import Products 12 12 >>> zcml.load_config('configure.zcml', package=Products.PleiadesGeocoder) 13 >>> from Products.PloneTestCase import PloneTestCase 14 >>> PloneTestCase.installProduct('PleiadesGeocoder') 13 15 14 16 >>> from Products.PleiadesGeocoder.interfaces import IGeoItemSimple … … 55 57 Test the GeoRSS view 56 58 59 >>> browser.open("%s/@@geo/forRSS" % folder_url) 60 >>> browser.contents 61 "[{'srs': 'EPSG:4326', 'geometryType': 'point', 'description': 'No description', 'spatialCoordinates': '40.585609 -105.083733', 'url': 'http://nohost/plone/Members/test_user_1_/document', 'geom_element': '<georss:point>40.585609 -105.083733</georss:point>', 'title': 'document', 'id': 'document'}]" 62 63 >>> browser.open("%s/@@geo/forKML" % folder_url) 64 >>> browser.contents 65 '[{\'srs\': \'EPSG:4326\', \'desc_body\': \'<![CDATA[<p>No description</p><p><a href="http://nohost/plone/Members/test_user_1_/document">document</a></p>]]>\', \'geometryType\': \'point\', \'description\': \'No description\', \'spatialCoordinates\': \'40.585609 -105.083733 0.0\', \'url\': \'http://nohost/plone/Members/test_user_1_/document\', \'geom_element\': \'<Point><coordinates>-105.083733,40.585609,0.000000</coordinates></Point>\', \'title\': \'document\', \'id\': \'document\'}]' 66 57 67 >>> browser.open("%s/georss.xml" % folder_url) 58 68 >>> browser.contents
