Re: [BangPypers] How to model these entities?

2015-03-29 Thread Dhananjay Nene
One reason I am not fond of singletons is that they make unit testing a lot harder Dhananjay On Wed, Mar 25, 2015 at 7:02 PM, Abhaya Agarwal abhaya.agar...@gmail.com wrote: Hi, I need to model four entities that share some attributes and behaviors and also have some unique attributes and

Re: [BangPypers] How to model these entities?

2015-03-26 Thread Abhaya Agarwal
Thanks Arun! In my opinion, the major aspect that you are not considering is - multi-tenancy. While SaaS might sound like a buzzword, it addresses some very important pain points. Does your application guarantee that the client confidential information of one client is completely isolated from

Re: [BangPypers] How to model these entities?

2015-03-26 Thread Arun Ravindran
Hi Abhaya, I believe you are on the right track. While I am not a big fan of singletons (you could use pass the object to each function explicitly), the rest of the design seems sound. You could model your architecture as model classes in Django in a straightforward way. In my opinion, the major

[BangPypers] How to model these entities?

2015-03-25 Thread Abhaya Agarwal
Hi, I need to model four entities that share some attributes and behaviors and also have some unique attributes and behaviors. I need to be able to refer to them from other entities. And these entities are Singletons. Ex: online marketplaces. They share common attributes like website, contact