Hi *! As i didn't get any replies to my second question: I looks like there is no way of building a ZClass with more then on 1 field for binary data, i.e. 2 or more files in one ZClass? That sucks. Maybe if i do it in Python? But i guess there'd be no way to have a dynamically growing number of binary data fields :-( any ideas? (what i want to do is the following: in lotus notes, you can just drag as many files as you like on a document, and these files are stored as attachments with the document. i need to be able to do the same in zope) regards, Klaus -- Klaus Herrmann <klaus.herrmann@goelz.com> Goelz & Schwarz GmbH, Munich www.goelz.com phone:+49 - (0)89 - 544 67 0 22 fax: +49 - (0)89 - 544 67 0 10
Klaus Herrmann writes:
As i didn't get any replies to my second question: I looks like there is no way of building a ZClass with more then on 1 field for binary data, i.e. 2 or more files in one ZClass? That sucks. I am sure, I replied!
Make your ZClass folder-like (derive from "ObjectManager" or "Folder") and then use standard files. Don't you like this idea? Dieter
As i didn't get any replies to my second question: I looks like there is no way of building a ZClass with more then on 1 field for binary data, i.e. 2 or more files in one ZClass? That sucks. I am sure, I replied!
Make your ZClass folder-like (derive from "ObjectManager" or "Folder") and then use standard files.
Don't you like this idea?
sure but i can only put one file in a document this way, right? Klaus -- Klaus Herrmann <klaus.herrmann@gmx.net>
Make your ZClass folder-like (derive from "ObjectManager" or "Folder") and then use standard files.
Don't you like this idea?
sure but i can only put one file in a document this way, right?
It's not really a document, it's an object then, and with an object which is a container (a folder), you can place any combinaison of object (even containers) in it. That's what oo is for imho Philippe
Klaus Herrmann writes:
Make your ZClass folder-like (derive from "ObjectManager" or "Folder") and then use standard files.
Don't you like this idea?
sure but i can only put one file in a document this way, right? Why do you think so?
Deriving from a "Folder" (making it a base class) gives your ZClass Folder behaviour. It can do what a Folder can. Its instances become Folders. And as such can store arbitrary many objects, including files. You will need to give your class an "index_html" to display the "content" of your instances. Dieter
participants (4)
-
Dieter Maurer -
Klaus Herrmann -
Klaus Herrmann -
Philippe Jadin