Feb 23, 2014

Обновление sacrud. Версия 0.1.1

../../../_images/sacrud_0_1_1.png

Что нового?

  • в расширении для pyramid параметр “sacrud_models” переименован в “sacrud.models”

  • “sacrud.models” теперь словарь, а не список:

    settings['sacrud.models'] = {
        'Company': [Company, User, EmployeeType],
        'Auth': [Group, GroupPermission, UserGroup,
        GroupResourcePermission, Resource, UserPermission,
        UserResourcePermission, ExternalIdentity],
        '': [Company]
    }
    
  • в словаре можно поделить модели на группы

  • тесты исправлены для Pyramid 1.5:

    Не рекомендуется, начиная с версии pyramid: 1.5

    Removed the ability to influence and query a pyramid.request.Request object as if it were a dictionary. Previously it was possible to use methods like __getitem__, get, items, and other dictlike methods to access values in the WSGI environment. This behavior had been deprecated since Pyramid 1.1. Use methods of request.environ (a real dictionary) instead.


Comments

comments powered by Disqus