ZClasses and default documents, and COM objects.
Hi all, I'm just starting to look at zClasses again and am having some difficulty in setting up default documents within the zClass. Let's say that I create a CD Product and want that CD to have a 'index_html' so that it can render itself. Where would I put the document so that it appears as a default and alos is editable by the user at a later date? On a similar tack, after creating the Product, what would be the correct call to create the Product from within an external method? I've been looking at this on and off for about a month and am getting no closer. On the subject of COM, I'm in the final stages of creating a product to convert Word Documents to HTML on the fly, taking the style sheet built into the document and creating an HTML4/CSS rendition of it. I know that there are Word->HTML converters around, but we have an awful lot of documents that need doing, and don't really want to convert them if no-ones going to look at them, this way since they get converted on the fly (and then cached and only reconverted if the original changes), only the documents that need converting get done. It's working sort of well for Word at the moment. Once that's done I'm moving on to Powerpoint then maybe other document types. I see this as an exciting way to do some complex stuff (on the cheap). Imagine being able to create maps from the Excel Map system and then show them via HTML with hotspots etc., or using Excel to do the Graphing, or even using it to create pivot table's etc. If anyone else has an interest in this then let me know. TIA Phil phil@philh.org
On Thu, 22 Jul 1999, Phil Harris wrote:
Hi all,
On the subject of COM, I'm in the final stages of creating a product to convert Word Documents to HTML on the fly, taking the style sheet built into the document and creating an HTML4/CSS rendition of it.
I know that there are Word->HTML converters around, but we have an awful lot of documents that need doing, and don't really want to convert them if no-ones going to look at them, this way since they get converted on the fly (and then cached and only reconverted if the original changes), only the documents that need converting get done.
If anyone else has an interest in this then let me know.
Damm! You beat me! I was going to start on this this weekend. My idea is to use Word (via WordArt) to generate titles on the fly. You would create a word doc with several pics in it with text='Sample'. When you called it the text is replaced and a gif/jpeg is generated (possibilly via PiL). This way, you get access to all your cool truetype fonts. ie: WordArt/Title/<title text>.gif Could you point me to a location where I can get some code (no use re-inventing the wheel ;) Cheers, Anthony Pfrunder Computer Systems Engineering University of Queensland
In article <Pine.OSF.4.10.9907230739280.10847-100000@student.uq.edu.au>, Anthony Pfrunder <s341625@student.uq.edu.au> writes
On Thu, 22 Jul 1999, Phil Harris wrote: ...
If anyone else has an interest in this then let me know.
Damm! You beat me! I was going to start on this this weekend. My idea is to use Word (via WordArt) to generate titles on the fly. You would create a word doc with several pics in it with text='Sample'. When you called it the text is replaced and a gif/jpeg is generated (possibilly via PiL). This way, you get access to all your cool truetype fonts. PIL has major problems inside Zope due to a naming clash ImageFile.py
ie: WordArt/Title/<title text>.gif
Could you point me to a location where I can get some code (no use re-inventing the wheel ;)
Cheers,
Anthony Pfrunder Computer Systems Engineering University of Queensland
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
-- Robin Becker
On Thu, 22 Jul 1999, Robin Becker wrote: Hi,
PIL has major problems inside Zope due to a naming clash ImageFile.py (other problem is a major conflict with Visual C 6.0+ basestd.h)
I use a hacked version of PiL which works fine. I have an extenal method based on PiLDriver.py if anyone wants it. However, I'm planning to avoid PiL and use WordArt via COM as it is a quicker way to generate "cool" titles ;) Cheers, Anthony Pfrunder Computer Systems Engineering University of Queensland
In article <Pine.OSF.4.10.9907230844120.28147-100000@student.uq.edu.au>, Anthony Pfrunder <s341625@student.uq.edu.au> writes
On Thu, 22 Jul 1999, Robin Becker wrote:
Hi,
PIL has major problems inside Zope due to a naming clash ImageFile.py (other problem is a major conflict with Visual C 6.0+ basestd.h)
I use a hacked version of PiL which works fine. I have an extenal method based on PiLDriver.py if anyone wants it. However, I'm planning to avoid PiL and use WordArt via COM as it is a quicker way to generate "cool" titles ;)
Cheers,
Anthony Pfrunder Computer Systems Engineering University of Queensland
the COM side is ok in Python, but what kind of images can you get from wordart? I particularly need graphs. -- Robin Becker
Hi Robin, How about using Excel to do the data analysis, then create a graph, and do some jiggery-pokery to convert the graph to GIF/JPEG, that's also something else I'm looking at. If you do anything with it, let me know, since it'll probably be a couple weeks before I even begin looking at it. See ya, Phil phil@philh.org ----- Original Message ----- From: Robin Becker <robin@jessikat.demon.co.uk> To: <zope@zope.org> Sent: Friday, July 23, 1999 2:59 AM Subject: Re: [Zope] ZClasses and default documents, and COM objects.
In article <Pine.OSF.4.10.9907230844120.28147-100000@student.uq.edu.au>, Anthony Pfrunder <s341625@student.uq.edu.au> writes
On Thu, 22 Jul 1999, Robin Becker wrote:
Hi,
PIL has major problems inside Zope due to a naming clash ImageFile.py (other problem is a major conflict with Visual C 6.0+ basestd.h)
I use a hacked version of PiL which works fine. I have an extenal method based on PiLDriver.py if anyone wants it. However, I'm planning to avoid PiL and use WordArt via COM as it is a quicker way to generate "cool" titles ;)
Cheers,
Anthony Pfrunder Computer Systems Engineering University of Queensland
the COM side is ok in Python, but what kind of images can you get from wordart? I particularly need graphs. -- Robin Becker
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
On Fri, 23 Jul 1999 02:59:34 +0100, you wrote:
the COM side is ok in Python, but what kind of images can you get from wordart? I particularly need graphs.
COM support is not quite seamless with both ZServer and PCGI, due to threading issues. Ill post some code to initialize COM correctly early next week. Hope this helps, Toby Dickenson
participants (4)
-
Anthony Pfrunder -
htrd90@zepler.org -
Phil Harris -
Robin Becker