Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix overwriting config_section definitions: #981

Merged
merged 1 commit into from
May 24, 2016

Conversation

tagomoris
Copy link
Member

  • "name" and "param_name" is strongly connected with plugin's code (even in base classes)
    so these MUST be not changed by subclasses (subclass MUST use same names)
  • separate "param_name" from "name" to detect overwriting "param_name" by subclasses to raise errors
    and add "variable_name" method as internal utility
  • make it possible to change default values in finalized sections
    because it's very popular that 3rd party plugin prefer different default value for built-in predefined parameters
  • make it possible to change "init" specification of finalized sections
    because newly added/changed default values might be able to init sections

@tagomoris tagomoris force-pushed the fix-config_section-overwriting branch from 6c913e8 to 59baea9 Compare May 23, 2016 13:55
 * "name" and "param_name" is strongly connected with plugin's code (even in base classes)
   so these MUST be not changed by subclasses (subclass MUST use same names)
 * separate "param_name" from "name" to detect overwriting "param_name" by subclasses to raise errors
   and add "variable_name" method as internal utility
 * make it possible to change default values in finalized sections
   because it's very popular that 3rd party plugin prefer different default value for built-in predefined parameters
 * make it possible to change "init" specification of finalized sections
   because newly added/changed default values might be able to init sections
@tagomoris tagomoris force-pushed the fix-config_section-overwriting branch from 59baea9 to 852d5b1 Compare May 23, 2016 14:19
@tagomoris
Copy link
Member Author

@repeatedly @sonots I'll merge this later if there's no objection.

@tagomoris tagomoris merged commit 1e3f6af into master May 24, 2016
@tagomoris tagomoris deleted the fix-config_section-overwriting branch June 2, 2016 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant