Document Actions

Gecocoder Script

by Admin last modified 2006-12-27 10:42

The geocoder script is a piece of code inside the ifDirectory Product whose purpose is to try to geocode all not geocoded nor located business it find.

The script is named dgcd, located in ifDirectory/extras folder. The recommended way of using it is with a cronjob, where the command line should look like the following:

python dgdc zope_instance_url config_file log_file

  • zope_instance_url: is the url of the zope instance to use (i.e. http://dev.ifpeople.net:9080/). All businesses in all directories on that zope instance will be revised.
  • config_file: path to a configuration file. This file should have the user name and password of an existent manager user of zope instance. The format is as follows:
    http_user = username
    http_passwd = userpass
    
  • log_file: path to a file where to log status and work done

Note: if you are going to run this script using a cron job please be sure all paths are absolutes (including the path for python: put something like /usr/bin/python). Also, please check logs to see if everything is fine.


Copyright © 2004-2007

130 Boulevard NE, # 6 - Atlanta, GA 30312

Phone: 678-608-3408, E-mail: info@ifpeople.net

Personal tools