From f05dad707c9103320b31c802fe82ea37f89d0a2b Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 13 Jul 2015 21:05:19 +0500 Subject: [PATCH] Hello 0.0.3 version! --- pyramid_pages/models.py | 28 ++++++++++++---------------- setup.py | 2 +- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/pyramid_pages/models.py b/pyramid_pages/models.py index 3378d26..b9cc6c2 100644 --- a/pyramid_pages/models.py +++ b/pyramid_pages/models.py @@ -9,15 +9,20 @@ """ Models for page. """ -from sqlalchemy import (Boolean, Column, ForeignKey, Integer, String, - UnicodeText) -from sqlalchemy.ext.declarative import declared_attr +from sqlalchemy import ( + Column, + String, + Boolean, + Integer, + ForeignKey, + UnicodeText +) +from sacrud.common import ClassProperty +from sacrud.exttype import SlugType, ChoiceType from sqlalchemy.orm import foreign, relationship -from sqlalchemy.orm.session import Session - -from sacrud.common import TableProperty, ClassProperty -from sacrud.exttype import ChoiceType, SlugType from sqlalchemy_mptt import BaseNestedSets +from sqlalchemy.orm.session import Session +from sqlalchemy.ext.declarative import declared_attr from .common import Menu @@ -102,15 +107,6 @@ def redirect(cls): class SacrudOptions(object): - @TableProperty - def sacrud_css_class(cls): - col = cls.columns - return { - 'tinymce': [col.description], - 'description': [col.description], - 'name': [col.name] - } - @ClassProperty def sacrud_detail_col(cls): options = [ diff --git a/setup.py b/setup.py index 58ba13a..beef961 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ def read(name): setup( name='pyramid_pages', - version='0.0.3.dev1', + version='0.0.3', url='http://github.com/ITCase/pyramid_pages/', author='Svintsov Dmitry', author_email='sacrud@uralbash.ru',