[Zope-dev] Custom Formats

James W. Howe jwh@allencreek.com
Thu, 09 Mar 2000 09:38:41 -0500


I originally asked this question on the Zope mailing list but didn't 
receive any replies.  Hopefully someone on this list might be able to help...

I'm interested in creating a custom format similar, but more limited, than 
the structured-text format.  Is there a way to accomplish this without 
hacking on the base Zope code?  From the description I found in the Zope 
documentation, it says that the value of a custom format is the "method 
name evaluated upon the object to be inserted".  If I'm accessing a 
DTML_method wouldn't this mean that I would have to add something to 
DTML_Method (or create my own subclass?)  Is there a better way to 
accomplish this task?

What I'm trying to do is provide a way for my user to enter textual 
information without requiring the use of HTML.  I want visible paragraphs 
to be translated into <p></p> delimited paragraphs, standard URL 
specifications to get translated into real links, and I want to provide a 
small number of additional formatting options.  Any ideas on good ways to 
accomplish this task would be appreciated.

Thanks.

James W. Howe				mailto:jwh@allencreek.com
Allen Creek Software, Inc.		pgpkey: http://ic.net/~jwh/pgpkey.html		
Ann Arbor, MI  48103