__init__.py
changeset 2790 968108e16066
parent 2705 30bcdbd92820
child 2792 135580d15d42
equal deleted inserted replaced
2789:39712da6f397 2790:968108e16066
   312     try:
   312     try:
   313         return obj.target
   313         return obj.target
   314     except AttributeError:
   314     except AttributeError:
   315         return neg_role(obj.role)
   315         return neg_role(obj.role)
   316 
   316 
   317 def underline_title(title, car='-'):
       
   318     return title+'\n'+(car*len(title))
       
   319 
       
   320 
   317 
   321 class CubicWebEventManager(object):
   318 class CubicWebEventManager(object):
   322     """simple event / callback manager.
   319     """simple event / callback manager.
   323 
   320 
   324     Typical usage to register a callback::
   321     Typical usage to register a callback::