Hi This is propably an FAQ but I couldn't find an answer to it: I'm extending a product which has a java applet on one of the management screens. How do I get the class file and the jar? I've tried something like: --cut------------- def my_jar(self, REQUEST): return self._my_jar _my_jar = File('www/my.jar') --cut------------- but that absolutely didn't work... -- Regards Thomas Olsen
Thomas Olsen writes:
This is propably an FAQ but I couldn't find an answer to it: I'm extending a product which has a java applet on one of the management screens. How do I get the class file and the jar? I've tried something like:
--cut------------- def my_jar(self, REQUEST): return self._my_jar
_my_jar = File('www/my.jar') --cut-------------
but that absolutely didn't work... And what happened?
A few more questions (we need more context): * what is the "File" above. Where did you get it from? * usually, you should not simply return objects but rather their content. If "_my_jar" is really a "OFS.Image.File" object, then you may succeed, as ZPublisher will convert the object returned into a string, which give the content for a "File" object. Dieter
participants (2)
-
Dieter Maurer -
Thomas Olsen