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-3.0.0 spec/dummy/delorean/table_report.dl
marty-3.0.0 delorean/table_report.dl
marty-2.9.3 spec/dummy/delorean/table_report.dl
marty-2.9.3 delorean/table_report.dl
marty-2.9.2 spec/dummy/delorean/table_report.dl
marty-2.9.2 delorean/table_report.dl
marty-2.9.1 spec/dummy/delorean/table_report.dl
marty-2.9.1 delorean/table_report.dl
marty-2.8.0 spec/dummy/delorean/table_report.dl
marty-2.8.0 delorean/table_report.dl
marty-2.7.3 spec/dummy/delorean/table_report.dl
marty-2.7.3 delorean/table_report.dl
marty-2.7.2 delorean/table_report.dl
marty-2.7.2 spec/dummy/delorean/table_report.dl
marty-2.7.1 spec/dummy/delorean/table_report.dl
marty-2.7.1 delorean/table_report.dl
marty-2.7.0 spec/dummy/delorean/table_report.dl
marty-2.7.0 delorean/table_report.dl
marty-2.6.8 delorean/table_report.dl
marty-2.6.8 spec/dummy/delorean/table_report.dl