selectors.py
branchstable
changeset 5608 f9ab62103ad4
parent 5502 c342531032a1
child 5615 cfa9a776d99a
equal deleted inserted replaced
5607:38d43dc5ee57 5608:f9ab62103ad4
   109 
   109 
   110 .. sourcecode:: python
   110 .. sourcecode:: python
   111 
   111 
   112     class UserLink(component.Component):
   112     class UserLink(component.Component):
   113 	'''if the user is the anonymous user, build a link to login else a link
   113 	'''if the user is the anonymous user, build a link to login else a link
   114 	to the connected user object with a loggout link
   114 	to the connected user object with a logout link
   115 	'''
   115 	'''
   116 	__regid__ = 'loggeduserlink'
   116 	__regid__ = 'loggeduserlink'
   117 
   117 
   118 	def call(self):
   118 	def call(self):
   119 	    if self._cw.session.anonymous_session:
   119 	    if self._cw.session.anonymous_session: