[OSM-dev] disputed areas

Frederik Ramm frederik at remote.org
Thu Feb 14 20:47:29 GMT 2008


Hi,

> > Do we know if he's using Potlatch or JOSM or something else? If
> > Potlatch, do we have the ability to redirect him to an "Your account has
> > been disabled because..." page when he tries to log in?
> 
> If, as has been suggested, he's an "anonymous" Greek Cypriot, he's  
> using JOSM. Potlatch doesn't allow anonymous users to edit.

BTW, has there been any feedback on the issue after you made the
switch, Richard? 

I was thinking of doing a once-per-session client-side check in JOSM
and disallowing uploads for non-public users. That way we'd force the
majority of users to go public, and still leave a backdoor open for
those that don't want to (they can get the JOSM source and remove the
check, or commit updates directly).

This would require a little change to user.rb so that JOSM can find
out whether the user is public or not:

Index: user.rb
===================================================================
--- user.rb     (revision 6876)
+++ user.rb     (working copy)
@@ -64,6 +64,7 @@
     el1 = XML::Node.new 'user'
     el1['display_name'] = self.display_name.to_s
     el1['account_created'] = self.creation_time.xmlschema
+    el1['public'] = self.data_public
     if self.home_lat and self.home_lon
       home = XML::Node.new 'home'
       home['lat'] = self.home_lat.to_s

Thoughts?

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00.09' E008°23.33'





More information about the dev mailing list