Mail Archive Home | acceleo-dev List | November 2007 Index
| <-- Date Index --> | <-- Thread Index --> |
Hi acceleo-dev, firstly, thx to obeo, Cédric, Rahif and Samir to start this project. I will first answer the question from Cédric and next try to give you a quick start to install zope3 [UML] At first look, the second diagram seems to be the best. The first one is quite wrong as you have said Cédric. In the last one you try to make an association but there is no "association" between zope components. Zope decide if a component is in relation with an other only with Interfaces. I don't know if component in UML could be the same as component in Zope3. I hope Samir an Rahif will explain us that. Now, i will try to help Rahif for the modeling "with python". I think i would have sth like this: interfaces.py IDiskStoreContent (schema) IDiskStoreDAO (methods to access to data) IDiskContent IDiskDAO IOrderContent IOrderDAO IDiskCatalog : diskfinder , badfinder, ... ... content.py DiskStore implements IDiskStoreContent and IContainer in zopish world Disk implements IDiskContent Order implements IOrderContent I don't have my book on zope3, but next we have to add zope's catalog indexes, and use it to find disk in a disk container. We also need an Order Container interface and content type to store Order. I let you take a look at zope.schema http://wiki.zope.org/zope3/WhatAreSchemas This is used to create data content object. Schema do not create accessors/mutators to the content object so we need to create data access object. But it seems we can use the Interface to validate fields. Note: A good project on Zope2 do this automaticly, but is quite complicated: Archetypes. [Zope3 quickstart and install] For those who want to test zope3.4, just follow this: - Install Python 2.4.4 from source in a prefix. (i give you a setup.sh to speed this up) - wget http://peak.telecommunity.com/dist/ez_setup.py (done by the script) - /prefix/bin/python ez_setup.py (done by the script) - /prefix/bin/easy_install zopeproject - /prefix/bin/zopeproject MyProject (and answer questions) - /path/to/MyProject/bin/MyProject-ctl start Next open a browser to localhost:8080, you get it ;) Comes to : http://pypi.python.org/pypi/zopeproject http://wiki.zope.org/zope3/Zope3Wiki
Attachment:
setup_python.sh
Description: application/shellscript
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.