This module offers a Panels display renderer plugin based on Panels IPE, which allows privileged users to lock entire regions on a panel using the plugin, so non-administrative users able to use Panels IPE can't modify the region marked as locked - add or remove panes, neither change the blocks arrangement.
It differs from Panels locks because it locks a single pane to a region, but this new plugin allows to lock an entire region instead.
Project page
https://www.drupal.org/sandbox/zekivazquez/2554555
Git clone command
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/zekivazquez/2554555.git panels_lock_region
Automated review on Pareview.sh
http://pareview.sh/pareview/httpgitdrupalorgsandboxzekivazquez2554555git
Comments
Comment #2
PA robot commentedFixed the git clone URL in the issue summary for non-maintainer users.
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
gaja_daran commentedHi Zequi,
I am unable to install your module due to the dependancy module.
dependencies[] = panels_ipeNo release history was found for the requested project (Panels_ipe).
Comment #4
gaja_daran commentedComment #5
rabbitlair commentedHi gaja_daran, thanks for your review.
I just added Panels as a dependency, so submodule Panels IPE gets downloaded when enabling panels_lock_region.
Comment #6
rabbitlair commentedComment #7
rabbitlair commentedComment #8
rabbitlair commentedComment #9
azeiteiro commentedAutomated Review
Fix errors in automated review
Manual Review
It is recommended to get the basic understanding of the module to new users.
Comment #10
rabbitlair commentedThanks for the review, azeiteiro. Following your advice, I just implemented hook_help() with a little description of module purpose.
Unfortunately, I can't fix the three erros on the automated review, as those three functions are method overrides, and it's mandatory for them to have the same name as the original method.
Comment #11
sheldonkreger commentedHi Zequi
It looks like CodeSniffer is complaining about not using lowerCamel format in those method names. I understand that it may be out of your control since you're overriding other methods. Where do those methods originate, and is there a reason they aren't using the format CodeSniffer expects?
Comment #12
rabbitlair commentedHi sheldonkreger,
Thanks for your comment. Those methods are from Panels module, the
panels_renderer_ipeclass implements a render plugin in which I am based to generate the region locks. To be precise, that plugin is implemented on filepanels_ipe/plugins/display_renderers/panels_renderer_ipe.class.phpfrom Panels module, and the exact methods are on lines 93 and 176.Additionally, the
ajax_change_lockfunction needs to have that name based on the way the Panels renderer plugin base class associates the AJAX calls to a function. Take a look to fileplugins/display_renderers/panels_renderer_editor.class.php, from line 519 onwards.Thanks.
Comment #13
sheldonkreger commentedUsing those method names is the correct approach even though it's not fitting the ideal coding standards. Marking as RTBC.
Comment #14
rabbitlair commentedThank you, sheldonkreger.
Comment #15
mpdonadioWill take a look at this today or tomorrow.
Comment #16
mpdonadioAutomated Review
Review of the 7.x-1.x branch (commit e0b254c):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
You can ignore the errors; they are false positive because of the way ctools wants things named.
Manual Review
Not seeing anything.
PanelsLockRegionSelectiveIpe::render_region(), you can use drupal_attributes() instead of imploding yourself.
Can you add the CSS in PanelsLockRegionSelectiveIpe::render_region() instead of through the module .info?
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Not seeing anything. Assigning to heddn for a second look if he has time. If he doesn't in the next few days, I will approve this.
Comment #17
rabbitlair commentedThanks for the review, mpdonadio. I just modified the code, so the CSS is added on render_region(), and now I use drupal_attributes, so no implosion comes :)
Comment #18
heddndrupal_alter('panels_lock_region_region_links', $vars['links'], $context);Postponing on #3. If the answer is that full rights are available, then +1 on the RTBC.
Comment #19
rabbitlair commentedHi heddn,
Thanks for your review. About your comments:
Thank you!
Comment #20
rabbitlair commentedComment #21
heddnThanks for your contribution, Zequi! The only blocker was 18.3, so let's promote you. You can continue to improve the code as you see fit.
Re IPE naming: If the module is named panels lock region, I'd assume the IPE would have a similar name. Not too important though.
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #22
rabbitlair commentedThank you very much, heddn!