Hilfe bei der Integration von IIPImage in Zope
Christoph Wick <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Message-ID | <[email protected]> |
Hallo, ich habe Probleme bei der Integration von IIPImage (http://iipimage.sourceforge.net/) in Zope. Und zwar geschieht es im Moment über ein Python-Skript, das folgendermassen aussieht: from Products.PythonScripts.standard import html_quote request = container.REQUEST RESPONSE = request.RESPONSE code = '' code = code + '<?xml version="1.0" encoding="UTF-8"?>\n' code = code + '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n' code = code + ' "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n' code = code + '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >\n' code = code + ' <head>\n' code = code + ' <meta name="author" content="Ruven Pillay <[email protected]>"/>\n' code = code + ' <meta name="keywords" content="IIPImage Ajax Internet Imaging Protocol IIP Zooming Streaming High Resolution Mootools"/>\n' code = code + ' <meta name="description" content="IIPImage: High Resolution Remote Image Streaming Viewing"/>\n' code = code + ' <meta name="copyright" content="© 2003-2008 Ruven Pillay"/>\n' code = code + ' <link rel="stylesheet" type="text/css" media="all" href="http://urts55.uni-trier.de/mooviewer/css/iip.compressed.css" />\n' code = code + ' <link rel="shortcut icon" href="http://urts55.uni-trier.de/mooviewer/images/iip-favicon.png" />\n' code = code + ' <title>IIPMooViewer 1.1 :: IIPImage High Resolution Ajax Image Streaming Viewer</title>\n' code = code + " <script type=\"text/javascript\" src=\"http://urts55.uni-trier.de/mooviewer/javascript/mootools-1.2-core-compressed.js\"></script>\n" code = code + " <script type=\"text/javascript\" src=\"http://urts55.uni-trier.de/mooviewer/javascript/mootools-1.2-more-compressed.js\"></script>\n" code = code + " <script type=\"text/javascript\" src=\"http://urts55.uni-trier.de/mooviewer/javascript/iipmooviewer-1.1-compressed.js\"></script>\n" code = code + " <script type=\"text/javascript\">\n" code = code + " // The iipsrv server path (/fcgi-bin/iipsrv.fcgi by default)\n" code = code + " var server = \"http://urts173.uni-trier.de/fcgi-bin/iipsrv.fcgi\";\n" code = code + " // The *full* image path on the server. This path does *not* need to be in the web\n" code = code + " // server root directory. On Windows, use Unix style forward slash paths without\n" code = code + " // the \"c:\" prefix\n" code = code + " var images = \"/home/wick/images/img001px.tif\";\n" code = code + " // Copyright or information message\n" code = code + " var credit = \"© copyright or information message\";\n" code = code + " // Create our viewer object - note: must assign this to the 'iip' variable.\n" code = code + " // See documentation for more details of options\n" code = code + " iip = new IIP( \"targetframe\", {\n" code = code + " image: images,\n" code = code + " server: server,\n" code = code + " credit: credit,\n" code = code + " zoom: 1,\n" code = code + " render: 'random',\n" code = code + " showNavButtons: true\n" code = code + " });\n" code = code + " </script>\n" code = code + " </head>\n" code = code + " <body>\n" code = code + " <div style=\"width:99%;height:99%;margin-left:auto;margin-right:auto\" id=\"targetframe\"></div>\n" code = code + " </body>\n" code = code + "</html>\n" return code Das Problem ist, dass IIPImage nicht auf demselben Server läuft, sondern auf einem anderen Server unserer Einrichtung. Dies soll auch nicht geändert werden. Wenn ich den durch das Skript generierten Quellcode in eine HTML-Datei kopiere und diese aufrufe, funktioniert alles wie "geschmiert" (http://urts55.uni-trier.de/mooviewer/pic.html). Aber in Zope funktioniert es leider nicht. (vgl. http://urts173.uni-trier.de:9673/hhp_test/iiptestcw). Hat irgendjemand eine hilfreiche Idee? Ich habe übrigens festgestellt, dass der Internet Explorer die Zope-Seite anzeigt, allerdings fehlen hier ein paar Icons. Die Funktionen sind aber alle vorhanden. Vielen Dank für alle Hinweise. CW _______________________________________________ zope mailing list [email protected] https://mail.dzug.org/mailman/listinfo/zope