示例#1
0
    def get_gg(self, mf):
        ndp = mf.get_ndp()
        library =mf.get_library()
        
        yourname = None 
        if self.labeled:
            if hasattr(ndp, ATTR_LOAD_NAME):
                yourname = getattr(ndp, ATTR_LOAD_NAME)

        from mocdp.comp.composite_templatize import ndp_templatize
        ndp = ndp_templatize(ndp, mark_as_template=False)
        
        images_paths = library.get_images_paths() if library else []
    
        from mcdp_report.gg_ndp import gvgen_from_ndp
        gg = gvgen_from_ndp(ndp, self.style, yourname=yourname,
                            images_paths=images_paths, direction=self.direction,
                            skip_initial=True)
        return gg
示例#2
0
    def get_gg(self, mf):
        ndp = mf.get_ndp()
        image_source = mf.get_image_source()

        yourname = None
        if self.labeled:
            if hasattr(ndp, MCDPConstants.ATTR_LOAD_NAME):
                yourname = getattr(ndp, MCDPConstants.ATTR_LOAD_NAME)

        from mocdp.comp.composite_templatize import ndp_templatize
        ndp = ndp_templatize(ndp, mark_as_template=False)

        gg = gvgen_from_ndp(ndp=ndp,
                            style=self.style,
                            yourname=yourname,
                            image_source=image_source,
                            direction=self.direction,
                            skip_initial=True)
        return gg
示例#3
0
def eval_ndp_make_template(r, context):
    ndp = eval_ndp(r.dp_rvalue, context)
    from mocdp.comp.composite_templatize import ndp_templatize
    return ndp_templatize(ndp, mark_as_template=False)
示例#4
0
def eval_ndp_make_template(r, context):
    ndp = eval_ndp(r.dp_rvalue, context)
    from mocdp.comp.composite_templatize import ndp_templatize
    return ndp_templatize(ndp, mark_as_template=False)