How to use Zope2 products in Zope3 ?
Hello I have some Zope2 products I want to use in Zope3. First up these: -- LocalFS -- ZopeShortcut -- SWFFile Confused by changes... I can't find any 'Products' or 'Import' folders in my Zope3 instance... Does this mean all those good products have to be rewritten using some new super-complexificated Zope3 syntax? I hope not. What am I missing please..? Thanks for any advice Jason
On 10/9/07, Jason Cunliffe <jasonic@nomadics.org> wrote:
Confused by changes... I can't find any 'Products' or 'Import' folders in my Zope3 instance... Does this mean all those good products have to be rewritten using some new super-complexificated Zope3 syntax? I hope not. What am I missing please..?
I am afraid that you are correct. Zope 3 does not support Zope 2 products. Instead, Zope 2 is using more and more Zope 3 tech and products get rewritten over time, gradually. -- Martijn Pieters
Martijn Pieters wrote:
On 10/9/07, Jason Cunliffe <jasonic@nomadics.org> wrote:
Confused by changes... I can't find any 'Products' or 'Import' folders
in my Zope3 instance... Does this mean all those good products have to be rewritten using some new super-complexificated Zope3 syntax? I hope not. What am I missing please..?
I am afraid that you are correct. Zope 3 does not support Zope 2 products. Instead, Zope 2 is using more and more Zope 3 tech and products get rewritten over time, gradually.
ah ok thanks.. so how in Z3 does one do the equivalent of -- DTMLMethod -- PythonScript -- ExternalMethod ?? I'm just looking for some ways to do some very light script programming in Zope3 via ftp from UltraEdit or directly using ZMI in a browser. For example I have ''randomImage', a tiny Zope2 PythonScript to display random images in whichever folder it is called from. Beautiful example of what Zope does really well. from random import choice imagelink = str(choice( context.objectValues(['Image']) )) #return imagelink print '<html><title>randomImage... </title><body> %s </body></html>' % imagelink print '</html>' return printed --------------------- Please how/where do I this in Zope3 ? What is the vehicle? ZPT ? What ever happened to 'PythonScripts' and those nice 'External Methods'? I read how Zope 3 was/is supposed to be be *more* pythonic !@#$!* Most of my client interfaces will be done in Flash [Actionscript3.0]. I want Zope to remain *invisible* and stick to server-side tasks, with Flash as the visible graphical face. As much as possible client-side logic, design, presentation, typography, media, and interface programming -- all that belongs on the client. AJAX is now very popular for this reason also. For my purposes, Flash is really perfect for this, except for one small problem- lacks of basic communication between embedded SWF file and the browser. Good news = is there is now a very nice solution which opens the gates for powerful easy Zope-Flash interoperability: SWFAddress http://www.asual.com/swfaddress/ SWFAddress - Deep linking for Flash "SWFAddress is a small script that sits on top of SWFObject <http://blog.deconcept.com/swfobject/> and provides deep linking for Flash websites and applications. In other words it enables the Back, Forward and Reload buttons of the browser and creates unique URLs with page titles that can be sent over email or IM. SWFAddress uses the ExternalInterface functionality introduced in Flash Player 8 and comes with a technique that enables search engine indexing for deep Flash links." demo http://www.asual.com/swfaddress/samples/flash/ With SWFAddress installed and Zope scripts such as 'randomImage' it means that one can write/craft standalone user interface components in Flash or Flex AS3.0 - complied as .swf files. A gallery image display widget for example can now be built to load images using URL call http://somesite.com/images/randomImage The beauty is the famous separation - logic, design, content. In this example there is no need to change the flash file. It can be freely copied and used in different places in different sites. But the parameters for the URL can also be passed in from javascript/html interface or transparently implicitly via the Zope programming lying behind its ubercool object path logic = http://somesite.com/images/randomImage So I'm trying to get to grips with the *simplest* possible use of Zope3 -- later I'll grapple with writing components etc if I need them hope this makes sense &thanks for any help Jason
--On 9. Oktober 2007 20:29:09 +0200 Jason Cunliffe <jasonic@nomadics.org> wrote:
Martijn Pieters wrote:
On 10/9/07, Jason Cunliffe <jasonic@nomadics.org> wrote:
Confused by changes... I can't find any 'Products' or 'Import' folders
in my Zope3 instance... Does this mean all those good products have to be rewritten using some new super-complexificated Zope3 syntax? I hope not. What am I missing please..?
I am afraid that you are correct. Zope 3 does not support Zope 2 products. Instead, Zope 2 is using more and more Zope 3 tech and products get rewritten over time, gradually.
ah ok thanks..
so how in Z3 does one do the equivalent of -- DTMLMethod
There is also DTML support in Zope 3 but why do you need DTML???
-- PythonScript -- ExternalMethod
Write a browser view. -aj
Andreas Jung wrote:
so how in Z3 does one do the equivalent of -- DTMLMethod
There is also DTML support in Zope 3 but why do you need DTML???
Maybe I don't need it... but there are lots of DTML examples out there, plus I have some things already working on Zope2 installation here. I'm in test/review/compare/learn cycle at the moment. Was hoping for some fast copy'n'paste between versions. My main effort will be in the userclient AS3.0 dev.. On the Zope side it's more about organizinng minimal pieces. IF I knew how, I'd love to write theentire ZMI in Flash. AS3.0 in Flex especially has great data binding. For example cool drag'n'drop trees with lovely E4X syntax for XML. The site tree admin in ZMI could be as nice to use as the live flex examples in this drag'n'drop tree component article shows: tutorial http://www.adobe.com/devnet/flex/quickstart/working_with_tree/ source http://www.adobe.com/devnet/flex/quickstart/working_with_tree/src/TreeDragTo... Going further one can use AIR and have drag'n'drop access on the desktop Interfacing that to Zope3 would make the basis for a superb CMSWikiLog++ AIR-to-Desktop Drag-and-Drop: Two Simple Utility Classes <http://coenraets.org/blog/2007/06/air-to-desktop-drag-and-drop-two-simple-utility-classes/> http://coenraets.org/blog/2007/06/air-to-desktop-drag-and-drop-two-simple-ut... download demo http://coenraets.org/downloads/dragdrop.air
-- PythonScript -- ExternalMethod
Write a browser view.
ok thanks.. So now I'm googling for "How to write a Zope3 browser view?" Wondering has anyone done this already.. seems like it must be basic to using Zope3 lots more to learn Any suggestions where best to learn how to do this? Has anyone written a glossary for Zope 3 concepts & terminology for Zope 2 users? Jason
--On 9. Oktober 2007 21:10:52 +0200 Jason Cunliffe <jasonic@nomadics.org> wrote:
ok thanks.. So now I'm googling for "How to write a Zope3 browser view?" Wondering has anyone done this already.. seems like it must be basic to using Zope3 lots more to learn Any suggestions where best to learn how to do this?
Look at Philipp von Weitershausens Zope 3 Book or the Zope 3 Cockbock by Stefan Richter. -aj
+-------[ Andreas Jung ]---------------------- | | Look at Philipp von Weitershausens Zope 3 Book or the Zope 3 Cockbock | by Stefan Richter. I think you mean cookbook. d8) -- Andrew Milton akm@theinternet.com.au
--On 10. Oktober 2007 15:05:31 +1000 Andrew Milton <akm@theinternet.com.au> wrote:
+-------[ Andreas Jung ]---------------------- | | Look at Philipp von Weitershausens Zope 3 Book or the Zope 3 Cockbock | by Stefan Richter.
I think you mean cookbook. d8)
ups :-) -aj
Andreas Jung skrev:
--On 10. Oktober 2007 15:05:31 +1000 Andrew Milton <akm@theinternet.com.au> wrote:
+-------[ Andreas Jung ]---------------------- | | Look at Philipp von Weitershausens Zope 3 Book or the Zope 3 Cockbock | by Stefan Richter.
I think you mean cookbook. d8)
ups :-)
I believe the cockbook is by Steven Rooster. A synonym for Charles Dickens. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science
I just noticed the Wikipedia page on application servers, and it is both very Sun-java-centric and lacking in Zope content. I updated the page to, I hope, make it more objective, but I think an invitation is in order for anybody who feels up to it to beef up the zope side of the story. The link is http://en.wikipedia.org/wiki/Application_server
Jason, Great posts! I have written an application that uses extjs (also works with AIR) as the javascript front end and zope 2.10 as the backend. I chose dtml over zpt because dtml is faster than zpt. The extjs application scales better then either a zpt or a dtml application because the majority of the user interface is written in javascript code that can be cached by the webserver (and client). Please keep us updated on your experience developing rich client interfaces with zope 2 and 3. I am waiting for delivery of Philipp von Weitershausen zope 3 book from Amazon. Hopefully I will be able to share my zope 3/ rich client experience with you in the future. Tim On 10/9/07, Jason Cunliffe <jasonic@nomadics.org> wrote:
Andreas Jung wrote:
so how in Z3 does one do the equivalent of -- DTMLMethod
There is also DTML support in Zope 3 but why do you need DTML???
Maybe I don't need it... but there are lots of DTML examples out there, plus I have some things already working on Zope2 installation here. I'm in test/review/compare/learn cycle at the moment. Was hoping for some fast copy'n'paste between versions. My main effort will be in the userclient AS3.0 dev.. On the Zope side it's more about organizinng minimal pieces. IF I knew how, I'd love to write theentire ZMI in Flash. AS3.0 in Flex especially has great data binding. For example cool drag'n'drop trees with lovely E4X syntax for XML.
The site tree admin in ZMI could be as nice to use as the live flex examples in this drag'n'drop tree component article shows: tutorial http://www.adobe.com/devnet/flex/quickstart/working_with_tree/ source http://www.adobe.com/devnet/flex/quickstart/working_with_tree/src/TreeDragTo...
Going further one can use AIR and have drag'n'drop access on the desktop Interfacing that to Zope3 would make the basis for a superb CMSWikiLog++
AIR-to-Desktop Drag-and-Drop: Two Simple Utility Classes <http://coenraets.org/blog/2007/06/air-to-desktop-drag-and-drop-two-simple-utility-classes/>
http://coenraets.org/blog/2007/06/air-to-desktop-drag-and-drop-two-simple-ut... download demo http://coenraets.org/downloads/dragdrop.air
-- PythonScript -- ExternalMethod
Write a browser view.
ok thanks.. So now I'm googling for "How to write a Zope3 browser view?" Wondering has anyone done this already.. seems like it must be basic to using Zope3 lots more to learn Any suggestions where best to learn how to do this? Has anyone written a glossary for Zope 3 concepts & terminology for Zope 2 users?
Jason _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (7)
-
Andreas Jung -
Andrew Milton -
Gregory Dudek -
Jason Cunliffe -
Martijn Pieters -
Max M -
Tim Nash