1.1.7.2.3. gnr.web.batch.btcprint - batches for prints

Last page update: November 23, 2011

Classes:

Complete reference:

1.1.7.2.3.1. BaseResourcePrint - webpage variables

With the term webpages variables we mean that there are some defined variables that you can use to customize the class to which they belong (in this case, the BaseResourcePrint class). They are:

1.1.7.2.3.1.1. batch_immediate

TODO. Default value is False

1.1.7.2.3.1.2. batch_print_modes

TODO

1.1.7.2.3.1.3. batch_mail_modes

TODO

1.1.7.2.3.1.4. dialog_height

A string with the print setting dialog height. Default value is 300px

1.1.7.2.3.1.5. dialog_height_no_par

TODO. Default value is 245px

1.1.7.2.3.1.6. dialog_width

A string with the print setting dialog width. Default value is 460px

1.1.7.2.3.1.7. html_res

MANDATORY. Specify the location path of the print layout file. The root of the path you specify is:

projectName/packages/packageName/resources/tables/tableName/

Example:

if you write:

html_res='html_builder/doctor_performances'

then the location path of your print layout file must be:

projectName/packages/packageName/resources/tables/tableName/html_builder/doctor_performances

where html_builder is a folder you created and doctor_performances is the name of your print layout file

1.1.7.2.3.1.8. mail_address

Allow to send emails to the corresponding people that owns the data you want to print. It is mandatory that exists a column specified for the emails. Default value is None

For example, if you create a print with the invoices of 10 doctors, you can choose to send an email to them with their relative invoices.

The syntax is:

mail_address = 'fieldName'

where fieldName is the name of the field that contains the doctors’ emails in the database model table

1.1.7.2.3.1.9. mail_tags

Specify the authorization level needed by the customer to send print through email: if the user has the same authorization level of the mail_tags level, then he can use some additional options of the print setting dialog (the PDF by mail and the Deliver mails)

For more information, check the print region section

1.1.7.2.3.1.10. templates

A string with the names of the html templates separated by a comma. More information in the TODO section of the html template page

1.1.7.2.3.2. gnr.web.batch.btcprint - The complete reference list

class gnr.web.batch.btcprint.BaseResourcePrint(*args, **kwargs)

Base resource to make a print

onRecordExit(record=None)

Hook method.

Parameters:record – the result records of the executed batch