The Flexpaper module provides the formatter for File field which is used for
showing pdf files using Devaldi FlexPaper pdf reader (http://flexpaper.devaldi.com).
Project page: https://drupal.org/sandbox/feolius/2038119
Git: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/feolius/2038119.git flexpaper
Reviews of other projects
https://drupal.org/node/2035383#comment-7635047
https://drupal.org/node/2041597#comment-7644277
https://drupal.org/node/2041517#comment-7644289
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxfeolius2038119git
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 #2
feolius commentedAll errors was fixed. 3 warnings is still there. As for first warning, it is not possible to use 'values' instead of 'input'. Other 2 warnings seems pointless to be fixed.
Comment #3
pandaski commentedIs a most needed module since my current project is handling with a lot of pdf publications. Happy to see the future release and contribute it.
Not sure hook_uninstall() for the variable "path_to_pdf2swf" and "path_to_pdf2json" is necessary or not since they are in system_settings_form.
Comment #4
pandaski commentedSuggestion:
flexpaper.install from line 14, add the libraries module check.
Background:
This can avoid the drush error when using Drush pm-enable flexpaper
If the libraries is not installed, the above command can start the download but the libraries module is not enabled.
The error message are:
Fatal error: Call to undefined function libraries_get_libraries()
Drush command terminated abnormally due to an unrecoverable error.
The following codes are just like fuse. :)
Comment #5
feolius commentedThanks for review. You gave me the reasons to think:) Will try to fix it ASAP.
Comment #6
feolius commentedI took into account your notices, but it seems to me that this is mostly drush problem, not mine. Anyway, I added check if libraries module was enabled or not. It helps.
Thanks!
Comment #7
pandaski commented@feolius you are right, it is not belong to issue but drush problem. There is no problem in web mode.
Another suggestion line 9 flexpaper-container.tpl.php
Wrap the text in t() function
<?php print t('File is downloading...'); ?>Anyway, nice work!
Comment #8
feolius commentedYou are right. Added t().
Thanks! very appreciate your help.
Comment #8.0
feolius commentedAdded one review
Comment #8.1
feolius commentedAdded review to another project.
Comment #8.2
feolius commentedAdded another one review for the project
Comment #9
LarsEliasNielsen commentedflexpaper.module, line 28:
Use
$form_state['values']['my_field']instead of directly using$form_state['input'].flexpaper.module, line 29, 46 and 53:
All user defined variables should start with the module name (eg.
flexpaper_VARIABLE) to avoid collisions.Beside from that, everything looks great. It's nice to see a well documented readme file.
Keep up the good work.
Comment #10
feolius commentedHi!
Thanks for response. I've changed names of variables.
As for form_state array, it is not possible to use 'values' here. Only 'input' is available.
Thanks.
Comment #11
klausiDon't forget to add the "PAReview: review bonus" tag next time as indicated in http://drupal.org/node/1975228 , otherwise you won't show up on my high priority list.
There is still a master branch, make sure to set the correct default branch: http://drupal.org/node/1659588 . Then remove the master branch, see also step 6 and 7 in http://drupal.org/node/1127732
Review of the 7.x-1.x branch:
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.
manual review:
Although you should definitely fix those issues they are not critical application blockers, so I guess this is RTBC. You can add the review bonus tag if you have done another 3 reviews of other projects.
Assigning to Dave Reid as he might have time to take a final look at this.
Comment #12
feolius commentedMany thanks for review.
All issues was fixed.
As for "@" operator, function _flexpaper_get_pdf_pages_number() is a helper function which helps us to count the number of pages in the pdf. Unfortunately, there is no guarantee that number of pages will be counted (even if both fopen() and fread() functions is working properly), that's why we just use it to provide some information about how conversion progress is proceeding. But if something goes wrong, we just continue conversion without showing the progress info. In this case, when function is not stable and its executing is not necessary, I think, it is pointless to show the errors. But if you don't agree, just let me know. It is not problem to remove "@" in all cases.
Thanks.
Comment #13
klausiNo objections for more than a week, so ...
Thanks for your contribution, feolius!
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 #14.0
(not verified) commentedPut "Reviews of other projects" into h2 tags