Closed (won't fix)
Project:
Drupal.org CVS applications
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2009 at 14:26 UTC
Updated:
20 Dec 2009 at 19:38 UTC
Jump to comment: Most recent file
Comments
Comment #1
osmassoglia commentedComment #2
avpadernoThe previous applications were #594588: osmassoglia [osmassoglia], and #579356: osmassoglia [osmassoglia].
Comment #3
osmassoglia commentedyes, can delete the old applications?
Comment #4
avpadernoAll the strings used in the user interface must be translatable; this includes the strings used for the options of a form field.
Form functions don't take the default values from the variable
$_POST.By default, the fieldsets are not collapsed; you can avoid to set that value, as it is the default value.
Strings used for the title, or the description should have the first word in capital case, while the others are in lower case (except when they are acronyms, or proper nouns).
The string is not translatable; if it would be, then it would be better to use placeholders.
The code is supposed to use Drupal Unicode functions.
Why isn't the code not using
db_rewrite_sql()?The name of the variables are normally in English.
The string is not translatable. Normally, inline CSS styles are not used.
The code is not formatted as reported in the coding standards.
The code could use
l().What is the purpose to show a form field, if then the user cannot change the form field value?
See the Drupal coding standards to understand how a module code should be written.
There are two errors in that code line. Which ones are they?
The code is duplicating something that is already done by Drupal core code. Is that a reason to do it?
IMO, it seems the module is doing something that is already done by Drupal core code. What would the reason to prefer this module be?
Comment #5
avpadernoI hope that osmassoglia is going to reply to this report; until now he opened a new CVS application for three times because I closed the previous after 14 days without a reply from his side.
Comment #6
osmassoglia commentedHello KiamLaLuno
apology me for not responding , i had a lot of work....
I'm working on the code to adjust it to the code standar, i dont have a new release now, but i can answer your question mindwhile.
you ask
#
What is the purpose to show a form field, if then the user cannot change the form field value?
#
answer: Yes they can select the node to do any action with the nodemanager.
15.
The code is duplicating something that is already done by Drupal core code. Is that a reason to do it?
IMO, it seems the module is doing something that is already done by Drupal core code. What would the reason to prefer this module be?
asnwer: this module is an advance node manager, in the drupal core (content managment)
1.can't do batch processes
2.if do it any action in a pager list (page=23) when action is done, come back to the page one... in my module the page is remember.
3.in the content managment, cannot associate a lot of node with a term... in my mode yes we can
IMO , my module can help to many users to manage content more easy and fast.
Please, can you giveme some days to release a new code with the changes.
Thanks
Comment #7
osmassoglia commentedThe new code.
I have tried to fix all the code out of "standar code".
Comment #8
avpadernoThe default value for a form field is not taken from the
$_POSTvariable; Drupal code, and modules use a different approach.Comment #9
osmassoglia commentedwhen you say, "different aproach" you mean set_variable and get_variable?
or
Comment #10
avpadernoYes, I mean that.
variable_get()should be used in that case.variable_set()is not necessary, if you usesystem_settings_form().Comment #11
osmassoglia commentedIs really necessary use variable_get?
Why cannot use
Comment #12
avpadernoThere are many reasons to not use values from the variable
$_POST; the fact Drupal uses values from Drupal variables while populating the settings form fields should be a reason to do the same.Comment #13
osmassoglia commentedThe new code fixed
..
Comment #14
osmassoglia commentedThe new code fixed
Comment #15
avpaderno$_POST, rather than using the content of Drupal variables.What I meant before is that the code should use the content of Drupal variables by calling
variable_get(), not set the content of Drupal variables with values taken from$_POST.db_rewrite_sql()in the query for the taxonomy terms.As a side note: I don't reply to emails messages about CVS applications because I am not the only person who approves CVS accounts; the review of code is then free to all Drupal.org users.
Comment #16
osmassoglia commentedThe reason to set variables with the post values is to preserve the params to filtered node.... (Why cannot set a variables with $_POST values?)
Sorry about that..
Comment #17
osmassoglia commentedThe last code have an error this work fine.... :P
The reason to set variables with the post values is to preserve the params to filtered node.... (Why cannot set a variables with $_POST values?)
Sorry about that..
Comment #18
avpadernoBecause you are saving in the database volatile values.
It seems that you didn't understand how a module should use the form API.
You will not see any module that in the settings page takes the values directly from
$_POST, because that would mean to by-pass all the form API, and to allow the code to accept forged modules.I still think that this module duplicates functionalities already present in Drupal, which already has code to manage nodes.
Comment #19
osmassoglia commentedOk...
I fix the POST Values on #default_values.... i replace with session variables because that variables only need while the user is logged to remember the selected filters.
Yes my module have the same funcionality of "Drupal content management" but have added new features that can not be done from that module....
For example...
Remove/add from/to a category some or all filtered nodes..
Input text filtered
if you think that this module will not be a contribution, i leave up here..
Best Regards....
Comment #20
osmassoglia commentedSorry... i upload wrong code...
Comment #21
osmassoglia commentedSorry again :P
This is the last
Comment #22
osmassoglia commentedComment #23
avpadernoPlease don't play with the status, fixed is quit different from the status I set.