We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
global name 'function' is not defined /Users/bhr/.virtualenvs/web/lib/python2.7/site-packages/plugs/wiki/views.py in _wiki_view, line 389
if wiki: #check read permission self._check_permission('read', wiki, page=wiki) #处理阅读次数 key = '__wikivisited__:%s:%d' % (request.remote_addr, wiki.id) cache = function('get_cache')() #<-----This line! v = cache.get(key, None) if not v: self.model.filter(self.model.c.id==int(wiki.id)).update(hits=self.model.c.hits+1) cache.set(key, 1, settings.get_var('WIKI/WIKI_VISITED_TIMEOUT')) rev = int(request.GET.get('rev', 0)) rev_time = None
应该是functions.get_cache()吧?
functions.get_cache()
The text was updated successfully, but these errors were encountered:
用git中的最新版本。
Sorry, something went wrong.
No branches or pull requests
global name 'function' is not defined
/Users/bhr/.virtualenvs/web/lib/python2.7/site-packages/plugs/wiki/views.py in _wiki_view, line 389
应该是
functions.get_cache()
吧?The text was updated successfully, but these errors were encountered: