[Zope-dev] Containers in ZODB

2000-06-07 Thread Petr Knapek

Hi Zopists,
I would like to use ZODB3 as an object DB to store my own objects. At
the beginning, I will make any text UI but later I want to put my
objects into a ZOPE Folder and store them inside ZOPE ZODB (Zope will
serve as GUI). Generaly I have 2 types of objects:

Container - object with some attributes and methods which can collect
other objects (also Containers)
Item - an object with some attributes and methods which can not collect
any other objects but can be contained in Container

My questions are:

1. Does anybody know what the essential Zope classes from which I have
to inherit are? Of course I know the Persistent is essential for both of
them but don't know whether it is sufficient for future import of my own
ZODB as a part of Zope ZODB.

2. Does anybody know how to import my own ZODB (*.fs file) into Zope
   ZODB?

I don't need to have any tabs in the web browser connected with my
objects I only need possibility to store these objects inside Zope and
call their methods. 
Please can anybody react on this it is very important to me, it is my
project and I want to use ZODB. 

WBR, Petr
-- 
Petr Knpek
NEXTRA Czech Republic, s.r.o., Veve 102, 659 10 Brno, Czech Republic
e-mail: mailto:[EMAIL PROTECTED]
tel:+420-5-41 558 394
FAX:+420-5-41 558 390

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Containers in ZODB

2000-06-07 Thread Itamar Shtull-Trauring

Petr Knapek wrote:

 Container - object with some attributes and methods which can collect
 other objects (also Containers)

For these you should inherit from OFS.ObjectManager.ObjectManager.

 Item - an object with some attributes and methods which can not collect
 any other objects but can be contained in Container

For these you should inherit from OFS.SimpleItem.Item.

All you really need is to inherit from Persistent, if you're making your own
objects, but inheriting from the above will allow you to use them later in
an easier fashion.

-- 
Itamar S.T.  [EMAIL PROTECTED]   
"It don't get thingier than that!"

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )