Guest User

Untitled

a guest
Jul 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. class Metaroles(object):
  2.     metaroles = []
  3.  
  4. class BaseActionController(ActionController, Metaroles):
  5.     """
  6.    Базовый класс ActionController'а.
  7.    В проекте наследоваться от него.
  8.    Перекрыт ради определения в контроллере параметра metaroles
  9.    """
  10.  
  11.     def __init__(self, url = '', name=None, metaroles=None):
  12.         super(BaseActionController, self).__init__(self, url = '', name=None)
  13.         if metaroles:
  14.             self.metaroles.extend(metaroles)
Add Comment
Please, Sign In to add comment