Hello ok, I have managed to read the docs and found all answers to my previous (and unfortunately html tagged, sorry for that) mail. But now a more subtle question, bear with me one moment: - if I want to use servlets, theorectically no problem, I can still install tomcat or whatever, use servlets, do what I want and answer back somehow to zope. That's fair enough - for more advanced things however I have to get crazy or rely on XML-RPC, which is a good thing, but after all is not 100% java compliant (am I wrong?) In any case I have to follow up with the effort of single willing programmers, and not sun or dc. Now I am asking myself: what if zope would be able to expose its interface also as java classes? Here are some questions: - do you think it is possible to write some sort of python/java wrapper so that it is possible to access zope from java natively? - what about equipping zope with a jvm, possibly jsdk2.2 compliant? after all, tomcat is open source as well... - is there already any project running that will achieve this? - if not, why not considering doing it? As a newbie to zope, I find it an amazing product, and I would almost define it a killer application, but imagine how killer can be with a native support to java as well. Some can be against it, and can claim that python and perl are farily sufficient extensions, and I perfectly agree with that, but seen the extension of the java community and the lack of an environment like zope mixed with java, I think it will worth at least thinking about it. Consider also that most of enterprises companies have already good investments in java, or are willing to do. I had an intense look at enhydra, but my stomach stil aches.....:) Any answer to my doubts will be very appreciated. Regards Stefano
Is there a way to produce a thumbnail as a preview of a rendered DTML document? Best regards Arno Gross, arno.gross@consotec.de
[Arno Gross] | Is there a way to produce a thumbnail as a preview | of a rendered DTML document? I'm not aware of any smart of doing this. But a possible solution might be to feed the DTML Document to PIL (Python Image Library) and have that create an Image for you -- which, in turn, you could create into a thumbnail.
I just solved this mistake. Here is the makeThumbnails Python Script: for image in context.objectValues('Image'): if not image.hasProperty('original_id'): context.makeThumbnail(context,image.getId()) The context paramter was missing. Best regards Arno Gross, email: arno.gross@consotec.de On Thu, 15 Feb 2001, Tom Sheffler wrote:
The Zope book chapter "Advanced Zope Scripting" shows a method with an arg list like this:
def makeThumbnail(context, original_id, size=128):
When I create a method with the "context" arg, Zope complains that the parameter "context" was omitted from the request.
THE REAL QUESTION:::
Using a Python Method, it's easy to get the variables "context" and "travers_subpath." How do I get these two values when using an External Method.
Thanks for any assistance. Tom
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Arno Gross
Is there a way to produce a thumbnail as a preview of a rendered DTML document?
On windows I have seen it done through COM and IE. Which makes thumbs. you know when you browse your Win machine that it can show previews of html pages. That mechanism can be used. It's probably not trivial though. My guess is that it will take about 10-20 lines of Python in an external python method: Getting an instance of IE through COM opening the right page through an URL getting the method that returns a a thumbnail image Converting it to gif saving the gif in Zope The problem is which 10-20 line it should be ;-) Regards Max M
ok, I have managed to read the docs and found all answers to my previous (and unfortunately html tagged, sorry for that) mail. But now a more subtle question, bear with me one moment: - if I want to use servlets, theorectically no problem, I can still install tomcat or whatever, use servlets, do what I want and answer back somehow to zope. That's fair enough - for more advanced things however I have to get crazy or rely on XML-RPC, which is a good thing, but after all is not 100% java compliant (am I wrong?) In any case I have to follow up with the effort of single willing programmers, and not sun or dc. Now I am asking myself: what if zope would be able to expose its interface also as java classes? Here are some questions: Another thing to consider (depending on you need for coupling) is to use some emerging "Federation" web server/portal standards like the XML-based WDDX for portal content exchange that the Alliare is pushing. I have also used sessions in Zope to store a servlet session id so that a PTK-now-CMF portal login also does a servlet login and session. The Plumtree Corporate Portal product method of communicating metadata between the portal web server and gadget web servers is another way to approach this. The Plumtree server acts just like a web browser to gadgets servers it uses to generate those portal content boxes. It uses http 1.1 to communicate meta information as http headers and cookies between the portal server and gadget server. The metadata that are communicated are things like user preferences, user id, gadget id, and url of the parent page. Regards, Albert Boulanger aboulanger@vpatch.com
Hello thanks for the answer. Here are some more considerations: - basically my philosophy is KISS. keep it short and simple (or stupid if u prefer :)) ), so merging too many different things in a production environment can lead to a mjor headache when something goes wrong... I will anyway have a look at the products you mentioned because they can be very interesting, so thanks for the advice :) - how do you store session data? I thought there was a project running, but it was not completed.. - I am getting confused with the PTK-now-CMF portal basically because on the PTK-CMF page there are references to an alpha version which comes after a stable release with a smaller number...:) Thanks Stefano -----Messaggio originale----- Da: albert boulanger [mailto:aboulang@ldeo.columbia.edu] Inviato: giovedì 15 febbraio 2001 17.27 A: spinwing@inwind.it Cc: zope@zope.org Oggetto: Re: [Zope] Java and Zope ok, I have managed to read the docs and found all answers to my previous (and unfortunately html tagged, sorry for that) mail. But now a more subtle question, bear with me one moment: - if I want to use servlets, theorectically no problem, I can still install tomcat or whatever, use servlets, do what I want and answer back somehow to zope. That's fair enough - for more advanced things however I have to get crazy or rely on XML-RPC, which is a good thing, but after all is not 100% java compliant (am I wrong?) In any case I have to follow up with the effort of single willing programmers, and not sun or dc. Now I am asking myself: what if zope would be able to expose its interface also as java classes? Here are some questions: Another thing to consider (depending on you need for coupling) is to use some emerging "Federation" web server/portal standards like the XML-based WDDX for portal content exchange that the Alliare is pushing. I have also used sessions in Zope to store a servlet session id so that a PTK-now-CMF portal login also does a servlet login and session. The Plumtree Corporate Portal product method of communicating metadata between the portal web server and gadget web servers is another way to approach this. The Plumtree server acts just like a web browser to gadgets servers it uses to generate those portal content boxes. It uses http 1.1 to communicate meta information as http headers and cookies between the portal server and gadget server. The metadata that are communicated are things like user preferences, user id, gadget id, and url of the parent page. Regards, Albert Boulanger aboulanger@vpatch.com
From: "Spinwing" <spinwing@inwind.it> Cc: <zope@zope.org> Date: Fri, 16 Feb 2001 09:49:28 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Content-Type: text/plain; charset="iso-8859-1" Content-Length: 2599 Hello thanks for the answer. Here are some more considerations: - basically my philosophy is KISS. keep it short and simple (or stupid if u prefer :)) ), so merging too many different things in a production environment can lead to a mjor headache when something goes wrong... I will anyway have a look at the products you mentioned because they can be very interesting, so thanks for the advice :) - how do you store session data? I thought there was a project running, but it was not completed.. Zope session objects can store metadata including session IDs from tomcat say if you need to keep a session in Zope and Tomcat both. I have not figured out a simple way of doing all of this. Regards, Albert
Spinwing wrote:
- I am getting confused with the PTK-now-CMF portal basically because on the PTK-CMF page there are references to an alpha version which comes after a stable release with a smaller number...:)
The snapshots there are just that, snapshots; the best way to stay current with CMF (until the planned month-end release of "1.0") is to use a CVS checkout. * http://www.zope.org/Products/PTK/install_from_cvs The "0.10alpha" was a quickie release to get a tarball of the "recent" codebase out for people to use, without making any "1.0-ish" commitments. I expect to cut a "1.0alpha" this weekend, with a beta to follow fairly shortly. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org
participants (6)
-
albert boulanger -
Arno Gross -
Erik Enge -
Max M -
Spinwing -
Tres Seaver