Web2Py Pages module (basic CMS)

503 views
Skip to first unread message

Ruud Schroen

unread,
Nov 19, 2013, 3:23:42 AM11/19/13
to web...@googlegroups.com
Hi,

I'm here to share a great module with you. It's called web2py-pages, created by Formatics which I'm currently working for. You can download it here: web2py-pages

Pages module for web2py gives you a good starting point for any type of CMS. It features a tree of pages with sluggified (URL friendly) names. Pages can consist out of items. 

Current page items are:
  • Markmin text
  • HTML text
  • Plain text
  • Image (with optional Fancybox)
  • Imageslider
  • Photoalbum (Google Picasa)
  • FAQ Address
  • File upload
  • Links
  • and a couple of pre defined forms
It also has neat features like:
  • CKeditor
  • plugin_tagging
  • Admin Menu
  • Easy way to create a test page with all items
  • Page copy functionality
  • Functionality to change the order of items displayed
  • Two columns (left align, right align, full align)
  • Nivoslider
  • Fancybox
Current available languages:
  • Dutch (NL)
  • English (EN)

Michele Comitini

unread,
Nov 19, 2013, 6:44:50 AM11/19/13
to web...@googlegroups.com
+1!

Will you make a demo on pythonanywhere.com/try-web2py or GAE, for the lazy ones of us, that would like to look, but not touch? ;-)

mic


2013/11/19 Ruud Schroen <ru...@formatics.nl>

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Tito Garrido

unread,
Nov 19, 2013, 11:57:18 AM11/19/13
to web...@googlegroups.com
How to install it? I have tried to clone it on my applications directory but I am having trouble.
--

Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______

Ruud Schroen

unread,
Nov 19, 2013, 1:06:20 PM11/19/13
to web...@googlegroups.com

It should work by just copying the content (static, models, controllers, views) to your app.

Remember you need PIL and gdata for it to work. It's quite easy to install both of them. Just google it.

Op 19 nov. 2013 17:58 schreef "Tito Garrido" <titog...@gmail.com>:
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/9c0xOpsZlac/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

Ruud Schroen

unread,
Nov 19, 2013, 6:06:47 PM11/19/13
to web...@googlegroups.com
Also i forgot to mention:

The app contains a file called copy_to_app.sh which you can use to copy the needed content to a standard welcome app.

Inside this file you need to change you will find two locations of apps:
  • The web2py pages app
  • A standard welcome app
You need to change those lines to match the locations to this and your app, then run the file in a terminal like this:

./copy_to_app.sh

Rene Dohmen

unread,
Nov 19, 2013, 10:17:55 PM11/19/13
to web...@googlegroups.com
Hi List,

Ruud, thanks for sharing. :)
I'll build a w2p plugin from it at the end of this week.

We are still testing it; and need to upgrade fancy box to fancybox2.

Kind Regards,

Rene

villas

unread,
Dec 16, 2013, 8:16:19 AM12/16/13
to web...@googlegroups.com
Hi Rene / Ruud

I have been intending to look at this,  but decided it would be easier to wait for the plugin,  if one was being made.  Is it still intended to make a plugin?  

Best wishes,  D

Ruud Schroen

unread,
Dec 20, 2013, 3:34:41 AM12/20/13
to
We are still working on a plugin.
But we are facing a problem regarding reserved keywords which prevents us from creating a plugin.

db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])
check_reserved=['all'] needs to be removed in order for it to work right now, the problem is you can't overrule it somewhere.
If anyone knows a solution that will be greatly appreciated, and we can finally make a plugin for it.

Rene Dohmen

unread,
Feb 27, 2014, 3:07:21 PM2/27/14
to web...@googlegroups.com
This was solved a while ago :)

villas

unread,
Feb 27, 2014, 7:34:50 PM2/27/14
to web...@googlegroups.com
Hi Rene
Is there a plugin now? 
BTW the whole idea of using check_reserved is so you can avoid using reserved names with new projects.  Finding a way to avoid that so you can use 'page' negates the purpose.
Thanks for your effort to release this work and it will be very nice to see it in action!
Best wishes,  D

Rene Dohmen

unread,
May 6, 2014, 1:24:15 PM5/6/14
to web...@googlegroups.com
Hi Villas,

page is a restricted word in postgres and some other DB's I think. We started development in web2py 1.99.1 with sqlite.
it's a valid sqlite tableName. The problem for us is that we can't rename it very easing without breaking a lot of apps.
The problem that we had with building a web2py plugin is that it's not so nice to overwrite db.py; and that has strict sql keyword checks in there by default.

I will create a w2p file from it tomorrow. For now you can copy the git tree over an app; and it should work (when you have the needed deps)
Online references: http://www.formatics.nl (it's 95% page module)

Kind Regards

Rene

villas

unread,
May 6, 2014, 4:02:13 PM5/6/14
to web...@googlegroups.com
I cannot look at it this week,  but many thanks for updating me.  

Álvaro J. Iradier

unread,
May 7, 2014, 5:26:09 AM5/7/14
to web...@googlegroups.com
Back in 2011 I proposed using quoted identifiers for databases supporting it:


I think the check_reserved option is a valid fix, but databases like PostgreSql that allow using any word as identifier by quoting it should use this instead of checking for reserved words. It is a pain to hit this kind of issue when migrating from one database to another. Could this be rethinked again?

Thanks.

Michele Comitini

unread,
May 7, 2014, 11:19:09 AM5/7/14
to web...@googlegroups.com
You can test it in recent DAL. It's still experimental, but well
supported in PostgreSQL. Just add the following options when
instantiating a new DAL object:

ignore_field_case=False, entity_quoting=True



mic
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Rene Dohmen

unread,
May 8, 2014, 11:59:36 AM5/8/14
to web...@googlegroups.com
Hi Again,

Just updated the web2py-pages master branch with 2 .w2p files.
And started a new branch (develop) which contains a complete welcome app with the page plugin already working that can be used as an appliance to speed up testing and developing with it.

Kind Regards
Rene
Reply all
Reply to author
Forward
0 new messages