Skip to content

Commit

Permalink
More xhtml output
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Feb 3, 2017
1 parent e0365a2 commit c0d208d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/dt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3491,6 +3491,8 @@ def info(self, extra=None, relative_paths=True):
else:
di = str(di)
a.set_jrow_loc(rownum, 'DICTIONARY', di)
else:
a.set_jrow_loc(rownum, 'DICTIONARY', ' ')


## Content: Expr
Expand Down
10 changes: 10 additions & 0 deletions py/model_reporter/xhtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def iter_cats(self, cats):
poss += ['& ( all registered special sections )']
poss += ['#BLAH BLAH ( A level 2 header )']
poss += ['?REGEX ( search for matches among registered special sections )']
poss += ['formal ( title, blurb, params, LL, utilityspec, nesting_tree )']
poss += ['ch_av ( summary of choice and availability by alternative, up to 50 )']
poss += ['ch_av_all ( summary of choice and availability by alternative, all alts )']
poss_incl.add('ch_av')
Expand All @@ -74,6 +75,11 @@ def iter_cats(self, cats):
poss += [k[4:]]
poss_incl.add(k[4:])
raise TypeError('Possibilities...\n'+'\n'.join(poss))

elif i=='formal':
for j in ('title', 'blurb', 'params', 'll', 'utilityspec',) + ( ('nesting_tree',) if len(self.node)>0 else () ):
if j not in discovered: yield j
discovered.add(j)

elif i=='!':
for j in ('title', 'possible_overspecification', 'params', 'll', 'latest'):
Expand Down Expand Up @@ -2812,3 +2818,7 @@ def xhtml_blurb(self, h_stepdown=2, **format):

return blurb_div



def xhtml_dt_info(self, **format):
return self.df.info(3).__xml__()

0 comments on commit c0d208d

Please sign in to comment.