[okfn-help] [okfn-discuss] Weaving History (Microfacts): http://weavinghistory.org/

John Bywater john.bywater at appropriatesoftware.net
Tue Apr 28 17:19:31 BST 2009


Rufus Pollock wrote:
> 2009/4/28 Jonathan Gray <jonathan.gray at okfn.org>:
>> Glad to see we're nearly ready for a first release with this!
>>
>> Currently I get:
>>
>>  "The Google Maps API key used on this web site was registered for a
>> different web site. You can generate a new key for this web site at
>> http://code.google.com/apis/maps/."
> 
> Fixed. (I hope). though microfacts.org will now be broken.
> 
>> Presumably as this was originally rolled out on microfacts domain?
> 
> You conjecture right. Anyone know how to load a different api key for
> different domains ...

Just change this line to make it depend upon the HTTP request host:
http://knowledgeforge.net/microfacts/trac/browser/trunk/microfacts/controllers/thread.py?rev=347#L71

Use the request host as a key to a dictionary of API keys. Integrate
with config file according to taste. :-)

J.





More information about the okfn-help mailing list