[OSM-dev] New Program: Changemonger

Derick Rethans osm at derickrethans.nl
Tue Aug 21 12:58:58 BST 2012


On Tue, 21 Aug 2012, Derick Rethans wrote:

> On Tue, 21 Aug 2012, Serge Wroclawski wrote:
> 
> > On Tue, Aug 21, 2012 at 5:20 AM, Derick Rethans <osm at derickrethans.nl> wrote:
> > > On Mon, 20 Aug 2012, Paweł Paprota wrote:
> > >
> > >> We've been e-mailing about this project in private in the context of
> > >> the activity stream stuff that's slowly being developed for osm.org -
> > >> I think it would be perfect to have these descriptions in the stream,
> > >> certainly better than "user X entered changeset XYZ" or anything else
> > >> I can come up on my own during activity stream development.
> > >
> > > I'd be interested in using this too through an API
> > 
> > That's why I envision most of Changemonger's users will use it through
> > the RESTful API.
> > 
> > I'd really like to know if there's some functionality that you feel
> > that API should provide that it doesn't right now.
> > 
> > Or maybe you're saying I should make a public instance for you to test 
> > against?
> 
> I'd like to have a look at how to do that yes; if that means setting up 
> a public instance to test against, then yes, I'd love that. Mostly, 
> youre readme says that we "deploy it only against an API server that you 
> either control or have a contractual relationship to use.", which is 
> virtually nobody :-) I guess I am just asking how to use it?

I got it running myself, but I am seeing this error:

derick at whisky:~/install/changemonger $ python app-test.py

(app-test is just a small wrapper so that I don't need to use a web 
frontend:

def show_changeset(id):
    cset = helpers.get_changeset_or_404(id)
    sentence = changemonger.changeset_sentence(cset)
    return jsonify(sentence=sentence)

if __name__ == '__main__':
    show_changeset(12562711)

)

http://api.openstreetmap.org/api/0.6/changeset/12562711
Traceback (most recent call last):
  File "app-test.py", line 37, in <module>
    show_changeset(12562711)
  File "app-test.py", line 33, in show_changeset
    sentence = changemonger.changeset_sentence(cset)
  File "/home/derick/install/changemonger/changemonger.py", line 99, in 
changeset_sentence
    english_list =  elements.grouped_to_english(sorted_features)
  File "/home/derick/install/changemonger/elements.py", line 95, in 
grouped_to_english
    feature.plural))
AttributeError: 'dict' object has no attribute 'plural'

- not knowing python too much, I've no idea what this means...

cheers,
Derick

-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug


More information about the dev mailing list