[Zope] - PROPOSAL: Rearrange Zope Documents

Jim Fulton jim@Digicool.com
Wed, 09 Dec 1998 00:10:06 +0000


"Christopher G. Petrilli" wrote:
> 
> OK, this REALLY shouldn't be difficult, but I've tried every variation
> of '_' and everythign else I can think of, read the source, seen
> references to _p_mtime that don't seem to go anywhere... I'm obviously
> missing something hideously transparent...
> 
> How do I insert the time a document was last modified?
> 
> i.e. I wanna create standard_html_footer that has something like:
> 
> "Last modified: date here"
> 
> at the bottom.  I can't get anything to resolve correctly.


The problem is that Documents are not what you think they
are.  They are miss-named.  They should be called "DTML Methods".

There should be another kind of object called "DTML Documents"
that are meant to be the source of information, not a method.
They should have properties and search their own attribute namespace
before their folder's.  Then, when a DTML method, like 
standard_html_footer, was used in a DTML document, 
and had:

  <!--#var bobobase_modification_time-->

the modification time of the DTML document would be
inserted.

I propose, by the end of the Zope beta period to:

  - Rename Document to "DTML Method", 

  - Add a new object type, "DTML Document", and

  as a bonus:

  - Add a new object type, "Structured Text Document", 
    that would use Structured text input and allow DTML
    tags to be interspursed, possibly using the Python
    string format or some other less-verbose format than
    SSI.

Jim

--
Jim Fulton           mailto:jim@digicool.com
Technical Director   (540) 371-6909              Python Powered!
Digital Creations    http://www.digicool.com     http://www.python.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.