Changeset 4868a32 in rattail


Ignore:
Timestamp:
11/02/2022 02:25:42 PM (3 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
606b3f7
Parents:
5900035
Message:

Include make_filename() method for new poser report

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/templates/poser/reports/base.mako

    r5900035 r4868a32  
    4848
    4949        return []
     50
     51    % if include_comments:
     52    # nb. this determines the output filename; note that you have
     53    # access to the full report data here in addition to params.
     54    % endif
     55    def make_filename(self, session, params, data, **kwargs):
     56        return "{}.xlsx".format(self.name)
    5057</%def>
Note: See TracChangeset for help on using the changeset viewer.