Changeset 1505


Ignore:
Timestamp:
Feb 8, 2014 1:55:48 PM (8 years ago)
Author:
jemian
Message:

refs #57, separate rest_table source from this project, now available for install via:

pip install pyRestTable

or

easy_install -U pyRestTable

Location:
topdoc/trunk/src
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • topdoc/trunk/src/topdoc/database.py

    r1503 r1505  
    103103from topdoc import *
    104104import TokenLog
    105 from bcda.rest_table import Table
     105import pyRestTable
    106106
    107107
     
    293293        rst.append(h1*len(title))
    294294        rst.append('')
    295         t = Table()
     295        t = pyRestTable.Table()
    296296        t.labels = ('record type', 'quantity', )
    297297        for rtyp, qty in sorted(self.rtyp_summary().items()):
     
    317317            row.append('\n'.join(['* '+replaceMacros(item, **macros) for item in pv.alias]))
    318318            rows[pv.line_number] = row
    319         t = Table()
     319        t = pyRestTable.Table()
    320320        t.labels = ['line#', 'record type', 'PV name', ]
    321321        if len(macros) > 0:
     
    331331        title = 'PV Info'
    332332        h1 = underlines[0]
    333         t = Table()
     333        t = pyRestTable.Table()
    334334        t.labels = ['line#', 'PV name', ]
    335335        if len(macros) > 0:
  • topdoc/trunk/src/topdoc/template.py

    r1503 r1505  
    66from topdoc import *
    77import database
    8 from bcda.rest_table import Table
     8import pyRestTable
    99import TokenLog
    1010
     
    160160            # note: assumes same number of patterns in each dict (safe assumption)
    161161            keylist = sorted(dbSpec.patterns[0].keys())
    162             t = Table()
     162            t = pyRestTable.Table()
    163163            t.labels = keylist
    164164            for pattern in dbSpec.patterns:
Note: See TracChangeset for help on using the changeset viewer.