[Zope] All previous of a document

Meilicke, Scott scott.meilicke@intp.com
Fri, 29 Jun 2001 09:37:47 -0700


While I haven't done it, I'm guessing you could look into the code that the
History tab uses, and go from there.  Not exactly what you wanted to hear
probably :)

The History tab calls manage_change_history_page, so grepping through my
/lib/python directory:

./OSF/History.py makes reference to 'manage_change_history_page'

and searching for files with the word 'history' turns up:

lib\python\Products\CMFDefault\skins\content\content_status_history.dtml
lib\python\OFS\dtml\history.dtml
lib\python\OFS\dtml\historyCompare.dtml

Those may be places to start looking.

Scott

-----Original Message-----
From: Sedat Yilmazer [mailto:sedat@kibele.com]
Sent: Friday, June 29, 2001 8:53 AM
To: zope@zope.org
Subject: RE: [Zope] All previous of a document



I mean how can I access the older versions of a given document from
dtml/python 
something like 
  olddoc=doc.previous_version

 Sedat

-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Casey
Duncan
Sent: Friday, June 29, 2001 6:35 PM
To: Sedat Yilmazer
Cc: zope@zope.org
Subject: Re: [Zope] All previous of a document


Sedat Yilmazer wrote:
> 
> How Can I find previous versions ( versions that was overwritten) of a
document? There is the undo command that can undo an action to get you back
to the previous version, so the data is somehow there. Problem is How can I
reach that data without performing an undo.
> 
>  Sedat Yilmazer
> 

In DTML objects try the History tab.

-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )


_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )