[Zope-CMF] Re: Adding support for ReST to Document.py

Tres Seaver tseaver at palladion.com
Mon Jun 11 16:07:21 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jens Vagelpohl wrote:
> 
> On 11 Jun 2007, at 18:05, Charlie Clark wrote:
>> Back to my original problem: it's easy enough to edit Document.py
>> and document_edit_template. However, I note that the browser/
>> document.py does some kind of lookup for supported text formats. Is
>> this what Tres was referring to? How do I register restructured for
>> use for anything using formlib?
> 
> See the very top of CMFDefault/browser/document.py, there's a simple
> hardcoded structure.
> 
> 
>> BTW - should we keep NewsItem as a separate Python module? The
>> difference between a NewsItem and a Document is minimal and
>> essentially one of presentation and this should surely be handled
>> by the registration.
> 
> I don't think this is an issue worth devoting time to.

More the the point, there are thousands of persistent instances whose
class is 'Products.CMFDefault.NewsItem.NewsItem':  We'd have to replace
the class with some much-more-obscure BBB code.


"Persistence means always having to say you're sorry." -- Seaver's Law



Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGbat4+gerLs4ltQ4RAqKyAJ0dUgbtmeWE72qsL0VsQjE8dOkYvQCgwILP
spKZpdzkO+VlFsszXXHHIYg=
=CRcz
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list