├── .bowerrc ├── .rstcheck.cfg ├── example ├── .gitignore ├── requirements.txt ├── static │ ├── img │ │ └── vendor │ │ │ ├── fotorama.png │ │ │ └── fotorama@2x.png │ ├── js │ │ ├── main.js │ │ ├── popup.js │ │ └── gallery.js │ └── css │ │ ├── vendor │ │ └── fotorama.css │ │ └── __main.css ├── templates │ ├── news │ │ └── index.jinja2 │ ├── pyramid_pages │ │ ├── index.jinja2 │ │ └── base.jinja2 │ └── gallery │ │ └── index.jinja2 ├── development.ini ├── README.rst ├── setup.py ├── fixtures │ ├── photos.json │ ├── news.json │ ├── gallery.json │ ├── pages.json │ └── country.json └── pyramid_pages_example.py ├── requirements-test.txt ├── requirements.txt ├── pyramid_pages ├── static │ ├── css │ │ ├── gallery │ │ │ ├── gallery.css │ │ │ └── gallery-list.css │ │ ├── page │ │ │ ├── page-title.css │ │ │ ├── page-note.css │ │ │ └── page.css │ │ ├── main.css │ │ ├── popup │ │ │ ├── content-gallery │ │ │ │ └── content-gallery.css │ │ │ └── popup.css │ │ ├── wrapper │ │ │ └── wrapper.css │ │ ├── main-menu │ │ │ ├── main-menu-title.css │ │ │ ├── main-menu_type_vertical.css │ │ │ ├── main-menu_type_right.css │ │ │ └── main-menu.css │ │ ├── nav │ │ │ └── nav.css │ │ ├── content │ │ │ └── content.css │ │ └── vendor │ │ │ ├── main.css │ │ │ ├── html5-boilerplate │ │ │ └── main.css │ │ │ ├── normalize.css │ │ │ └── font-awesome.min.css │ ├── favicon.ico │ ├── img │ │ └── logo.png │ ├── fonts │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ ├── fontawesome-webfont.woff2 │ │ └── font-awesome │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ ├── fontawesome-webfont.woff │ │ │ └── fontawesome-webfont.woff2 │ └── js │ │ └── main.js ├── security.py ├── templates │ └── pyramid_pages │ │ ├── title.jinja2 │ │ ├── meta.jinja2 │ │ ├── menu │ │ ├── flat.jinja2 │ │ └── mptt.jinja2 │ │ ├── breadcrumbs.jinja2 │ │ └── index.jinja2 ├── __init__.py ├── assets.py ├── tests │ ├── integration_test.py │ ├── __init__.py │ └── unit_tests.py ├── views.py ├── models.py ├── routes.py └── resources.py ├── docs ├── _static │ └── img │ │ ├── example.png │ │ └── sacrud_pyramid_pages.png ├── install.rst ├── tutorial.rst ├── api.rst ├── index.rst ├── conf.py ├── configuration.rst ├── Makefile └── make.bat ├── Makefile ├── setup.cfg ├── MANIFEST.in ├── .gitignore ├── test.sh ├── bower.json ├── LICENSE ├── .travis.yml ├── README.rst ├── setup.py ├── package.json └── gulpfile.js /.bowerrc: -------------------------------------------------------------------------------- 1 | { "strict-ssl": false, "https-proxy": "" } -------------------------------------------------------------------------------- /.rstcheck.cfg: -------------------------------------------------------------------------------- 1 | [directives] 2 | ignore=automodule 3 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | *.sqlite-* 3 | *.pid 4 | -------------------------------------------------------------------------------- /requirements-test.txt: -------------------------------------------------------------------------------- 1 | nose 2 | coverage 3 | webtest 4 | zope.sqlalchemy 5 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | pyramid 2 | sacrud>=0.2.5 3 | saexttype 4 | sqlalchemy_mptt>=0.1.8 5 | -------------------------------------------------------------------------------- /example/requirements.txt: -------------------------------------------------------------------------------- 1 | pyramid 2 | transaction 3 | zope.sqlalchemy 4 | sqlalchemy_mptt 5 | pyramid_jinja2 6 | -------------------------------------------------------------------------------- /pyramid_pages/static/css/gallery/gallery.css: -------------------------------------------------------------------------------- 1 | .gallery 2 | { 3 | width: 100%; 4 | padding: 1em 0 0 0; 5 | } -------------------------------------------------------------------------------- /docs/_static/img/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/docs/_static/img/example.png -------------------------------------------------------------------------------- /pyramid_pages/security.py: -------------------------------------------------------------------------------- 1 | HOME_PAGE = 'pyramid_pages_home_page_view' 2 | PREFIX_PAGE = 'pyramid_pages_prefix_page_view' 3 | -------------------------------------------------------------------------------- /pyramid_pages/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/pyramid_pages/static/favicon.ico -------------------------------------------------------------------------------- /pyramid_pages/static/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/pyramid_pages/static/img/logo.png -------------------------------------------------------------------------------- /example/static/img/vendor/fotorama.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/example/static/img/vendor/fotorama.png -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | all: test 2 | 3 | test: 4 | nosetests --with-coverage --cover-package pyramid_pages --cover-erase --with-doctest --nocapture 5 | -------------------------------------------------------------------------------- /docs/_static/img/sacrud_pyramid_pages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/docs/_static/img/sacrud_pyramid_pages.png -------------------------------------------------------------------------------- /example/static/img/vendor/fotorama@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/example/static/img/vendor/fotorama@2x.png -------------------------------------------------------------------------------- /pyramid_pages/static/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/pyramid_pages/static/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /pyramid_pages/static/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/pyramid_pages/static/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /pyramid_pages/static/css/page/page-title.css: -------------------------------------------------------------------------------- 1 | .page-title 2 | { 3 | font: 1.8em Arial, Helvetica, sans-serif; 4 | color: #000; 5 | padding: 0 0 0.5em 0; 6 | } -------------------------------------------------------------------------------- /pyramid_pages/static/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/pyramid_pages/static/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /pyramid_pages/static/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/pyramid_pages/static/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /pyramid_pages/static/css/main.css: -------------------------------------------------------------------------------- 1 | body, html 2 | { 3 | height: 100%; 4 | min-height: 100%; 5 | } 6 | 7 | .hoverclass2 8 | { 9 | border: solid 5px lime; 10 | } -------------------------------------------------------------------------------- /example/templates/news/index.jinja2: -------------------------------------------------------------------------------- 1 | {% extends 'pyramid_pages/base.jinja2' %} 2 | 3 | {% block content %} 4 | {{ page.date }} 5 | {{ super() }} 6 | {% endblock %} 7 | -------------------------------------------------------------------------------- /pyramid_pages/static/fonts/font-awesome/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/pyramid_pages/static/fonts/font-awesome/fontawesome-webfont.eot -------------------------------------------------------------------------------- /pyramid_pages/static/fonts/font-awesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/pyramid_pages/static/fonts/font-awesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /pyramid_pages/static/fonts/font-awesome/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/pyramid_pages/static/fonts/font-awesome/fontawesome-webfont.woff -------------------------------------------------------------------------------- /pyramid_pages/static/fonts/font-awesome/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uralbash/pyramid_pages/HEAD/pyramid_pages/static/fonts/font-awesome/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /example/static/js/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (typeof $ === 'undefined') { require('jquery'); } 4 | 5 | var fotorama = require('./vendor/fotorama.js'), 6 | gallery = require('./gallery.js').Gallery(); -------------------------------------------------------------------------------- /pyramid_pages/templates/pyramid_pages/title.jinja2: -------------------------------------------------------------------------------- 1 | {% if page %} 2 | {% if page.seo_title %} 3 | {{ page.seo_title }} 4 | {% else %} 5 | {{ page.name }} 6 | {% endif %} 7 | {% endif %} -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [flake8] 2 | exclude = pyramid_pages/tests/* 3 | 4 | [nosetests] 5 | detailed-errors=1 6 | with-coverage=1 7 | cover-package=pyramid_pages 8 | cover-erase=1 9 | with-doctest=1 10 | verbosity=1 11 | -------------------------------------------------------------------------------- /example/development.ini: -------------------------------------------------------------------------------- 1 | [app:main] 2 | use = egg:pyramid_pages_example 3 | pyramid.reload_templates = true 4 | 5 | index_view = True 6 | 7 | [server:main] 8 | use = egg:pyramid#wsgiref 9 | host = 127.0.0.1 10 | port = 6543 11 | -------------------------------------------------------------------------------- /example/templates/pyramid_pages/index.jinja2: -------------------------------------------------------------------------------- 1 | {% extends 'pyramid_pages/base.jinja2' %} 2 | 3 | {% block content %} 4 |
26 |
27 |