As first, thank you for the 1.0 version. It is always nice to see that the module is out of -dev status, what brings a bit more confidence to the site admin.
Checking the code (with Coder) however shows that there are quite some (mainly minor, but still...) details to be revised before we could really call this version a final one. Just my thought...
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | cleanup.patch | 5.35 KB | xjm |
| #3 | taxonomy_access-code_style_cleanup-20091005.patch | 6.43 KB | dman |
| #1 | taxonomy_access-PHP_E_ALL_cleanup.patch | 889 bytes | dman |
Comments
Comment #1
dman commentedI got a php E_NOTICE warning on node edit pages for nodes that are NOT using taxonomy_access tags.
In the interests of cleanup, declaring the array before putting stuff into it is good practice:
there may be more, but that's the one i've seen so far.
Comment #2
dman commentedFWIW, here's a full code-style cleanup while I was there. Just whitepace in 20 places, plus a SQL argument tweak.
It leaves one warning outstanding in the install file that I don't understand.
yet update_sql() does not support arg substitution, so I'm not sure if I should mess with that. It's easy enough, I'm just not sure it's right to do so.
Comment #3
dman commentedUm, attachment :-)
Comment #4
luti commentedCoder is still not happy...
I've found the following is needed to make a complete cleanup for at least taxonomy_access.module and taxonomy_access_admin.inc (taxonomy_access.install remains unfixed):
Comment #5
dman commentedHm, I was on coder DRUPAL-6-1 stable. Looks like there's some new conditions been added in dev.
Comment #6
keve commentedThanks for the cleanup.
Commited with a small change:
Comment #7
keve commentedTo commemt #2:
Solution would be: create your own update_sql function
http://api.drupal.org/api/function/update_sql/6#comment-412
Comment #8
keve commentedPorted until comment #6.
Comment #9
xjmRe #2: In this situation, it should be sufficient to typecast the grants as integers for use in the query string, since there is no other data type nor user-submitted data involved.
Patch attached using that method, plus some code cleanup for recently committed features. Patch is against CVS and passes coder on "Normal."
Comment #10
xjmComment #11
xjmComment #12
xjmCommitted to 6.x-1.x-dev.