equal
deleted
inserted
replaced
26 |
26 |
27 from google.appengine.api import urlfetch |
27 from google.appengine.api import urlfetch |
28 |
28 |
29 import feedparser |
29 import feedparser |
30 |
30 |
31 from soc.logic import path_linkname |
31 from soc.logic import path_link_name |
32 |
32 |
33 |
33 |
34 def isFeedURLValid(feed_url=None): |
34 def isFeedURLValid(feed_url=None): |
35 """Returns True if provided url is valid ATOM or RSS. |
35 """Returns True if provided url is valid ATOM or RSS. |
36 |
36 |
50 """Returns True if link_name is in a valid format. |
50 """Returns True if link_name is in a valid format. |
51 |
51 |
52 Args: |
52 Args: |
53 link_name: link name used in URLs for identification |
53 link_name: link name used in URLs for identification |
54 """ |
54 """ |
55 if path_linkname.LINKNAME_REGEX.match(link_name): |
55 if path_link_name.LINKNAME_REGEX.match(link_name): |
56 return True |
56 return True |
57 return False |
57 return False |