Thread: [Cppcms-users] plugins for cppcms-blog
Brought to you by:
artyom-beilis
From: David E. <dav...@gm...> - 2011-08-11 17:17:47
|
I just compiled the new cppcms-blog (props on the perfectly working cmake files, i can never get cmake to do what i want) and was about to start making some changes to the code (I want the ability to have per user views, i.e. certain pages and entries are only visible to certain users, etc). It occurred to me that this might be better suited as some sort of plugin. So.. Do you think there would be benefit / interest in implementing some sort of plugin / dynamically loadable module framework for cppcms-blog? It would be very nice if we could make cppcms-blog of the same caliber as say, wordpress / drupal (from an extensiblity point of view, not from a bloat pov). thoughts? -elrom |
From: augustin <aug...@ov...> - 2011-08-12 03:32:47
|
Hello again, David, On Friday 12 August 2011 01:17:01 am David Elrom wrote: > So.. Do you think there would be benefit / interest in implementing some > sort of plugin / dynamically loadable module framework for cppcms-blog? See the cppcms roadmap on the wiki. Pluggable systems is planned for the next major release of cppcms (2.0?). However, the definitive, stable 1.0 release is not yet out. Blessings, Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom B. <art...@ya...> - 2011-08-12 15:15:49
|
> >I just compiled the new cppcms-blog (props on the perfectly > working cmake files, i can never get cmake to do what i want) > and was about to start making some changes to the code (I want > the ability to have per user views, i.e. certain pages and > entries are only visible to certain users, etc). > It occurred to me that this might be better suited as some sort of plugin. > As blogging system CppCMS's blog has very weak user management system. It may and should be improved. Currently I don't have much time and it is not the top priority right now, but if you wish to work on it I'd be glad to receive any help. > > So.. Do you think there would be benefit / interest > in implementing some sort of plugin / dynamically loadable > module framework for cppcms-blog? > Plug-in system could be nice but currently Cpp Blog misses many other essential features that should be in the core of the blogging system. > >It would be very nice if we could make cppcms-blog of the > same caliber as say, wordpress / drupal (from an > extensiblity point of view, not from a bloat pov). > Yeah it would be nice... Would you do it :-) ? Artyom |
From: David E. <dav...@gm...> - 2011-08-12 15:28:54
|
Im very much interested in contributing. I want to get an idea for what people want. User management and user centric features are something that I need and something people would probably want. On Aug 12, 2011 11:16 AM, "Artyom Beilis" <art...@ya...> wrote: > > >> >>I just compiled the new cppcms-blog (props on the perfectly > >> working cmake files, i can never get cmake to do what i want) >> and was about to start making some changes to the code (I want >> the ability to have per user views, i.e. certain pages and >> entries are only visible to certain users, etc). > >> It occurred to me that this might be better suited as some sort of plugin. >> > > As blogging system CppCMS's blog has very weak user management > system. It may and should be improved. > > > Currently I don't have much time and it is not the top > priority right now, but if you wish to work on it I'd be > glad to receive any help. > > >> >> So.. Do you think there would be benefit / interest >> in implementing some sort of plugin / dynamically loadable >> module framework for cppcms-blog? >> > > Plug-in system could be nice but currently Cpp Blog misses > many other essential features that should be in the core > of the blogging system. > > >> >>It would be very nice if we could make cppcms-blog of the >> same caliber as say, wordpress / drupal (from an >> extensiblity point of view, not from a bloat pov). >> > > Yeah it would be nice... Would you do it :-) ? > > > Artyom > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. > http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: David E. <dav...@gm...> - 2011-08-14 20:01:39
|
So initially I'm going to implement the following features: *user groups *many-to-many relation between users and groups Then an ACL schema needs to be designed. I'm not too sure about this one, I suppose some things of interest would be per category access control (read / write etc) where rights can be granted on a per user or per group basis. (Plus the distinction between submitting an article, and being able to change another user's article (i.e. be a mod)) One more "special" right we would need is admin. Your thoughts? -elrom On Fri, Aug 12, 2011 at 11:28 AM, David Elrom <dav...@gm...> wrote: > Im very much interested in contributing. I want to get an idea for what > people want. User management and user centric features are something that I > need and something people would probably want. > On Aug 12, 2011 11:16 AM, "Artyom Beilis" <art...@ya...> wrote: > > > > > >> > >>I just compiled the new cppcms-blog (props on the perfectly > > > >> working cmake files, i can never get cmake to do what i want) > >> and was about to start making some changes to the code (I want > >> the ability to have per user views, i.e. certain pages and > >> entries are only visible to certain users, etc). > > > >> It occurred to me that this might be better suited as some sort of > plugin. > >> > > > > As blogging system CppCMS's blog has very weak user management > > system. It may and should be improved. > > > > > > Currently I don't have much time and it is not the top > > priority right now, but if you wish to work on it I'd be > > glad to receive any help. > > > > > >> > >> So.. Do you think there would be benefit / interest > >> in implementing some sort of plugin / dynamically loadable > >> module framework for cppcms-blog? > >> > > > > Plug-in system could be nice but currently Cpp Blog misses > > many other essential features that should be in the core > > of the blogging system. > > > > > >> > >>It would be very nice if we could make cppcms-blog of the > >> same caliber as say, wordpress / drupal (from an > >> extensiblity point of view, not from a bloat pov). > >> > > > > Yeah it would be nice... Would you do it :-) ? > > > > > > Artyom > > > > > > > ------------------------------------------------------------------------------ > > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > > user administration capabilities and model configuration. Take > > the hassle out of deploying and managing Subversion and the > > tools developers use with it. > > http://p.sf.net/sfu/wandisco-dev2dev > > _______________________________________________ > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2011-08-15 07:50:17
|
Hi, I can suggest you to do following: Database Schema =============== - DB changes: 3 places mysql.sql, sqlite.sql and postgresql.sql - Add role DB column: role varchar(16) not null with default 'guest' - move DB version from 3 to 4. - Create an update script in the sql directory named sql/upgrade-3-to-4.sql Such that all roles set to 'admin' - Update DB version from 3 to 4 in apps/dbversion. - Add an automatic upgrade script similar bool upgrade_2_3(cppdb::session &sql) and update bool upgrade(std::string const ¤t_ver,cppdb::session &sql) Administration ============== I'd define 4 roles with permissions: - admin - add users, remove users, edit any posts, publish and unpublish any posts, edit blog options, edit categories, write, publish and un-publish pages - editor - edit any posts, publish and unpublish any posts, edit categories, write, publish and un-publish pages, add and remove guest users. - writer - edit and view his own posts, publish and unpublish hist own posts, write pages (but not publish them) - guest - edit his own unpublished posts, but without ability to publish, unpublish or edit published posts. Now add permission checks according to the role on all levels about what is displayed and what is allowed. New Administration Pages ======================== - Add a new page for users editing with an option to add, modify and delete users. - Add a page that allows a user to change his password. Would you take this on you? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ >From: David Elrom <dav...@gm...> >To: cpp...@li...; Artyom Beilis <art...@ya...> >Sent: Sunday, August 14, 2011 11:00 PM >Subject: Re: [Cppcms-users] plugins for cppcms-blog > > >So initially I'm going to implement the following features: >*user groups >*many-to-many relation between users and groups > >Then an ACL schema needs to be designed. I'm not too sure about this one, I suppose some things of interest would be per category access control (read / write etc) where rights can be granted on a per user or per group basis. (Plus the distinction between submitting an article, and being able to change another user's article (i.e. be a mod)) > > >One more "special" right we would need is admin. > > >Your thoughts? > > >-elrom > > >On Fri, Aug 12, 2011 at 11:28 AM, David Elrom <dav...@gm...> wrote: > >Im very much interested in contributing. I want to get an idea for what people want. User management and user centric features are something that I need and something people would probably want. >>On Aug 12, 2011 11:16 AM, "Artyom Beilis" <art...@ya...> wrote: >>> >>> >>>> >>>>I just compiled the new cppcms-blog (props on the perfectly >>> >>>> working cmake files, i can never get cmake to do what i want) >>>> and was about to start making some changes to the code (I want >>>> the ability to have per user views, i.e. certain pages and >>>> entries are only visible to certain users, etc). >>> >>>> It occurred to me that this might be better suited as some sort of plugin. >>>> >>> >>> As blogging system CppCMS's blog has very weak user management >>> system. It may and should be improved. >>> >>> >>> Currently I don't have much time and it is not the top >>> priority right now, but if you wish to work on it I'd be >>> glad to receive any help. >>> >>> >>>> >>>> So.. Do you think there would be benefit / interest >>>> in implementing some sort of plugin / dynamically loadable >>>> module framework for cppcms-blog? >>>> >>> >>> Plug-in system could be nice but currently Cpp Blog misses >>> many other essential features that should be in the core >>> of the blogging system. >>> >>> >>>> >>>>It would be very nice if we could make cppcms-blog of the >>>> same caliber as say, wordpress / drupal (from an >>>> extensiblity point of view, not from a bloat pov). >>>> >>> >>> Yeah it would be nice... Would you do it :-) ? >>> >>> >>> Artyom >>> >>> >>> ------------------------------------------------------------------------------ >>> Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >>> user administration capabilities and model configuration. Take >>> the hassle out of deploying and managing Subversion and the >>> tools developers use with it. >>> http://p.sf.net/sfu/wandisco-dev2dev >>> _______________________________________________ >>> Cppcms-users mailing list >>> Cpp...@li... >>> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > >------------------------------------------------------------------------------ >FREE DOWNLOAD - uberSVN with Social Coding for Subversion. >Subversion made easy with a complete admin console. Easy >to use, easy to manage, easy to install, easy to extend. >Get a Free download of the new open ALM Subversion platform now. >http://p.sf.net/sfu/wandisco-dev2dev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: David E. <dav...@gm...> - 2011-08-15 16:23:47
|
Sounds reasonable. Rather than maintain three sql files, I'm thinking about creating a "setup" page. After someone sets up the blog (i.e. chooses the db, etc) they can run the setup page and it will setup / populate the db. The "update" logic can be placed in this same page. Does that sound like it will work? Or do the databases differ too much? On Mon, Aug 15, 2011 at 3:50 AM, Artyom Beilis <art...@ya...> wrote: > Hi, > > I can suggest you to do following: > > Database Schema > =============== > > - DB changes: 3 places mysql.sql, sqlite.sql and postgresql.sql > > - Add role DB column: > > role varchar(16) not null with default 'guest' > > - move DB version from 3 to 4. > > - Create an update script in the sql directory named sql/upgrade-3-to-4.sql > > Such that all roles set to 'admin' > > - Update DB version from 3 to 4 in apps/dbversion. > - Add an automatic upgrade script similar > > bool upgrade_2_3(cppdb::session &sql) > > and update > > bool upgrade(std::string const ¤t_ver,cppdb::session &sql) > > > Administration > ============== > > I'd define 4 roles with permissions: > > - admin - add users, remove users, edit any posts, publish and unpublish > any posts, > edit blog options, edit categories, write, publish and un-publish > pages > - editor - edit any posts, publish and unpublish any posts, edit > categories, > write, publish and un-publish pages, add and remove guest users. > - writer - edit and view his own posts, publish and unpublish hist own > posts, write pages > (but not publish them) > - guest - edit his own unpublished posts, but without ability to publish, > unpublish > or edit published posts. > > Now add permission checks according to the role > on all levels about what is displayed and what is > allowed. > > New Administration Pages > ======================== > > - Add a new page for users editing with an option to add, modify > and delete users. > - Add a page that allows a user to change his password. > > Would you take this on you? > > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.sf.net/ > CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ > > > >________________________________ > >From: David Elrom <dav...@gm...> > >To: cpp...@li...; Artyom Beilis < > art...@ya...> > >Sent: Sunday, August 14, 2011 11:00 PM > >Subject: Re: [Cppcms-users] plugins for cppcms-blog > > > > > >So initially I'm going to implement the following features: > >*user groups > >*many-to-many relation between users and groups > > > >Then an ACL schema needs to be designed. I'm not too sure about this one, > I suppose some things of interest would be per category access control (read > / write etc) where rights can be granted on a per user or per group basis. > (Plus the distinction between submitting an article, and being able to > change another user's article (i.e. be a mod)) > > > > > >One more "special" right we would need is admin. > > > > > >Your thoughts? > > > > > >-elrom > > > > > >On Fri, Aug 12, 2011 at 11:28 AM, David Elrom <dav...@gm...> > wrote: > > > >Im very much interested in contributing. I want to get an idea for what > people want. User management and user centric features are something that I > need and something people would probably want. > >>On Aug 12, 2011 11:16 AM, "Artyom Beilis" <art...@ya...> wrote: > >>> > >>> > >>>> > >>>>I just compiled the new cppcms-blog (props on the perfectly > >>> > >>>> working cmake files, i can never get cmake to do what i want) > >>>> and was about to start making some changes to the code (I want > >>>> the ability to have per user views, i.e. certain pages and > >>>> entries are only visible to certain users, etc). > >>> > >>>> It occurred to me that this might be better suited as some sort of > plugin. > >>>> > >>> > >>> As blogging system CppCMS's blog has very weak user management > >>> system. It may and should be improved. > >>> > >>> > >>> Currently I don't have much time and it is not the top > >>> priority right now, but if you wish to work on it I'd be > >>> glad to receive any help. > >>> > >>> > >>>> > >>>> So.. Do you think there would be benefit / interest > >>>> in implementing some sort of plugin / dynamically loadable > >>>> module framework for cppcms-blog? > >>>> > >>> > >>> Plug-in system could be nice but currently Cpp Blog misses > >>> many other essential features that should be in the core > >>> of the blogging system. > >>> > >>> > >>>> > >>>>It would be very nice if we could make cppcms-blog of the > >>>> same caliber as say, wordpress / drupal (from an > >>>> extensiblity point of view, not from a bloat pov). > >>>> > >>> > >>> Yeah it would be nice... Would you do it :-) ? > >>> > >>> > >>> Artyom > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > >>> user administration capabilities and model configuration. Take > >>> the hassle out of deploying and managing Subversion and the > >>> tools developers use with it. > >>> http://p.sf.net/sfu/wandisco-dev2dev > >>> _______________________________________________ > >>> Cppcms-users mailing list > >>> Cpp...@li... > >>> https://lists.sourceforge.net/lists/listinfo/cppcms-users > >> > > > > >------------------------------------------------------------------------------ > >FREE DOWNLOAD - uberSVN with Social Coding for Subversion. > >Subversion made easy with a complete admin console. Easy > >to use, easy to manage, easy to install, easy to extend. > >Get a Free download of the new open ALM Subversion platform now. > >http://p.sf.net/sfu/wandisco-dev2dev > >_______________________________________________ > >Cppcms-users mailing list > >Cpp...@li... > >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > > > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2011-08-16 06:29:31
|
> >Sounds reasonable. Rather than maintain three sql files, I'm thinking about creating a "setup" page. After someone sets up the blog they can run the setup page and it will setup / populate the db. The "update" logic can be placed in this same page. > Actually there is a setup page but it assumes that DB already has a ready scheme. It is possible to do something like this as well. > (i.e. chooses the db, etc) DB (connection string) should be configured in config.js file Artyom |