Is it possible to add/create complex objects via FTP?
I am building a site for which I am creating an 'extended folder' object. It is a subclass of Ordered Folder which adds about 15-25 additional properties. I am lazy and I hate web forms, so do not want to go through the web interface and create all the properties manually. :) Now then I would like to take my laziness one step further. I would like to be able to create a text/plain file containing something like: object_type = 'Extended Folder' id = 'foo' title = 'Extended Folder Foo' property1 = value1 property2 = 'value2' .... propertyn = ''' valuen line 1 valuen line 2 ''' then upload it into Zope via FTP. Is this possible? And if so, what methods would I need to implement in my product to make it work and/or where can I find documentation? If it is not currently possible, could this functionality be implemented into Zope? I can think of many other possibilities where it would be really nice such as adding a DTML Method via FTP instead it always being a DTML Document. Regards Jarrod Kinsley
You can try the ZipProduct from http://www.zope.org/Members/snej/ZipFolder hth Norman -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of jkinsley Sent: 11 August 2001 10:41 To: zope@zope.org Subject: [Zope] Is it possible to add/create complex objects via FTP? I am building a site for which I am creating an 'extended folder' object. It is a subclass of Ordered Folder which adds about 15-25 additional properties. I am lazy and I hate web forms, so do not want to go through the web interface and create all the properties manually. :) Now then I would like to take my laziness one step further. I would like to be able to create a text/plain file containing something like: object_type = 'Extended Folder' id = 'foo' title = 'Extended Folder Foo' property1 = value1 property2 = 'value2' .... propertyn = ''' valuen line 1 valuen line 2 ''' then upload it into Zope via FTP. Is this possible? And if so, what methods would I need to implement in my product to make it work and/or where can I find documentation? If it is not currently possible, could this functionality be implemented into Zope? I can think of many other possibilities where it would be really nice such as adding a DTML Method via FTP instead it always being a DTML Document. Regards Jarrod Kinsley _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
ZipFolder looks interesting, but it is not exactly what I am looking for. I have been digging around in the Zope source, and in the ZRDB code I think I might have found what I am looking for. I am going to try combining Acqueduct.parse() and DA.PUT() and DA.FTPget() into a generic class that my folder can inherit from. I will not know if it works until I try it, so here goes. :) Regards Jarrod On Sat, 11 Aug 2001, Norman Khine wrote: Date: Sat, 11 Aug 2001 14:05:01 +0100 From: Norman Khine <khine@btinternet.com> To: jkinsley <jkinsley@bticc.net> Cc: Zope <zope@zope.org> Subject: RE: [Zope] Is it possible to add/create complex objects via FTP? You can try the ZipProduct from http://www.zope.org/Members/snej/ZipFolder hth Norman
participants (2)
-
jkinsley -
Norman Khine