Re: [Tutor] my first object model, using an interface

2008-07-06 Thread Alan Gauld
"Monika Jisswel" <[EMAIL PROTECTED]> wrote This looks like a database driven application. I agree the final app will need to use a database for persistence. However the OP was specifically looking to use OOP principles so simply encapsulating the database is probably not the best approach for

Re: [Tutor] my first object model, using an interface

2008-07-06 Thread Monika Jisswel
This looks like a database driven application. When you send a package you must save the event on a database. When a HomeWork is submited it must be entered in the database. When you need to see what's the situation of any one student or all students you just query teh database. so you would be bet

Re: [Tutor] my first object model, using an interface

2008-07-06 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote adequately, after reading Alan Gauld's excellent tutorial Thanks for the mention, glad you found it useful. - a Watchable interface that, when implemented, signifies that the implementing object has a threshold and associated package. - a Package class, that can be

[Tutor] my first object model, using an interface

2008-07-05 Thread tpc247
Dear fellow Python enthusiasts: I want to run an idea by you to see if I understand modeling objects adequately, after reading Alan Gauld's excellent tutorial and two brief articles about interfaces in Python, here: http://www.freenetpages.co.uk/hp/alan.gauld/tutclass.htm http:/