[Zope] Kaivo Document Library customisation?
Casey Duncan
casey@zope.com
Tue, 10 Sep 2002 10:58:53 -0400
Something like:
<dtml-in docs>
<dtml-var title>
Last modified <dtml-var bobobase_modification_time fmt=3D"%B %YYYY">
<dtml-var identifier>
</dtml-in>
This just loops through the "docs" argument passed into the dtml method f=
rom=20
the script which contains a list of the documents that need updating. Ins=
ide=20
the dtml-in, all of the properties of the document are available.
-Casey
On Tuesday 10 September 2002 08:50 am, Richard Hewison wrote:
> The python script works fine, but we just need a little more of a nudge
> in regards to the content of our dtml-method for the email!
>=20
> How do we pull in the 'title' and 'filename' properties from each
> submitted document object into the email? What do we put in the dtml
> method instead? It doesn't recognise <dtml-var name=3D"title"> or
> <dtml-var name=3D"filename">, so how do we pull these properties throug=
h
> into the 'send_update_email' method?
>=20
> It currently looks like this:
>=20
> <dtml-sendmail smtphost=3D"our mailhost details">
> To: <dtml-var name=3D"email">
> From: my email address
> Cc: my email address
> Subject: Your ICT document(s) are now 6 months old
>=20
> *This is a test email from the Library which is still in development.
> You do not need to do anything at this stage. Thank You.*
>=20
> Please look at the following document(s) in the Library:
>=20
> <dtml-var's for title and filename go here?>
>=20
> The above documents are 6 months old and need to be re-visited. Please
> check that
> the information is still relevant and up-to-date. If it is not, please
> update the
> document accordingly and submit the new version using the submit
> document form
> located at:
>=20
> http://submit_document URL
>=20
> Thank you
>=20
> </dtml-sendmail>
>=20
> I'm assuming that we would need to augment the python script somehow?
>=20
>=20
>=20
> Richard Hewison
>=20
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -=20
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>=20