comparison MoinMoin/util/interwiki.py @ 2657:080673c3e60a

Now nameless items can also be downloaded and removed unnecessary blank spaces in items/content.py
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Sun, 06 Jul 2014 09:25:31 +0530
parents 92a9c6ef1ec7
children
comparison
equal deleted inserted replaced
2656:c05ad337ac22 2657:080673c3e60a
105 path = local_url[i + 1:] 105 path = local_url[i + 1:]
106 url = wiki_base_url + path 106 url = wiki_base_url + path
107 return url 107 return url
108 108
109 109
110 def get_download_file_name(fqname):
111 """
112 returns the filename that is used for downloading items
113 """
114 if fqname.field == NAME_EXACT:
115 return fqname.value
116 else:
117 return '{0}-{1}'.format(fqname.field, fqname.value)
118
119
110 def _split_namespace(namespaces, url): 120 def _split_namespace(namespaces, url):
111 """ 121 """
112 Find the longest namespace in the set. 122 Find the longest namespace in the set.
113 the namespaces are separated by slashes (/). 123 the namespaces are separated by slashes (/).
114 Example: 124 Example: