Hi folks, I am yet another Zope newbie. I am trying to create a ZClass hierarchy. Let's say I have a CDLibrary. Every CDLibrary has a CDManager (just one) and the CDManger holds all the CDEntry items. (The CDLibrary may have parts other than the CDManager, like a label maker or something- but that's not important now...) My question is this: How do I set up such a product with ZClasses within ZClasses. I have the HOW-TO collection, the ZBook, the Zope Book and the Guides. I've tried the HOW-TO on ZClasses and ObjectManagers, and Adding ZClass Instances Programmatically with no success. I am an experienced Python programmer with strong object-oriented knowledge and good HTML. Any help will be greatly appreciated. Thanks. -- "I ain't no stewin' rabbit, I'm a fricassein' rabbit. Have you got a fricassein' rabbit license?" Daryl Stultz - python, blender, robots, really bad harmonica playing... daryl@together.net RedHat Linux 6.1 - Dual Pentium Pro
Daryl Stultz wrote:
Hi folks, I am yet another Zope newbie.
I am trying to create a ZClass hierarchy. Let's say I have a CDLibrary. Every CDLibrary has a CDManager (just one) and the CDManger holds all the CDEntry items. (The CDLibrary may have parts other than the CDManager, like a label maker or something- but that's not important now...)
My question is this: How do I set up such a product with ZClasses within ZClasses. I have the HOW-TO collection, the ZBook, the Zope Book and the Guides. I've tried the HOW-TO on ZClasses and ObjectManagers, and Adding ZClass Instances Programmatically with no success.
I am an experienced Python programmer with strong object-oriented knowledge and good HTML.
Any help will be greatly appreciated.
This may just be 'any help'. <g> But, If you subclass OFS:Folder when building CDLibrary and CDManager then they can 'contain' other objects. A HOWTO that really helped me was the one on building a Job Board. HTH, -- Tim Cook, President -- Free Practice Management,Inc. | http://FreePM.com Office: (901) 884-4126 Censorship: The reaction of the ignorant to freedom.
Tim Cook wrote:
But, If you subclass OFS:Folder when building CDLibrary and CDManager then they can 'contain' other objects. A HOWTO that really helped me was the one on building a Job Board.
Yes, that's precisely where I started, however, the actual product is a job_board_entry. What I want is a product that IS the entire job board, contains an object that is a job_board_entry manager (holds the entries) and then, the user creates job_board_entries. In the example, the job board itself, and the "manager" are done with folders. Following the ZCMG example (Stan's InstantSite), I can clone such a setup - but I don't get full class modification cascading, i.e., once it's duplicated, only changes to the job_board_entry class will carry through existing job boards. I'll keep at it, though. I hope this is all clear. Thanks. -- "I ain't no stewin' rabbit, I'm a fricassein' rabbit. Have you got a fricassein' rabbit license?" Daryl Stultz - python, blender, robots, really bad harmonica playing... daryl@together.net RedHat Linux 6.1 - Dual Pentium Pro
Daryl Stultz wrote:
Tim Cook wrote:
But, If you subclass OFS:Folder when building CDLibrary and CDManager then they can 'contain' other objects. A HOWTO that really helped me was the one on building a Job Board.
Yes, that's precisely where I started, however, the actual product is a job_board_entry. What I want is a product that IS the entire job board, contains an object that is a job_board_entry manager (holds the entries) and then, the user creates job_board_entries.
In the example, the job board itself, and the "manager" are done with folders. Following the ZCMG example (Stan's InstantSite), I can clone such a setup - but I don't get full class modification cascading, i.e., once it's duplicated, only changes to the job_board_entry class will carry through existing job boards.
You might want to take a look at how I built the FreePMProduct. The product contains several ZClasses. One example is an EMRClass (electronic medical record) it subclasses OFS:Folder Inside the EMR I can instantiate several of the other ZClasses. Such as a Consult or an Address. Some of those subclass Folder and some Document, depending on it's actual use. A change to one of these ZClasses cascades through all existing instances. Is that not what you are trying to do? -- Tim Cook, President -- Free Practice Management,Inc. | http://FreePM.com Office: (901) 884-4126 Censorship: The reaction of the ignorant to freedom.
participants (2)
-
Daryl Stultz -
Tim Cook