[Zope] about zope and mouse event handling
I want to make a web page that could handle mouse events. My primary goal is to do some image processing like zooming and panning on an image displayed and redisplay it on the same page. But I don't really know how to approach this and at the same time interacting with Zope to retrieve relevent information from the database. I wasreading GUI with python coding but I don't know how toconnect itwith zope database. Is this method possible? Is thereany other methods I could look into? Relax. Yahoo! Mail virus scanning helps detect nasty viruses!___ 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 )
Re: [Zope] about zope and mouse event handling
Handling mouse eventsis a _javascript_/DOM issue. If you are interested in having _javascript_ communicate with zope you could look into Ajax (although I prefer Json to XML). This might help: http://www.zope.org/Members/ree/jsonserver2 Jonathan - Original Message - From: Allen Huang To: Zope Sent: Friday, February 10, 2006 9:13 AM Subject: [Zope] about zope and mouse event handling I want to make a web page that could handle mouse events. My primary goal is to do some image processing like zooming and panning on an image displayed and redisplay it on the same page. But I don't really know how to approach this and at the same time interacting with Zope to retrieve relevent information from the database. I wasreading GUI with python coding but I don't know how toconnect itwith zope database. Is this method possible? Is thereany other methods I could look into? Relax. Yahoo! Mail virus scanning helps detect nasty viruses! ___Zope maillist - Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding! **(Related lists - http://mail.zope.org/mailman/listinfo/zope-announcehttp://mail.zope.org/mailman/listinfo/zope-dev ) ___ 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 )
Re: [Zope] about zope and mouse event handling
On 2/10/06, Allen Huang [EMAIL PROTECTED] wrote: I want to make a web page that could handle mouse events. My primary goal is to do some image processing like zooming and panning on an image displayed and redisplay it on the same page. But I don't really know how to approach this and at the same time interacting with Zope to retrieve relevent information from the database. The method to do this is called Ajax, and is basically all about writing the user interface in javascript and talking to the web server with XML. http://en.wikipedia.org/wiki/AJAX I was reading GUI with python coding but I don't know how to connect it with zope database. Is this method possible? Yes, absolutely, but then you are no longer using a Web-browser. :-) But sure, that works fine too. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ 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 )
Re: [Zope] about zope and mouse event handling
Allen Huang schrieb: I want to make a web page that could handle mouse events. My primary goal is to do some image processing like zooming and panning on an image displayed and redisplay it on the same page. But I don't really know how to approach this and at the same time interacting with Zope to retrieve relevent information from the database. If the only mouse event you like to know is left-button-click - then just use an HTML image-map. If not, you do the processing via Javascript in the client - zope and python has no business here. All you do is to trigger GET requests with parameters or URLs which are then handled in Zope. I was reading GUI with python coding but I don't know how to connect it with zope database. Is this method possible? Is there any other methods I could look into? This is not even remotely related - maybe if there is a chapter about image manipulation on the fly with PIL (python imaging lib) Zooming, panning can all be done but you need to get a deep understanding on HTTP, HTML, CSS and Javascript DOM. As well as to write a zope product which does the data preparation (e.g. tiling/resizing of the images) Regards Tino ___ 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 )
Re: [Zope] about zope and mouse event handling
Dear Lennart RegebroThanks for replying. If I use the pythonGUI, which you mention that it no longer use a brower, how would I use GUI to interact with zope database? How does the client end interact with the GUI? Lennart Regebro [EMAIL PROTECTED] wrote: On 2/10/06, Allen Huang <[EMAIL PROTECTED]>wrote: I want to make a web page that could handle mouse events. My primary goal is to do some image processing like zooming and panning on an image displayed and redisplay it on the same page. But I don't really know how to approach this and at the same time interacting with Zope to retrieve relevent information from the database.The method to do this is called "Ajax", and is basically all aboutwriting the user interface in _javascript_ an d talking to the web serverwith XML.http://en.wikipedia.org/wiki/AJAX I was reading GUI with python coding but I don't know how to connect it with zope database. Is this method possible?Yes, absolutely, but then you are no longer using a Web-browser. :-)But sure, that works fine too.--Lennart Regebro, Nuxeo http://www.nuxeo.com/CPS Content Management http://www.cps-project.org/ Yahoo! Mail Use Photomail to share photos without annoying attachments.___ 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 )
Re: [Zope] about zope and mouse event handling
On 2/10/06, Allen Huang [EMAIL PROTECTED] wrote: Dear Lennart Regebro Thanks for replying. If I use the python GUI, which you mention that it no longer use a brower, how would I use GUI to interact with zope database? That depends on what method you decide to use to interact. There are infinite options, from connecting directly to ZODB to using http some way. How does the client end interact with the GUI? Via mouse and keyboard, usually. ___ 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 )
Re: [Zope] about zope and mouse event handling
Dear LennartSorry... I'm still pretty new at this, I'm only worked with java templet.Is it possible for you to show me some example using GUI and ZODB together.. Some other guy replyed and said it couldn't be done.Lennart Regebro [EMAIL PROTECTED] wrote: On 2/10/06, Allen Huang <[EMAIL PROTECTED]>wrote: Dear Lennart Regebro Thanks for replying. If I use the python GUI, which you mention that it no longer use a brower, how would I use GUI to interact with zope database?That depends on what method you decide to use to interact. There areinfinite options, from connecting directly to ZODB to using http someway. How does the client end interact with the GUI?Via mouse and keyboard, usually. Yahoo! Mail Use Photomail to share photos without annoying attachments.___ 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 )
Re: [Zope] about zope and mouse event handling
On 2/10/06, Tino Wildenhain [EMAIL PROTECTED] wrote: ... maybe if there is a chapter about image manipulation on the fly with PIL (python imaging lib) I believe that Plone (or Plohn as it seems to be called by Zope people ;-) ) has some product(s) somewhere that make use of PIL. Here's a VERY brief page on it: http://plone.org/documentation/tutorial/richdocument/pil It's definitely possible to hook PIL into Zope, and it's been done in the past. You should be able to find some documentation or perhaps a product or two that uses it. -- Floyd May Senior Systems Analyst CTLN - CareerTech Learning Network [EMAIL PROTECTED] ___ 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 )
Re: [Zope] about zope and mouse event handling
Floyd May wrote: On 2/10/06, Tino Wildenhain [EMAIL PROTECTED] wrote: ... maybe if there is a chapter about image manipulation on the fly with PIL (python imaging lib) I believe that Plone (or Plohn as it seems to be called by Zope people ;-) ) If by Zope people you mean Chris Withers. --jcc -- Building Websites with Plone http://plonebook.packtpub.com ___ 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 )
Re: [Zope] about zope and mouse event handling
Floyd May schrieb: On 2/10/06, Tino Wildenhain [EMAIL PROTECTED] wrote: ... maybe if there is a chapter about image manipulation on the fly with PIL (python imaging lib) I believe that Plone (or Plohn as it seems to be called by Zope people ;-) ) has some product(s) somewhere that make use of PIL. Here's a VERY brief page on it: http://plone.org/documentation/tutorial/richdocument/pil It's definitely possible to hook PIL into Zope, and it's been done in the past. You should be able to find some documentation or perhaps a product or two that uses it. I never said it would not be possible (I'm using PIL for some projects) but I'm a bit uncertain if the OP will be capable of doing it in a short time given the horizont of his question. I home though, hinting on the possible solution path should give him a perspective to dig into the right documentations. Regards Tino ___ 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 )