comparison MoinMoin/themes/__init__.py @ 2273:a8e67947f130

Updated admin views to support fqnames.
author Ashutosh Singla <ashu1461@gmail.com>
date Sat, 14 Sep 2013 04:24:03 +0530
parents 6dd5af01d54d
children 49bc6f85f918
comparison
equal deleted inserted replaced
2272:b1c0a532235d 2273:a8e67947f130
21 logging = log.getLogger(__name__) 21 logging = log.getLogger(__name__)
22 22
23 from MoinMoin.i18n import _, L_, N_ 23 from MoinMoin.i18n import _, L_, N_
24 from MoinMoin import wikiutil, user 24 from MoinMoin import wikiutil, user
25 from MoinMoin.constants.keys import USERID, ADDRESS, HOSTNAME, REVID, ITEMID, NAME_EXACT 25 from MoinMoin.constants.keys import USERID, ADDRESS, HOSTNAME, REVID, ITEMID, NAME_EXACT
26 from MoinMoin.constants.namespaces import NAMESPACE_DEFAULT 26 from MoinMoin.constants.namespaces import NAMESPACE_DEFAULT, NAMESPACE_USERPROFILES
27 from MoinMoin.search import SearchForm 27 from MoinMoin.search import SearchForm
28 from MoinMoin.util.interwiki import split_interwiki, getInterwikiHome, is_local_wiki, is_known_wiki, url_for_item, CompositeName, split_fqname 28 from MoinMoin.util.interwiki import split_interwiki, getInterwikiHome, is_local_wiki, is_known_wiki, url_for_item, CompositeName, split_fqname
29 from MoinMoin.util.crypto import cache_key 29 from MoinMoin.util.crypto import cache_key
30 from MoinMoin.util.forms import make_generator 30 from MoinMoin.util.forms import make_generator
31 from MoinMoin.util.clock import timed 31 from MoinMoin.util.clock import timed
161 if is_local_wiki(wikiname): 161 if is_local_wiki(wikiname):
162 exists = self.storage.has_item(itemname) 162 exists = self.storage.has_item(itemname)
163 else: 163 else:
164 # We cannot check if wiki pages exists in remote wikis 164 # We cannot check if wiki pages exists in remote wikis
165 exists = True 165 exists = True
166 wiki_href = url_for_item(itemname, wiki_name=wikiname) 166 wiki_href = url_for_item(itemname, wiki_name=wikiname,namespace=NAMESPACE_USERPROFILES)
167 return wiki_href, display_name, title, exists 167 return wiki_href, display_name, title, exists
168 168
169 def split_navilink(self, text): 169 def split_navilink(self, text):
170 """ 170 """
171 Split navibar links into pagename, link to page 171 Split navibar links into pagename, link to page