Sha256: fac3e3f7a4efca7e35813979d0458d10ab34f2a230d925b9be53bd525c603226

Contents?: true

Size: 937 Bytes

Versions: 68

Compression:

Stored size: 937 Bytes

Contents

import MartyFields
import Styles

ReadableField: MartyFields::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        = [
        MartyFields::PostingField,
        MartyFields::ClassField,
        ReadableField,
        ]
    format      = "csv"

Version data entries

68 entries across 34 versions & 1 rubygems

Version Path
marty-2.6.7 spec/dummy/delorean/table_report.dl
marty-2.6.7 delorean/table_report.dl
marty-2.6.6 spec/dummy/delorean/table_report.dl
marty-2.6.6 delorean/table_report.dl
marty-2.6.5 spec/dummy/delorean/table_report.dl
marty-2.6.5 delorean/table_report.dl
marty-2.6.4 spec/dummy/delorean/table_report.dl
marty-2.6.4 delorean/table_report.dl
marty-2.6.3 spec/dummy/delorean/table_report.dl
marty-2.6.3 delorean/table_report.dl
marty-2.6.2 spec/dummy/delorean/table_report.dl
marty-2.6.2 delorean/table_report.dl
marty-2.6.1 spec/dummy/delorean/table_report.dl
marty-2.6.1 delorean/table_report.dl
marty-2.6.0 spec/dummy/delorean/table_report.dl
marty-2.6.0 delorean/table_report.dl
marty-2.5.9 delorean/table_report.dl
marty-2.5.9 spec/dummy/delorean/table_report.dl
marty-2.5.8 spec/dummy/delorean/table_report.dl
marty-2.5.8 delorean/table_report.dl