Yarko, > .... the reason I am doing all this - I like to see how much can be solved > with structure, and thus minimize code (need for widget)... > > ... so first I'm trying to understand the kind of strucuture that is > "natural" in what you are dealing with...
A mathematical approach (structure and patterns) to analysis and design. I am afraid I am not yet proficient enough to produce a model close to perfection. I am dealing with fitness and health clubs. > So you have facilities (locations...) > ... and you have ... mmm.... resources (it could be a swimming pool - with > open hours; it could be when a masseuse or perhaps a coach-by-name is in...) > > and the resources have schedules; and those schedules have availability.... > > and the resources have a relationship with a facility - in the case of > something fixed (e.g. swimming pool) it's probably a single relationship for > that resource; for other things, (e.g. trainer, masseuse) it may be many > relationships with facilities.... > > and there is some relationship between schedules: e.g., a trainer's schedule > involves several facilities (so the trainer's view of the trainging schedule > for tennis is different than a facilites view of scedule for tennis). > > so that sounds like a schedule event has an association with a > facility-resource, a professional, and an attendee. > > How am I doing so far? Great, I am starting to get your point, talking about structure. > And you are trying to do something with widgets to manage the complexity --- > e.g. tennis courts might be 5, 3 for open play, two for trainer use on > certain hours... That's one example, other examples: the restaurant being open daily from 07:00 am to 11:00 pm, a schedule event without professional or attendee. the dojo only being open when scheduled by a professional and a group of attendees squash courts being scheduled by attendees during the company's opening hours Some company owners regard the air-conditioning, parking lot, lockers and towel service as facilities as well. I find it difficult to get a grip on this part of my domain. Given the concept of bounded rationality I have to settle for a less perfect model and improve on it in upcoming iterations. Kind regards, Annet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

