[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] When a patient is deceased...

From: Karsten Hilbert
Subject: Re: [Gnumed-devel] When a patient is deceased...
Date: Sat, 22 Dec 2012 13:16:40 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Given this placeholder definition:

        u'documents',                                                   # 
"args" format:        <select>//<description>//<template>//<path 
        #       select:                 let user select which documents to 
        #                                       optional, if not given: all 
documents included
        #       description:    whether to include descriptions, optional
        #       template:               something %(field)s something else,
        #                                       (do not include "//" itself in 
the template),
        #       path template:  the template for outputting the path to exported
        #                                       copies of the document pages, 
if not given no pages
        #                                       are exported, this template can 
contain "%(name)s"
        #                                       and/or "%(fullpath)s" which is 
replaced by the
        #                                       appropriate value for each 
exported file
        #       path:                   into which path to export copies of the 
document pages,
        #                                       temp dir if not given

and this placeholder instance:

        u'$<documents::description//document %(clin_when)s: %(l10n_type)s// 
file: %(fullpath)s (<some path>/%(name)s)//~/gnumed/export/::>$',

will produce the attached result.

Carefully balancing "path template" and "path" will lead to
relative URLs which will work correctly relative to each
other from any base URL (removable media, archive).

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

Attachment: screenshot_001.png
Description: PNG image

reply via email to

[Prev in Thread] Current Thread [Next in Thread]