Coder Social home page Coder Social logo

uralbash / pyramid_pages Goto Github PK

View Code? Open in Web Editor NEW
12.0 5.0 3.0 1.97 MB

Provides a collections of tree pages to your Pyramid application.

Home Page: http://pyramid-pages.readthedocs.io/

License: MIT License

Shell 0.75% Makefile 0.15% Python 51.22% CSS 19.90% JavaScript 17.19% HTML 10.79%

pyramid_pages's Introduction

Build Status Coverage Status

pyramid_pages

pyramid_pages provides a collections of pages to your Pyramid application. This is very similar to django.contrib.flatpages but with a tree structure and traversal algorithm in URL dispatch.

See documentation http://pyramid-pages.readthedocs.io

pyramid_pages - example of website pages tree

Support and Development

To report bugs, use the issue tracker or waffle board.

We welcome any contribution: suggestions, ideas, commits with new futures, bug fixes, refactoring, docs, tests, translations etc

If you have question, contact me [email protected] or IRC channel #sacrud

License

The project is licensed under the MIT license.

pyramid_pages's People

Contributors

changesomecode avatar movie4 avatar mr-africa avatar timgates42 avatar uralbash avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pyramid_pages's Issues

Example fail loading fixtures in Windows

Loading example fixtures fail in Windows because native cp1252 codification is used instead of UTF-8.

I solved it using encoding parameter in open() function.
Change in file line 131:
`class Fixtures(object):

def __init__(self, session):
    self.session = session

def add(self, model, fixtures):
    here = os.path.dirname(os.path.realpath(__file__))
    file = open(os.path.join(here, fixtures), encoding='utf-8')
    fixtures = json.loads(file.read())
    for fixture in fixtures:
        self.session.add(model(**fixture))
        self.session.flush()
    transaction.commit()`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.