Module gmForms
source code
GNUmed forms classes
Business layer for printing all manners of forms, letters, scripts
etc.
license: GPL
Version:
$Revision: 1.79 $
Author:
Ian Haywood <ihaywood@gnu.org>, karsten.hilbert@gmx.net
|
get_form_template(name_long=None,
external_version=None) |
source code
|
|
|
get_form_templates(engine=None,
active_only=False)
Load form templates. |
source code
|
|
|
create_form_template(template_type=None,
name_short=None,
name_long=None) |
source code
|
|
|
|
|
|
|
get_form(id)
Instantiates a FormEngine based on the form ID or name from the
backend |
source code
|
|
|
|
|
|
|
|
|
form_engine_abbrevs = [ u' O ' , u' L ' ]
|
|
form_engine_names = { u' L ' : ' LaTeX ' , u' O ' : ' OpenOffice ' }
|
|
form_engines = { u' L ' : <class 'Gnumed.business.gmForms.cLaTeXFo...
|
|
uno = None
|
|
cOOoDocumentCloseListener = None
|
|
engines = { u' L ' : <class 'Gnumed.business.gmForms.cLaTeXForm'>}
|
|
test_letter = ' \n\\documentclass{letter}\n\\address{ $DOCTOR \ ...
|
Imports:
sys,
time,
os,
logging,
codecs,
regex,
shutil,
random,
platform,
gmTools,
gmBorg,
gmMatchProvider,
gmExceptions,
gmDispatcher,
gmPG2,
gmBusinessDBObject,
gmCfg,
gmShellAPI,
gmMimeLib,
gmLog2,
gmPerson,
gmSurgery
FIXME: consider this:
try:
import uno
except:
print "This Script needs to be run with the python from OpenOffice.org"
print "Example: /opt/OpenOffice.org/program/python %s" % (
os.path.basename(sys.argv[0]))
print "Or you need to insert the right path at the top, where uno.py is."
print "Default: %s" % default_path
|
form_engines
- Value:
{ u' L ' : <class 'Gnumed.business.gmForms.cLaTeXForm'>}
|
|
test_letter
- Value:
'''
\\documentclass{letter}
\\address{ $DOCTOR \\\\
$DOCTORADDRESS}
\\signature{$DOCTOR}
\\begin{document}
\\begin{letter}{$RECIPIENTNAME \\\\
...
|
|