comparison MoinMoin/themes/__init__.py @ 859:95d1033b7808 storage-ng

fix show/meta view
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 25 Sep 2011 00:41:38 +0200
parents a4ec2c6f0bb7
children 9a7889c04a25
comparison
equal deleted inserted replaced
858:3183a202d916 859:95d1033b7808
269 url = url or url_for('frontend.login') 269 url = url or url_for('frontend.login')
270 return url 270 return url
271 271
272 272
273 def get_editor_info(rev, external=False): 273 def get_editor_info(rev, external=False):
274 addr = rev.get(ADDRESS) 274 addr = rev.meta.get(ADDRESS)
275 hostname = rev.get(HOSTNAME) 275 hostname = rev.meta.get(HOSTNAME)
276 text = _('anonymous') # link text 276 text = _('anonymous') # link text
277 title = '' # link title 277 title = '' # link title
278 css = 'editor' # link/span css class 278 css = 'editor' # link/span css class
279 name = None # author name 279 name = None # author name
280 uri = None # author homepage uri 280 uri = None # author homepage uri
288 else: 288 else:
289 name = text = addr 289 name = text = addr
290 title = '[%s]' % (addr, ) 290 title = '[%s]' % (addr, )
291 css = 'editor ip' 291 css = 'editor ip'
292 292
293 userid = rev.get(USERID) 293 userid = rev.meta.get(USERID)
294 if userid: 294 if userid:
295 u = user.User(userid) 295 u = user.User(userid)
296 name = u.name 296 name = u.name
297 text = name 297 text = name
298 aliasname = u.aliasname 298 aliasname = u.aliasname