Re: [openstack-dev] [Horizon] How to conditionally modify attributes in CreateNetwork class.

2014-06-04 Thread Nader Lahouti
Hi Timur, Really appreciate your reply. Will try your suggestions. Thanks, Nader. On Tue, Jun 3, 2014 at 4:22 AM, Timur Sufiev tsuf...@mirantis.com wrote: Hello, Nader! As for `contributes` attribute, you could override `contribute(self, data, context)` method in your descendant of

Re: [openstack-dev] [Horizon] How to conditionally modify attributes in CreateNetwork class.

2014-06-03 Thread Timur Sufiev
Hello, Nader! As for `contributes` attribute, you could override `contribute(self, data, context)` method in your descendant of `workflows.Step` which by default simply iterates over all keys in `contributes`. Either you could use even more flexible approach (which also fits for

[openstack-dev] [Horizon] How to conditionally modify attributes in CreateNetwork class.

2014-05-30 Thread Nader Lahouti
Hi All, Currently in the horizon/openstack_dashboard/dashboards/project/networks/workflows.py in classes such as CreateNetwork, CreateNetworkInfo and CreateSubnetInfo, the contributes or default_steps as shown below are fixed. Is it possible to add entries to those attributes conditionally? 156