Hi everyone.
This module is based on the already existing module pclzip for Drupal 6. This module provides a gateway for it's related modules to create zip archive files from node attachments, fields,etc...
It needs the pclzip library to work (http://www.phpconcept.net/pclzip)
The reasons why i created a seperate sandbox project for this are
1) i don't have full git access yet
2) the project clearly is not actively maintained (last active commit more than 1 year ago)
i mentioned the existence of my sandbox project in the project issue list (without response), and the maintainer has been contacted to ask if it's possible to eventually give me co-maintainership once i should be granted access to create & maintain projects followin this procedure. I'm working on porting the related modules to D7 as well.
sandbox url: http://drupal.org/sandbox/30equals/1190952
thanx
Comments
Comment #1
gregglesIt appears you are working in the "master" branch in git. You should really be working in a version specific branch. Please see the documentation about release naming conventions and creating a branch in git.
Please remove the LICENSE.txt file. Drupal will add the appropriate version automatically during packaging so your repository should not include it.
I noticed some very small code style issues. Please run the coder module on "minor" setting to help catch these. I noticed things like using multiple spaces to get all the => to line up inside arrays, indenting with tabs or more than 2 spaces.
In your query:
$result = db_query("SELECT field_name FROM {field_config} WHERE type IN (" . variable_get('pclzip_field_types', "'image','file'") . ")");It would be better to use db_placeholders or completely change the user interface to use checkboxes of "known good values" that you can trust inside the query. This is a "sql injection" but since it requires "administer site configuration" to exploit it does not heed to be handled via the private security process.
You should probably also follow the abandoned project process to gain control of the other module so you can fix these issues and become maintainer of the main project.
Thanks for your work!
Comment #2
30equals commentedHi greggles!
thanx for the review! i implemented the needed changes (removed the license, db_placeholders,7.x-1.x branch, ..).
however i think db_placeholders is deprecated in D7 ? http://api.drupal.org/api/search/7/api/drupal/includes--database.inc/fun...
It's been run through the coder module, and now came up without any notices in critical mode. Hope it's fine now!
Comment #3
gregglesI didn't fully realize this was a 7.x module, sorry. Please see "Placeholder arrays" area on http://drupal.org/node/310072 for details of how to fix it.
Be sure to test the code after any fixes and question my advice - I'm not perfect, after all ;)
Comment #4
30equals commentedAh, not perfect, hehe
i had already pushed a commit with the array placeholders before, but i blindedly followed your advice, so i changed that back again ;)
should be fine now..?
Comment #5
gregglesGetting there!
The argument is not an array.
I think:
Note that I'm using explode and removed the ' from around the arguments in the variable. You will need to update the default elsewhere as well I think.
Comment #6
30equals commentedThe settings form and variable_get defaults are now turned into checkboxes/array.
Comment #7
gregglesGreat, be sure to set it back to needs review after fixing things listed here.
Comment #8
klausiComment #9
30equals commentedHey klausi,
All the issues you mentioned should be fixed now.
I already posted in the issue queue of the module that there's a D7 port coming and i contacted the maintainer a while back.
Comment #10
greggles@30equals, that sounds like you are on the path to take over the module but please follow http://drupal.org/node/251466
Comment #11
klausiSo it seems you don't need to create a new full project anymore. Please integrate your development with the existing pclzip module, either by posting patches or getting maintainership.
Please open a new issue if you have another new project that you want to promote to a full project.
Comment #12
30equals commentedYes i know this isn't an entirely new project - i already posted in the issues queue of the D6 module that there's a D7 port, and offered (co-)maintainership for this project.
BUT, according to the docs concerning abandoned projects and taking over, you need to have full git access - which i don't.
i quote:
...so it's back to square one then i guess..? i'm confused. nevermind already.
Comment #13
klausiNo, the drupal.org webmasters can grant you maintainership on that particular project, if the old maintainer does not respond. And of course a maintainer herself can grant you access to the project.
Comment #14
30equals commentedYes, i was aware of that, i am just following the guidelines ...?
The part i quoted mentiones i need to have full git access, and links to the page which lists the process of getting that - http://drupal.org/node/1011698
That's what i'm doing now.
Comment #15
greggles30equals, I think you're following the right process. Based on your work here I granted you the git vetted user status. Please keep working toward creating the 7.x-1.x branch.
Comment #16
klausi@30equals, sorry for the confusion but I think the documentation is outdated. You can be added as maintainer to a project without you having the "promote to full projects" permission. Will fix that.
Comment #17
30equals commented@greggles: thnx!
@klausi - no worries! i guess the docs were a bit unclear about that yeah.
Comment #18
ssm2017 Binder commentedhello
i am the maintainer of this project.
- i admit that i don't follow this project anymore for the moment because i don't need it actually.
- i am happy to see that someone is posting ideas about the upgrade of the module.
- i agree that someone can be co maintainer of the project.
- i can see that greggles and klausi helped to check the validity of the code.
- i think that the job is not to update only this core module and that the effort can be done on other pclzip modules too and i hope that someone will update them too.
i will look on the project page on how to grant someone to be a co maintainer.
edit : 30equald is now granted as co maintainer of all the pclzip modules.
all that said, i wanted to mention too (no obligation to read after this point) :
this module was made to be like a central module to be used with extensions :
pclzip_zipfolder
pclzip_zip_node_files
pclzip_zip_content_files
without any of theses module, we have nothing to do with it except developing own private projects.
30equals contacted me with the d.o contact form on the same day than writing this message (june 30).
i have answered on july 1st that i dont have time for the moment to watch the code and i will take a look during july (that i did not do).
30equals told me that i will be informed when one of the related modules will be ported and informed me about this actual thread (i forgot to "subscribe" to it so i did not receive new messages notifications).
then the discussion went here during october and, on the 1st of november, i receive an email with "the module is updated and reviewed".
then i went to see the code and i could see that the db placeholders are not well used (the same mistake i have made in the d6 version) so i tell it in my email on nov 4.
on today, 30equals reminded me the link to here and i could read all the disussion :)
all of this to tell you that i was answering to messages and taking care about the subject and saying that i am not answering is not the truth.
anyway, there is someone motivated to update the project, i can not refuse the opportunity but really hope that other modules will be updated too.
edit 2: i hope that i did not scare everybody with my answer and that everything will be fine :)
edit 3: i could see on today (12/03/18 that 30equals made a pclzip_zip_node_files d7 version. i was afraid that nobody would do the job and i can see now that i was wrong.
thank you and congratulations to 30equals for taking care about this module.