community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1787212 - /comdev/nearby_people/nearby/foaf.py
Date Thu, 16 Mar 2017 15:51:57 GMT
Author: nick
Date: Thu Mar 16 15:51:57 2017
New Revision: 1787212

URL: http://svn.apache.org/viewvc?rev=1787212&view=rev
Log:
Ignore the special calendar entry, no need to warn for it

Modified:
    comdev/nearby_people/nearby/foaf.py

Modified: comdev/nearby_people/nearby/foaf.py
URL: http://svn.apache.org/viewvc/comdev/nearby_people/nearby/foaf.py?rev=1787212&r1=1787211&r2=1787212&view=diff
==============================================================================
--- comdev/nearby_people/nearby/foaf.py (original)
+++ comdev/nearby_people/nearby/foaf.py Thu Mar 16 15:51:57 2017
@@ -24,11 +24,13 @@ import datetime
 import geo_helper
 import sys,os
 import urllib
+import re
 
 NS_RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns"
 NS_GEO = "http://www.w3.org/2003/01/geo/wgs84_pos#"
 NS_FOAF = "http://xmlns.com/foaf/0.1/"
 NS_DOAP = "http://usefulinc.com/ns/doap#"
+NS_ICAL = "http://www.w3.org/2002/12/cal/ical#"
 NS_PM = "http://www.web-semantics.org/ns/pm#"
 NS_DC = "http://purl.org/dc/elements/1.1/"
 
@@ -124,7 +126,7 @@ class FOAF(object):
         projects = []
         depiction = None
         weblogs = []
-            
+
         try:
            foaf = parse(data)
         except Exception, e:
@@ -239,6 +241,9 @@ class FOAF(object):
                  (set(("lat","long")) <= set(missing) and len(missing) == 2):
                 # Only missing lat and long, but no warning requested
                 pass
+            elif filename == "_calendar.rdf":
+                # Special dummy entry, safe to ignore
+                pass
             else:
                 sys.stderr.write("Skipping %s due to missing %s\n" % (filename,missing))
 



Mime
View raw message