Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Metaroles(object):
- metaroles = []
- class BaseActionController(ActionController, Metaroles):
- """
- Базовый класс ActionController'а.
- В проекте наследоваться от него.
- Перекрыт ради определения в контроллере параметра metaroles
- """
- def __init__(self, url = '', name=None, metaroles=None):
- super(BaseActionController, self).__init__(self, url = '', name=None)
- if metaroles:
- self.metaroles.extend(metaroles)
Add Comment
Please, Sign In to add comment