CVS edit link for guillaumev

I have written a small module that refreshes the user profile page to the chosen language when the user changes his language on his profile page. This module is ready for release in my opinion.

I also have a module that creates a black list for organic groups (see http://drupal.org/node/872796).

Comments

guillaumev’s picture

StatusFileSize
new13.73 KB

OG black list module, which creates black lists of users not allowed to subscribe to a specific group which subscriptions are open.

guillaumev’s picture

StatusFileSize
new12.64 KB

User language refresh module, which refreshes the profile page of a user when he edits his information and changes his language

avpaderno’s picture

Status: Postponed (maintainer needs more info) » Needs work
Issue tags: +Module review

Hello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review the code, pointing out what it needs to be changed.

As per requirements, the motivation message should be expanded to contain more features of the proposed project. For themes, it should include also a screenshot of the theme, and (when possible) a link to a working demo site using the proposed theme; for modules, it should include also a comparison with the existing solutions.

We just review a module/theme per applicant; let us know which one you want to be reviewed.

guillaumev’s picture

Hi,

Both modules are quite small and should be quick to review, but if you really want only one single module I guess you could review the user_language_refresh module.

The user_language_refresh module is a simple module that refreshes the user profile page to the language chosen by the user when the user changes his language. It does nothing more. For a comparison with existing solutions, I haven't found any existing module that does the same thing, which is why I wrote this module.

Concerning the OG black list module, it allows group owners of 'Open' groups to define a list of users that can NOT subscribe to the group even though the group is 'Open'. It basically allows a group owner to ban users from a group. This can be useful if a user becomes annoying to a group and the group owner wants to ban the user from the group while still keeping subscriptions open. Again, concerning existing solutions, I could not find a module that has this exact functionality, which is why I wrote it.

If you need more information please let me know...

avpaderno’s picture

Status: Needs work » Needs review

Thank you for your reply.

avpaderno’s picture

Status: Needs review » Needs work
  • The points reported in this review are not in order or importance / relevance.
  • Most of the times I report the code that present an issue. In such cases, the same error can be present in other parts of the code; the fact I don't report the same issue more than once doesn't mean the same issue is not present in different places.
  • Not all the reported points are application blockers; some of the points I report are simple suggestions to who applies for a CVS account. For a list of what is considered a blocker for the application approval, see CVS applications review, what to expect. Keep in mind the list is still under construction, and can be changed to adapt it to what has been found out during code review, or to make the list clearer to who applies for a CVS account.
  1. License files cannot be committed in Drupal.org repository. Projects committed in Drupal.org repository have the same license used by Drupal.
  2. Hook implementation comments should be like the following one:
    /**
     * Implements hook_menu().
     */
    
  3. I am not sure what the purpose of changing the global language before the validation handlers have been executed would be. Do you have a use case for the proposed module?
  4. The module seems too simple to be used for a CVS application.
guillaumev’s picture

Hi,

1. Ok
2. Ok
3. When using Drupal, if you go to your user account and change your favorite language, let's say from English to Spanish, the site's language does not change ! This module intends to fix this. By changing the language variable before validation handlers have been executed, the page user/xx/edit is refreshed to the language selected by the user.
4. Ok. I'm still quite surprised that nobody in the community requests this, because to me this behaviour (refreshing the page to the language chosen by the user after the user changed his language on the 'My account' page) is common in all multilingual websites...

guillaumev’s picture

Status: Needs work » Needs review
StatusFileSize
new8.24 KB

This module adds Agrovoc functionalities to Drupal's taxonomy. The Agrovoc is a multilingual, structured and
controlled vocabulary designed to cover the terminology of all subject fields in agriculture, forestry, food
and related domains, created by the Food and Agriculture Organization of the United Nations (FAO). See
http://www.fao.org/agrovoc/

This module is sponsored by Condesan (http://www.condesan.org) and developed by BeezNest (http://www.beeznest.com).

If someone can review this new module we just created. It's basically an improved version of http://drupal.org/node/821422 and should be ready for release.

Thank you.

guillaumev’s picture

Hi,

Just upping this... If someone can review it... Thank you

alex_b’s picture

Status: Needs review » Reviewed & tested by the community

This looks solid, let's get guillaumev an account!

ywarnier’s picture

Status: Reviewed & tested by the community » Needs review

Hi guys,

Just to recommend Guillaume's work in general in case that would make you more comfortable.

* Guillaume is a French software engineer and has been working on Drupal modules and implementations for the last 9 months in a corporate environment inside a company (BeezNest) that is spearheading the Drupal professional development & community in Peru (hosting most of Drupal Peru's events, reportedly the most active local group at a global scale, which means at least two events a month, of which one code sprint).
* He's been participating on drupal.org for a while.
* He's a certified Zend Engineer.
* He's coached richie06031983 to contribute to Spanish translations.
* He's already contributed several blog articles about distinct aspects of Drupal: see http://beeznest.wordpress.com/author/gviguier/
* He's very respectful of rules.
* He's working in an environment with two other Zend Engineers, of which at least myself (responsible for the Chamilo module and previously Dokeos module).

In all aspects, he's been an incredible technical asset and I think it would simply be a bad idea not to allow him a more direct access to adding code to Drupal modules.

This, of course, doesn't say much about the fact that his modules respect the Drupal rules or not, but that's for somebody else to judge.

Yannick

marvil07’s picture

Status: Needs review » Reviewed & tested by the community

I just had a look to the code, and it looks fine, so moving back to RTBC

BTW alex_b is suggesting to RTBC this and I think ywarnier had a status change by error(looking at the comment post times).

develcuy’s picture

I have heard about guillaumev a year ago and how interested was him on contributing back to community, now he is coming with a working module ready for a beta release!

So a plus for him because of his persistance, it looks like he will be a responsible maintainer!

avpaderno’s picture

Status: Reviewed & tested by the community » Needs work
  1. See http://drupal.org/coding-standards to understand how a module should be written; in particular, see how functions should be named.
  2.     drupal_set_message(t('An error occured while calling the Agrovoc API'), 'error');
        watchdog('agrovoc_api', t('The Agrovoc API returned the following response').': '.$response, NULL, WATCHDOG_ERROR);
    

    The second parameter for watchdog() is not correct.

  3.   if ($vocabulary->agrovoc && user_access('administer taxonomy')) {
        return TRUE;
      }
      else {
        return FALSE;
      }
    

    The code can be re-written as

      return ($vocabulary->agrovoc && user_access('administer taxonomy'));
    
  4.       $form['settings']['agrovoc'] = array(
            '#type' => 'checkbox',
            '#title' => 'Agrovoc vocabulary',
            '#default_value' => $vocabulary->agrovoc,
            '#description' => 'Whether this vocabulary should allow terms from the Agrovoc thesaurus to be added'
          );
    

    Strings shown in the user interface should be translated; form field descriptions should have a final period.

  5.   $sql = "SELECT vid FROM {agrovoc_taxonomy} WHERE agrovoc_id = '%d' AND agrovoc_lang = '%s'";
    

    The placeholder for integers doesn't need to be wrapped in '; if the parameter is really a string, then the placeholder should be '%s'.

  6.   while ($vocabulary = db_fetch_object($result)) {
        if ($vocabulary->vid == $vocabulary_id) {
          $is_in_vocabulary = TRUE;
        }
      }
    

    The loop should break when it finds the vocabulary ID; it doesn't make sense to fetch data from the database when the vocabulary has been already found.

guillaumev’s picture

Status: Needs work » Needs review
StatusFileSize
new8.26 KB

Hi,

I'm attaching a new version including the observations of comment #14.

1. I don't see what you mean. If you're talking about functions such as agrovoc_api_simpleSearchByMode2 or agrovoc_api_getAllLabelsByTermcode2, yes, I could convert them to agrovoc_api_simple_search_by_mode_2 and agrovoc_api_get_all_labels_by_termcode_2, but I thought it would be clearer to use agrovoc_api_simpleSearchByMode2, because simpleSearchByMode2 is the name of the function called on the Agrovoc SOAP API. It therefore allows someone who wants to use the Agrovoc API module to easily identify which SOAP function is being called. If you still want me to change the name of these functions, let me know...

2. Fixed

3. Fixed

4. Fixed (both translations and period at the end)

5. Fixed for all %d

6. Fixed (added a break)

avpaderno’s picture

The coding standards report that module functions should not contain upper case letters.

avpaderno’s picture

Status: Needs review » Needs work
guillaumev’s picture

Status: Needs work » Needs review
StatusFileSize
new8.27 KB

New version with function names changed to respect coding standards.

Please let me know if it's ok...

Regards.

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Needs review » Fixed

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, 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.

I thank all the dedicated reviewers as well.

guillaumev’s picture

Thanks kiamlaluno !

Status: Fixed » Closed (fixed)
Issue tags: -Module review

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Component: Miscellaneous » new project application
Issue summary: View changes
Status: Closed (fixed) » Fixed

I am giving credits to the users who participated in this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.