lee_crites has asked for the wisdom of the Perl Monks concerning the following question:
Howdy, y'all;
I am working through my first CGI::Application module. I kind of like what I am seeing, and would like to continue on with it. I guess I am not married to it, so other options are available, but at this moment, it is what I am working with.
I was going to write a plugin of my own that took a MySQL table name and view name, and present the user with a CRUD based page. I was going to use as defaults (if the view did not already exist) the info I could extract from the MySQL DESCRIBE command.
I could then build a CGI::App module that used a specific view (the views info kept in another table), and build as many module/view combinations as I needed.
To try to make that make more sense, say there is a user_info table. Each "view" defines which fields can be seen, and which can be edited (the rest are invisible). The "user view" allows the user to update certain fields, see certain fields but not update them, the rest are invisible to them. The sysadmin could edit and view some fields. The HR folks could view/update certain fields, etc. I know -- this is a dumb example, but it does describe what I am wanting to do with the views.
My goal is one plugin that can automagically pull all of this off.
While casting about for ideas and/or an existing plugin, I found the BREAD plugin named above. I decided to try it out, and it failed. I spent a few hours tinkering about trying to get it to work. I just kept running into undocumented requirements.
In my research into this plugin, I noted it does not seem to have had any real work done on it in 8 years. So I am guessing it is no longer valid.
So my questions:
I cannot imagine I am the first one to think of this idea and/or want to pull this kind of thing off, so I'm betting someone reading this has already invented the wheel, and is happily using it. Any help/pointers/etc would be greatly appreciated.
Thanks muchly!
Update: The environment I am using is:
Lee Crites
lee@xpeerant.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Replacement for/working version of CGI::App::Plugin::BREAD ???
by lee_crites (Scribe) on Jun 18, 2013 at 16:29 UTC | |
by poj (Abbot) on Jun 18, 2013 at 16:44 UTC | |
by lee_crites (Scribe) on Jun 18, 2013 at 17:21 UTC | |
by Corion (Patriarch) on Jun 18, 2013 at 18:11 UTC | |
by poj (Abbot) on Jun 18, 2013 at 17:39 UTC | |
by lee_crites (Scribe) on Jun 18, 2013 at 18:33 UTC |