valnet / valuenetwork

Resource Planning and Value Accounting for Value Networks
http://mikorizal.org
GNU Affero General Public License v3.0
99 stars 25 forks source link

resource_type.is_purchased method needs redesign #326

Open bhaugen opened 9 years ago

bhaugen commented 9 years ago

It was used in CommitmentManager.to_buy() which gives you a list of purchase requirements. But the method itself did not work correctly, would be difficult to make work correct (dependent on network facet and pattern configuration), and was painfully slow. I commented it out, but now (if I deploy my change) people will see a lot of purchase requirements for resources which they do not actually want to purchase.

So we need a new and simpler and faster way to designate resources that are purchased.