Sha256: f64fdda15fa26671baedc3622999bd1aed4d95b8fa17868408a68fe050e89a74

Contents?: true

Size: 1.09 KB

Versions: 12

Compression:

Stored size: 1.09 KB

Contents

import Fields
import Styles

ReadableField: Fields::CheckboxField
    name        = "readable"
    field_label = "Disable Encoding"

TableReport:
    readable    =? nil
    pt_name     =? nil
    posting     = Marty::Posting.lookup(pt_name)
    pt          = posting.created_dt
    module_name =? nil
    class_name  =? nil
    title       =? (class_name || "Table Report") + (
        if pt_name then "_" + pt_name else "")
    sort_field  =? nil
    exclude_attrs =? nil

    result_raw  = Marty::DataChange.do_export(
        pt,
        if module_name then module_name + '::' + class_name else class_name,
        sort_field,
        exclude_attrs || [],
        )
    row_count   = result_raw.length
    result      = Marty::Helper.to_csv(result_raw, {'readable' : readable})
    form        = [
        Fields::PostingField,
        Fields::ClassField,
        ReadableField,
        ]
    format      = "csv"

UserReport:
    title   = "User List"
    roles   = ['admin', 'user_manager']
    raw     = Marty::User.export_for_report()
    result  = Marty::Helper.to_csv(raw)
    form    = []
    format  = "csv"

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
marty-14.3.0 delorean/table_report.dl
marty-14.0.0 delorean/table_report.dl
marty-13.0.2 delorean/table_report.dl
marty-11.0.0 delorean/table_report.dl
marty-10.0.3 delorean/table_report.dl
marty-10.0.2 delorean/table_report.dl
marty-10.0.0 delorean/table_report.dl
marty-9.5.1 delorean/table_report.dl
marty-9.5.0 delorean/table_report.dl
marty-9.3.3 delorean/table_report.dl
marty-9.3.2 delorean/table_report.dl
marty-9.3.0 delorean/table_report.dl