)]}'
{"doc/source/topics/settings.rst":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"1f766a1e4e0700bcf26555f7e58bca68a98acd3e","unresolved":false,"context_lines":[{"line_number":634,"context_line":""},{"line_number":635,"context_line":"Default: ``{\u0027enable_user_pass\u0027: True}``"},{"line_number":636,"context_line":""},{"line_number":637,"context_line":"A dictionary of setting which can be used to disable the password field"},{"line_number":638,"context_line":"while launching the stack."},{"line_number":639,"context_line":""},{"line_number":640,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1a930d6b_64920c59","line":637,"updated":"2015-01-21 18:28:17.000000000","message":"settings*","commit_id":"3bb51e14ca8b56de87dbecf487691d8005096894"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"f5fa8c8b1d63f7a7a56b0bbf410b06baf547dd08","unresolved":false,"context_lines":[{"line_number":634,"context_line":""},{"line_number":635,"context_line":"Default: ``{\u0027enable_user_pass\u0027: True}``"},{"line_number":636,"context_line":""},{"line_number":637,"context_line":"A dictionary of setting which can be used to disable the password field"},{"line_number":638,"context_line":"while launching the stack."},{"line_number":639,"context_line":""},{"line_number":640,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1a930d6b_2441e45a","line":637,"in_reply_to":"1a930d6b_0445c86f","updated":"2015-01-21 18:41:46.000000000","message":"If only one, then maybe it shouldn\u0027t be a dictionary. Otherwise, just keep as is :)","commit_id":"3bb51e14ca8b56de87dbecf487691d8005096894"},{"author":{"_account_id":11599,"name":"Nikunj Aggarwal","email":"nikunj.aggarwal@hp.com","username":"nikunj2512"},"change_message_id":"8e109c279e8e52f9f3cc5a417a4d61f3ae246e2c","unresolved":false,"context_lines":[{"line_number":634,"context_line":""},{"line_number":635,"context_line":"Default: ``{\u0027enable_user_pass\u0027: True}``"},{"line_number":636,"context_line":""},{"line_number":637,"context_line":"A dictionary of setting which can be used to disable the password field"},{"line_number":638,"context_line":"while launching the stack."},{"line_number":639,"context_line":""},{"line_number":640,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1a930d6b_0445c86f","line":637,"in_reply_to":"1a930d6b_64920c59","updated":"2015-01-21 18:39:09.000000000","message":"Why settings?? it will always have one setting.","commit_id":"3bb51e14ca8b56de87dbecf487691d8005096894"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"72dbb4375c86b5f5fc2e327d630279e64ecdfe0a","unresolved":false,"context_lines":[{"line_number":635,"context_line":"Default: ``{\u0027enable_user_pass\u0027: True}``"},{"line_number":636,"context_line":""},{"line_number":637,"context_line":"A dictionary of settings which can be used to disable the password field"},{"line_number":638,"context_line":"while launching the stack."},{"line_number":639,"context_line":""},{"line_number":640,"context_line":""},{"line_number":641,"context_line":"``OPENSTACK_NEUTRON_NETWORK``"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a930d6b_b0a3bbfe","line":638,"updated":"2015-01-26 18:55:11.000000000","message":"This is confusing to read.  Look at the one above.  It should say something like:\n\nA dictionary of settings to use with heat stacks. Currently, the only setting available is \"enable_user_pass\", which does \u003cfill in\u003e\"/","commit_id":"982e02b683e8f2827a2f0925efe4af4fc56fa69b"},{"author":{"_account_id":11599,"name":"Nikunj Aggarwal","email":"nikunj.aggarwal@hp.com","username":"nikunj2512"},"change_message_id":"9ae8eed018b17c28672cccf59995098274a7a6f9","unresolved":false,"context_lines":[{"line_number":635,"context_line":"Default: ``{\u0027enable_user_pass\u0027: True}``"},{"line_number":636,"context_line":""},{"line_number":637,"context_line":"A dictionary of settings which can be used to disable the password field"},{"line_number":638,"context_line":"while launching the stack."},{"line_number":639,"context_line":""},{"line_number":640,"context_line":""},{"line_number":641,"context_line":"``OPENSTACK_NEUTRON_NETWORK``"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a930d6b_b3cf4528","line":638,"in_reply_to":"1a930d6b_b0a3bbfe","updated":"2015-01-26 19:44:10.000000000","message":"I will change the description.","commit_id":"982e02b683e8f2827a2f0925efe4af4fc56fa69b"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"2f2d16d04a3b2f15fb8cbeb663383474b937ecd7","unresolved":false,"context_lines":[{"line_number":636,"context_line":""},{"line_number":637,"context_line":"A dictionary of settings to use with heat stacks. Currently, the only setting"},{"line_number":638,"context_line":"available is \"enable_user_pass\", which can be used to disable the password"},{"line_number":639,"context_line":"field while launching the stack."},{"line_number":640,"context_line":""},{"line_number":641,"context_line":""},{"line_number":642,"context_line":"``OPENSTACK_NEUTRON_NETWORK``"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a80dd14_ad0dd739","line":639,"updated":"2015-03-10 20:13:08.000000000","message":"Why might one want to set this to False?","commit_id":"330cdfe76c89fa1aefa676dbe29518a42d9a65eb"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"763c362c494e95df940e57400ef0d687074c5beb","unresolved":false,"context_lines":[{"line_number":733,"context_line":"``OPENSTACK_HEAT_STACK``"},{"line_number":734,"context_line":"-----------------------------"},{"line_number":735,"context_line":""},{"line_number":736,"context_line":".. versionadded:: 2015.1(Kilo)"},{"line_number":737,"context_line":""},{"line_number":738,"context_line":"Default: ``{\u0027enable_user_pass\u0027: True}``"},{"line_number":739,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"bab921fb_0fd4b6e9","line":736,"updated":"2015-04-25 00:40:23.000000000","message":"needs to change yo Liberty","commit_id":"0ee07a2cde69482dea52bbb19c0430c8fb0b5d57"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"aae255a22cb00ce2268ee448ca11a9ec26e34393","unresolved":false,"context_lines":[{"line_number":733,"context_line":"``OPENSTACK_HEAT_STACK``"},{"line_number":734,"context_line":"-----------------------------"},{"line_number":735,"context_line":""},{"line_number":736,"context_line":".. versionadded:: 2015.2(Liberty)"},{"line_number":737,"context_line":""},{"line_number":738,"context_line":"Default: ``{\u0027enable_user_pass\u0027: True}``"},{"line_number":739,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"ba3cc151_290c6a3a","line":736,"updated":"2015-07-07 05:32:17.000000000","message":"8.0.0(Liberty)","commit_id":"edd3985e8d562f604a846376fc375863081bafb2"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"bbde7419a7baf942edffb1b12a7c60559339e942","unresolved":false,"context_lines":[{"line_number":733,"context_line":"``OPENSTACK_HEAT_STACK``"},{"line_number":734,"context_line":"-----------------------------"},{"line_number":735,"context_line":""},{"line_number":736,"context_line":".. versionadded:: 2015.2(Liberty)"},{"line_number":737,"context_line":""},{"line_number":738,"context_line":"Default: ``{\u0027enable_user_pass\u0027: True}``"},{"line_number":739,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_f9278660","line":736,"in_reply_to":"9a1a9d01_4337a5fe","updated":"2015-10-01 00:49:16.000000000","message":"On further investigation, it appears that yes, OpenStack moved to semver for releases (but didn\u0027t announce it or update any documentation) but I believe the semver for Liberty should be 12.0.0, not 8.0.0. The only public information I can find about this is a blog post:\n\nhttps://doughellmann.com/blog/2015/05/29/openstack-server-version-numbering/\n\nand 12.0.0 makes more sense than 8.0.0.","commit_id":"edd3985e8d562f604a846376fc375863081bafb2"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"eebe92daf14b95d404f58fc7540c72d2d70b83c1","unresolved":false,"context_lines":[{"line_number":733,"context_line":"``OPENSTACK_HEAT_STACK``"},{"line_number":734,"context_line":"-----------------------------"},{"line_number":735,"context_line":""},{"line_number":736,"context_line":".. versionadded:: 2015.2(Liberty)"},{"line_number":737,"context_line":""},{"line_number":738,"context_line":"Default: ``{\u0027enable_user_pass\u0027: True}``"},{"line_number":739,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_4337a5fe","line":736,"in_reply_to":"ba3cc151_290c6a3a","updated":"2015-09-30 23:37:20.000000000","message":"I don\u0027t understand this comment - that is the correct version number identifier for Liberty, isn\u0027t it? Though this patch has been delayed, so will probably miss Liberty RC2...","commit_id":"edd3985e8d562f604a846376fc375863081bafb2"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"0cf5a0e92f01b4f09f6766d07f502b325d241852","unresolved":false,"context_lines":[{"line_number":822,"context_line":"``OPENSTACK_HEAT_STACK``"},{"line_number":823,"context_line":"-----------------------------"},{"line_number":824,"context_line":""},{"line_number":825,"context_line":".. versionadded:: 8.0.0(Liberty)"},{"line_number":826,"context_line":""},{"line_number":827,"context_line":"Default: ``{\u0027enable_user_pass\u0027: True}``"},{"line_number":828,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"fa80f949_45064fcf","line":825,"updated":"2015-11-05 21:31:59.000000000","message":"This needs to be updated to 9.0.0(Mitaka) now","commit_id":"3d7189ec1a739424aa7a6390f12a6129251e91bf"}],"openstack_dashboard/dashboards/project/stacks/forms.py":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"1f766a1e4e0700bcf26555f7e58bca68a98acd3e","unresolved":false,"context_lines":[{"line_number":284,"context_line":"                   {}).get(\u0027enable_user_pass\u0027, True):"},{"line_number":285,"context_line":"            return True"},{"line_number":286,"context_line":"        else:"},{"line_number":287,"context_line":"            return False"},{"line_number":288,"context_line":""},{"line_number":289,"context_line":"    def _build_parameter_fields(self, template_validate):"},{"line_number":290,"context_line":"        if self._get_stack_setting():"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_a4e4f43b","line":287,"updated":"2015-01-21 18:28:17.000000000","message":"simplify to: \n\n     stack_settings \u003d getattr(settings, \u0027OPENSTACK_STACK_SETTING\u0027, {})\n     return stack_settings.get(\u0027enable_user_pass\u0027, True)","commit_id":"3bb51e14ca8b56de87dbecf487691d8005096894"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"72dbb4375c86b5f5fc2e327d630279e64ecdfe0a","unresolved":false,"context_lines":[{"line_number":284,"context_line":"        return stack_settings.get(\u0027enable_user_pass\u0027, True)"},{"line_number":285,"context_line":""},{"line_number":286,"context_line":"    def _build_parameter_fields(self, template_validate):"},{"line_number":287,"context_line":"        if self._get_stack_setting():"},{"line_number":288,"context_line":"            self.fields[\u0027password\u0027] \u003d forms.CharField("},{"line_number":289,"context_line":"                label\u003d_(\u0027Password for user \"%s\"\u0027) % self.request.user.username,"},{"line_number":290,"context_line":"                help_text\u003d_(\u0027This is required for operations to be performed \u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a930d6b_1012cf56","line":287,"updated":"2015-01-26 18:55:11.000000000","message":"I find the naming here to be odd.  The settings allows for a full dictionary of various stack settings.  Right now there is only one setting (enable_user_pass). If this is just to be a single call to get the password setting, I\u0027d rather see the function named _get_stack_password_setting.","commit_id":"982e02b683e8f2827a2f0925efe4af4fc56fa69b"},{"author":{"_account_id":11599,"name":"Nikunj Aggarwal","email":"nikunj.aggarwal@hp.com","username":"nikunj2512"},"change_message_id":"9ae8eed018b17c28672cccf59995098274a7a6f9","unresolved":false,"context_lines":[{"line_number":284,"context_line":"        return stack_settings.get(\u0027enable_user_pass\u0027, True)"},{"line_number":285,"context_line":""},{"line_number":286,"context_line":"    def _build_parameter_fields(self, template_validate):"},{"line_number":287,"context_line":"        if self._get_stack_setting():"},{"line_number":288,"context_line":"            self.fields[\u0027password\u0027] \u003d forms.CharField("},{"line_number":289,"context_line":"                label\u003d_(\u0027Password for user \"%s\"\u0027) % self.request.user.username,"},{"line_number":290,"context_line":"                help_text\u003d_(\u0027This is required for operations to be performed \u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a930d6b_73c95d25","line":287,"in_reply_to":"1a930d6b_1012cf56","updated":"2015-01-26 19:44:10.000000000","message":"Ok, i will change the name.","commit_id":"982e02b683e8f2827a2f0925efe4af4fc56fa69b"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"ebfd8b10c97d854a7970b03cf20c75f8aee72179","unresolved":false,"context_lines":[{"line_number":284,"context_line":"        return stack_settings.get(\u0027enable_user_pass\u0027, True)"},{"line_number":285,"context_line":""},{"line_number":286,"context_line":"    def _build_parameter_fields(self, template_validate):"},{"line_number":287,"context_line":"        if self._get_stack_password_setting():"},{"line_number":288,"context_line":"            self.fields[\u0027password\u0027] \u003d forms.CharField("},{"line_number":289,"context_line":"                label\u003d_(\u0027Password for user \"%s\"\u0027) % self.request.user.username,"},{"line_number":290,"context_line":"                help_text\u003d_(\u0027This is required for operations to be performed \u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa81d914_b5d87c80","line":287,"updated":"2015-01-29 07:58:40.000000000","message":"A little bit easier to read would be _is_user_pass_enabled(), but to me this is a nitpick with personal preference and could be considered if you do additional changes.","commit_id":"330cdfe76c89fa1aefa676dbe29518a42d9a65eb"},{"author":{"_account_id":14078,"name":"Alan Fung","email":"alan@alanfung.com","username":"alanfung"},"change_message_id":"da44f8d7ff799adf8981003fb46594ed2ad94f7c","unresolved":false,"context_lines":[{"line_number":278,"context_line":"        if kwargs.get(\u0027validate_me\u0027):"},{"line_number":279,"context_line":"            parameters \u003d kwargs.pop(\u0027validate_me\u0027)"},{"line_number":280,"context_line":"        super(CreateStackForm, self).__init__(*args, **kwargs)"},{"line_number":281,"context_line":"        if self._get_stack_password_setting():"},{"line_number":282,"context_line":"            self._build_parameter_fields(parameters)"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    def _get_stack_password_setting(self):"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_07745bcd","line":281,"updated":"2015-03-19 21:43:17.000000000","message":"doesn\u0027t this skip the logic to build the custom parameter fields?","commit_id":"31729b6bb9216515772233bcb31093a4aee2d057"},{"author":{"_account_id":14078,"name":"Alan Fung","email":"alan@alanfung.com","username":"alanfung"},"change_message_id":"4f5fd0b88ec5b9ec95573d780a1ab16f8d814800","unresolved":false,"context_lines":[{"line_number":280,"context_line":"        super(CreateStackForm, self).__init__(*args, **kwargs)"},{"line_number":281,"context_line":"        self._build_parameter_fields(parameters)"},{"line_number":282,"context_line":"        if not self._get_stack_password_setting():"},{"line_number":283,"context_line":"            self.fields.remove(\u0027password\u0027)"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def _get_stack_password_setting(self):"},{"line_number":286,"context_line":"        stack_settings \u003d getattr(settings, \u0027OPENSTACK_HEAT_STACK\u0027, {})"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_442c68ac","line":283,"updated":"2015-03-20 18:40:19.000000000","message":"I like where you are going with this last change. The password logic does not belong in _build_parameter_fields. I wonder if we can go further by taking out the password field creation (i.e. forms.CharField) out all together and place it inside __init__. Instead of removing it when self._get_stack_password_setting() is False, create it when self._get_stack_password_setting() is True.","commit_id":"9c1b02c22047f21f0ab1d396ef18a445a65250ea"},{"author":{"_account_id":14078,"name":"Alan Fung","email":"alan@alanfung.com","username":"alanfung"},"change_message_id":"e0085824ba1dc5e5fac7631b05d0412a9e9efe5b","unresolved":false,"context_lines":[{"line_number":280,"context_line":"        super(CreateStackForm, self).__init__(*args, **kwargs)"},{"line_number":281,"context_line":"        self._build_parameter_fields(parameters)"},{"line_number":282,"context_line":"        if not self._get_stack_password_setting():"},{"line_number":283,"context_line":"            self.fields.remove(\u0027password\u0027)"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def _get_stack_password_setting(self):"},{"line_number":286,"context_line":"        stack_settings \u003d getattr(settings, \u0027OPENSTACK_HEAT_STACK\u0027, {})"}],"source_content_type":"text/x-python","patch_set":9,"id":"1a6ced46_ceec49f6","line":283,"in_reply_to":"1a6ced46_53fad443","updated":"2015-03-25 17:46:31.000000000","message":"_build_parameter_fields is responsible to build custom parameters defined in the heat template. The \u0027password\u0027 is not a custom parameter, it is a requirement depends on the auth configuration in heat, it is naturally part of the form much like stack_name, timeout_mins... etc. For that reason, I believe it should have been taken out from _build_parameter_fields -- I actually thought that was the reason you made the change in patch 9 from patch 7.\n\nHowever, if you disagree, I would prefer patch 7 over patch 9 because the field is created as needed instead of create then remove.","commit_id":"9c1b02c22047f21f0ab1d396ef18a445a65250ea"},{"author":{"_account_id":11599,"name":"Nikunj Aggarwal","email":"nikunj.aggarwal@hp.com","username":"nikunj2512"},"change_message_id":"383b33576ce3a899d9f76a3352346031ae26b78b","unresolved":false,"context_lines":[{"line_number":280,"context_line":"        super(CreateStackForm, self).__init__(*args, **kwargs)"},{"line_number":281,"context_line":"        self._build_parameter_fields(parameters)"},{"line_number":282,"context_line":"        if not self._get_stack_password_setting():"},{"line_number":283,"context_line":"            self.fields.remove(\u0027password\u0027)"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def _get_stack_password_setting(self):"},{"line_number":286,"context_line":"        stack_settings \u003d getattr(settings, \u0027OPENSTACK_HEAT_STACK\u0027, {})"}],"source_content_type":"text/x-python","patch_set":9,"id":"1a6ced46_53fad443","line":283,"in_reply_to":"9a80dd14_442c68ac","updated":"2015-03-25 11:09:25.000000000","message":"_build_parameter_fields is specifically for creating the parameters fields. I don\u0027t think so, it will be good to remove it from the there and put it elsewhere. let me know what you think.","commit_id":"9c1b02c22047f21f0ab1d396ef18a445a65250ea"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"126692e0d6a5fd8e6048c0d33df91bf8cd6814c8","unresolved":false,"context_lines":[{"line_number":285,"context_line":"            parameters \u003d kwargs.pop(\u0027validate_me\u0027)"},{"line_number":286,"context_line":"        super(CreateStackForm, self).__init__(*args, **kwargs)"},{"line_number":287,"context_line":"        self._build_parameter_fields(parameters)"},{"line_number":288,"context_line":"        if not self._get_stack_password_setting():"},{"line_number":289,"context_line":"            self.fields.remove(\u0027password\u0027)"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"    def _get_stack_password_setting(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"bab921fb_a7a2c249","line":288,"updated":"2015-04-24 08:38:53.000000000","message":"instead of create then remove password field, it\u0027s better do this check before creating it.","commit_id":"0ee07a2cde69482dea52bbb19c0430c8fb0b5d57"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"763c362c494e95df940e57400ef0d687074c5beb","unresolved":false,"context_lines":[{"line_number":285,"context_line":"            parameters \u003d kwargs.pop(\u0027validate_me\u0027)"},{"line_number":286,"context_line":"        super(CreateStackForm, self).__init__(*args, **kwargs)"},{"line_number":287,"context_line":"        self._build_parameter_fields(parameters)"},{"line_number":288,"context_line":"        if not self._get_stack_password_setting():"},{"line_number":289,"context_line":"            self.fields.remove(\u0027password\u0027)"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"    def _get_stack_password_setting(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"bab921fb_cf911ef3","line":288,"in_reply_to":"bab921fb_1aebdcb1","updated":"2015-04-25 00:40:23.000000000","message":"I like that approach as well","commit_id":"0ee07a2cde69482dea52bbb19c0430c8fb0b5d57"},{"author":{"_account_id":14078,"name":"Alan Fung","email":"alan@alanfung.com","username":"alanfung"},"change_message_id":"c515e933f6fd56d062f4e40033d6a2de49b8a6d6","unresolved":false,"context_lines":[{"line_number":285,"context_line":"            parameters \u003d kwargs.pop(\u0027validate_me\u0027)"},{"line_number":286,"context_line":"        super(CreateStackForm, self).__init__(*args, **kwargs)"},{"line_number":287,"context_line":"        self._build_parameter_fields(parameters)"},{"line_number":288,"context_line":"        if not self._get_stack_password_setting():"},{"line_number":289,"context_line":"            self.fields.remove(\u0027password\u0027)"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"    def _get_stack_password_setting(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"bab921fb_1aebdcb1","line":288,"in_reply_to":"bab921fb_a7a2c249","updated":"2015-04-24 21:02:52.000000000","message":"+1 on Zhenguo\u0027s comment and copying over my comment from patch 9...\n\nTake out the password field creation (i.e. forms.CharField) out all together and place it inside __init__. Instead of removing it when self._get_stack_password_setting() is False, create it when self._get_stack_password_setting() is True.\n\n_build_parameter_fields is responsible to build custom parameters defined in the heat template. The \u0027password\u0027 is not a custom parameter, it is a requirement depends on the auth configuration in heat, it is naturally part of the form much like stack_name, timeout_mins... etc. For that reason, I believe it should have been taken out from _build_parameter_fields.","commit_id":"0ee07a2cde69482dea52bbb19c0430c8fb0b5d57"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"3f256af0fcadfd51873c868a2b3e736905ac765e","unresolved":false,"context_lines":[{"line_number":285,"context_line":"            parameters \u003d kwargs.pop(\u0027validate_me\u0027)"},{"line_number":286,"context_line":"        super(CreateStackForm, self).__init__(*args, **kwargs)"},{"line_number":287,"context_line":"        self._build_parameter_fields(parameters)"},{"line_number":288,"context_line":"        if not self._get_stack_password_setting():"},{"line_number":289,"context_line":"            self.fields.remove(\u0027password\u0027)"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"    def _get_stack_password_setting(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"bab921fb_cc6fb6fa","line":288,"in_reply_to":"bab921fb_cf911ef3","updated":"2015-04-27 05:51:29.000000000","message":"+1 for this change also","commit_id":"0ee07a2cde69482dea52bbb19c0430c8fb0b5d57"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"763c362c494e95df940e57400ef0d687074c5beb","unresolved":false,"context_lines":[{"line_number":376,"context_line":"            \u0027parameters\u0027: dict(params_list),"},{"line_number":377,"context_line":"        }"},{"line_number":378,"context_line":"        if self._get_stack_password_setting():"},{"line_number":379,"context_line":"            fields[\u0027password\u0027] \u003d data.get(\u0027password\u0027)"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"        if data.get(\u0027template_data\u0027):"},{"line_number":382,"context_line":"            fields[\u0027template\u0027] \u003d data.get(\u0027template_data\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"bab921fb_cf4c7eca","line":379,"updated":"2015-04-25 00:40:23.000000000","message":"using the condition - \"if data.get(\u0027password\u0027)\" might be cleaner","commit_id":"0ee07a2cde69482dea52bbb19c0430c8fb0b5d57"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"3f256af0fcadfd51873c868a2b3e736905ac765e","unresolved":false,"context_lines":[{"line_number":376,"context_line":"            \u0027parameters\u0027: dict(params_list),"},{"line_number":377,"context_line":"        }"},{"line_number":378,"context_line":"        if self._get_stack_password_setting():"},{"line_number":379,"context_line":"            fields[\u0027password\u0027] \u003d data.get(\u0027password\u0027)"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"        if data.get(\u0027template_data\u0027):"},{"line_number":382,"context_line":"            fields[\u0027template\u0027] \u003d data.get(\u0027template_data\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"bab921fb_ac7922ca","line":379,"in_reply_to":"bab921fb_cf4c7eca","updated":"2015-04-27 05:51:29.000000000","message":"+1 for this change also","commit_id":"0ee07a2cde69482dea52bbb19c0430c8fb0b5d57"},{"author":{"_account_id":14078,"name":"Alan Fung","email":"alan@alanfung.com","username":"alanfung"},"change_message_id":"16e6c17bb4c3ce84d30ea07878e93ea8f573004d","unresolved":false,"context_lines":[{"line_number":290,"context_line":"                label\u003d_(\u0027Password for user \"%s\"\u0027) % self.request.user.username,"},{"line_number":291,"context_line":"                help_text\u003d_(\u0027This is required for operations to be performed \u0027"},{"line_number":292,"context_line":"                            \u0027throughout the lifecycle of the stack\u0027),"},{"line_number":293,"context_line":"                widget\u003dforms.PasswordInput())"},{"line_number":294,"context_line":""},{"line_number":295,"context_line":"        self._build_parameter_fields(parameters)"},{"line_number":296,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"7a016987_c840120a","line":293,"updated":"2015-05-27 22:04:09.000000000","message":"Moving the above block here and out from _build_parameter_fields for two reasons.\n\n1. To pass pep8 test for being \"too complex\".\n\n2. The \"password\" field is actually not a custom parameter field, so it would make sense for it to not be in _build_parameter_fields anyway.","commit_id":"0bd8edde9468b5347f3f484b17ba71881418f1ec"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"20e7e250e7a9d0e116578b502851dc559d5de478","unresolved":false,"context_lines":[{"line_number":377,"context_line":"            \u0027parameters\u0027: dict(params_list),"},{"line_number":378,"context_line":"        }"},{"line_number":379,"context_line":"        if data.get(\u0027password\u0027):"},{"line_number":380,"context_line":"            fields[\u0027password\u0027] \u003d data.get(\u0027password\u0027)"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"        if data.get(\u0027template_data\u0027):"},{"line_number":383,"context_line":"            fields[\u0027template\u0027] \u003d data.get(\u0027template_data\u0027)"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a1a9d01_a35c7c4b","line":380,"updated":"2015-10-01 04:30:45.000000000","message":"this need to be applied for EditStack too","commit_id":"fbf0d07dd23cf55f3291b63521bd342c6f22d283"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"df294eb32afd3bf81728ae532bbe7ce2e7c11742","unresolved":false,"context_lines":[{"line_number":377,"context_line":"            \u0027parameters\u0027: dict(params_list),"},{"line_number":378,"context_line":"        }"},{"line_number":379,"context_line":"        if data.get(\u0027password\u0027):"},{"line_number":380,"context_line":"            fields[\u0027password\u0027] \u003d data.get(\u0027password\u0027)"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"        if data.get(\u0027template_data\u0027):"},{"line_number":383,"context_line":"            fields[\u0027template\u0027] \u003d data.get(\u0027template_data\u0027)"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a1a9d01_68d5abb7","line":380,"in_reply_to":"9a1a9d01_a35c7c4b","updated":"2015-10-02 06:43:18.000000000","message":"makes sense.","commit_id":"fbf0d07dd23cf55f3291b63521bd342c6f22d283"}],"openstack_dashboard/local/local_settings.py.example":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"1f766a1e4e0700bcf26555f7e58bca68a98acd3e","unresolved":false,"context_lines":[{"line_number":544,"context_line":""},{"line_number":545,"context_line":"# The OPENSTACK_STACK_SETTING settings can be used to disable password"},{"line_number":546,"context_line":"# field required while launching the stack."},{"line_number":547,"context_line":"OPENSTACK_STACK_SETTING \u003d {"},{"line_number":548,"context_line":"    \u0027enable_user_pass\u0027: True,"},{"line_number":549,"context_line":"}"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"1a930d6b_e91df574","line":547,"updated":"2015-01-21 18:28:17.000000000","message":"nit: don\u0027t really like seeing stack_stack... maybe OPENSTACK_HEAT_STACK or OPENSTACK_HEAT_FEATURES?\n\nAlso, should be moved up to the L150-200 area, grouped with those other service settings.","commit_id":"3bb51e14ca8b56de87dbecf487691d8005096894"}]}
