Previous Chapter | Next Chapter | Up | Next Section | Contents

Creating Z Class Instances


Now that you've fleshed out your class, it's time to create an instance. To have your object appear in the Zope product add list you must create a Factory along with an add form and an add method. Recall that Zope already created these objects for us when we first created our Z Class. Later we may wish to go back and customize these objects, but they'll do for now.

Go to the top-level Zope Folder and choose "CD" from the product add list. You should now be prompted for an Id . Call it "myCD" and click "Add". Congratulations, you've created your first instance of the "CDClass" Z Class.

Previous Chapter | Next Chapter | Up | Next Section | Contents

Banner.Novgorod.Ru