pyrocms/pyrocms — pull request #896 by dmyers2004 (2011-11-17 22:15:32+00:00)
Title: 2.1/feature/new pages module

As per my talk with Phil.

I refactored a few things in the Pages Module and some additional pyrocache to the page chunks.
I also made the form validate via ajax on the back end this made handling the dynamics of it easier instead of trying to validate and rebuild a "half built" form over and over.

I decided to make the pages/layouts a module instead of adding it directly to the pages module. I figure that way I can add a lot more features (import / export page chunks, layouts, css, js, meta data, settings) without slowing down the pages modules!

Once done somebody could email a zip file of "pages". It could then be manually uploaded to the server and processed with in a few seconds. This could add 30-40 pages in a few seconds!

This module could also be used to allow "power users" the ability to edit files with there fav. text editing program. (ie coda, esspresso, komodo, text wrangler, bbedit, textmate, etc...) click "update" in the page io module which would push the changes directly to the database ready for viewing. Of course the export would create a complete text based folder structure to allow easy importing.

Of course that module will be based off the model changes I need to make in the pull request.

NOTE: no database tables were changed and all of the class methods are still present and functioning. I only cleaned and added additional methods and refactored a few to use the model and not make direct db calls.

I look forward to your input and I will correct any bugs.

Now off to the pages io module...