Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(31)  |  Call(16)  |  Derive(0)  |  Import(15)
'Attribute Bag' - a trivial BAG class for holding attributes.

This predates modern Python.  Doing this again, we'd use a subclass
of dict.

You may initialize with keyword arguments.
a = ABag(k0=v0,....,kx=vx,....) ==> getattr(a,'kx')==vx

c = a.clone(ak0=av0,.....) copy with optional additional attributes.

src/d/j/django-admin-report-HEAD/example/lib/sx/pisa3/pisa_tags.py   django-admin-report(Download)
from reportlab.lib.styles import ParagraphStyle
from reportlab.platypus.flowables import *
from reportlab.platypus.paraparser import tt2ps, ABag
 
from reportlab_paragraph import cleanBlockQuotedText
            afrag.italic =  0 
            afrag.cbDefn = ABag(
                kind="anchor",
                name=attr.name,
                label="anchor")            
                    afrag.fontName="Helvetica" # Fix for a nasty bug!!!
                    afrag.cbDefn = ABag(
                        kind="img",
                        image=img, #.getImage(), # XXX Inline?
                        valign=valign,

src/w/e/web2py-appreport-HEAD/modules/plugin_appreport/libs/appreport/libs/pisa/xhtml2pdf/sx/pisa3/pisa_tags.py   web2py-appreport(Download)
from reportlab.lib.styles import ParagraphStyle
from reportlab.platypus.flowables import *
from reportlab.platypus.paraparser import tt2ps, ABag
 
from reportlab_paragraph import cleanBlockQuotedText
            afrag.italic =  0 
            afrag.cbDefn = ABag(
                kind="anchor",
                name=attr.name,
                label="anchor")            
                    afrag.fontName="Helvetica" # Fix for a nasty bug!!!
                    afrag.cbDefn = ABag(
                        kind="img",
                        image=img, #.getImage(), # XXX Inline?
                        valign=valign,

src/i/e/iellos-HEAD/lib/sx/pisa3/pisa_tags.py   iellos(Download)
from reportlab.lib.styles import ParagraphStyle
from reportlab.platypus.flowables import *
from reportlab.platypus.paraparser import tt2ps, ABag
 
from reportlab_paragraph import cleanBlockQuotedText
            afrag.italic =  0 
            afrag.cbDefn = ABag(
                kind="anchor",
                name=attr.name,
                label="anchor")            
                    afrag.fontName="Helvetica" # Fix for a nasty bug!!!
                    afrag.cbDefn = ABag(
                        kind="img",
                        image=img, #.getImage(), # XXX Inline?
                        valign=valign,

src/p/i/pisa-3.0.33/sx/pisa3/pisa_tags.py   pisa(Download)
from reportlab.lib.styles import ParagraphStyle
from reportlab.platypus.flowables import *
from reportlab.platypus.paraparser import tt2ps, ABag
 
from reportlab_paragraph import cleanBlockQuotedText
            afrag.italic =  0 
            afrag.cbDefn = ABag(
                kind="anchor",
                name=attr.name,
                label="anchor")            
                    afrag.fontName="Helvetica" # Fix for a nasty bug!!!
                    afrag.cbDefn = ABag(
                        kind="img",
                        image=img, #.getImage(), # XXX Inline?
                        valign=valign,

src/x/h/xhtml2pdf-0.0.6/xhtml2pdf/tags.py   xhtml2pdf(Download)
from reportlab.platypus.flowables import Spacer, HRFlowable, PageBreak, Flowable
from reportlab.platypus.frames import Frame
from reportlab.platypus.paraparser import tt2ps, ABag
from xhtml2pdf import xhtml2pdf_reportlab
from xhtml2pdf.util import getColor, getSize, getAlign, dpi96
            afrag.italic = 0
            afrag.cbDefn = ABag(
                kind="anchor",
                name=attr.name,
                label="anchor")
                    afrag.fontName = "Helvetica" # Fix for a nasty bug!!!
                    afrag.cbDefn = ABag(
                        kind="img",
                        image=img, # .getImage(), # XXX Inline?
                        valign=valign,
        afrag.fontName = fontName
        afrag.cbDefn = ABag(
            kind="barcode",
            barcode=barcode,
            width=width,

src/x/h/xhtml2pdf-HEAD/sx/pisa3/pisa_tags.py   xhtml2pdf(Download)
from reportlab.lib.styles import ParagraphStyle
from reportlab.platypus.flowables import *
from reportlab.platypus.paraparser import tt2ps, ABag
 
from reportlab_paragraph import cleanBlockQuotedText
            afrag.italic =  0 
            afrag.cbDefn = ABag(
                kind="anchor",
                name=attr.name,
                label="anchor")            
                    afrag.fontName="Helvetica" # Fix for a nasty bug!!!
                    afrag.cbDefn = ABag(
                        kind="img",
                        image=img, #.getImage(), # XXX Inline?
                        valign=valign,

src/w/m/wms-HEAD/sx/pisa3/pisa_tags.py   wms(Download)
from reportlab.lib.styles import ParagraphStyle
from reportlab.platypus.flowables import *
from reportlab.platypus.paraparser import tt2ps, ABag
 
from reportlab_paragraph import cleanBlockQuotedText
            afrag.italic =  0 
            afrag.cbDefn = ABag(
                kind="anchor",
                name=attr.name,
                label="anchor")            
                    afrag.fontName="Helvetica" # Fix for a nasty bug!!!
                    afrag.cbDefn = ABag(
                        kind="img",
                        image=img, #.getImage(), # XXX Inline?
                        valign=valign,

src/d/j/django-project-HEAD/project/sx/pisa3/pisa_tags.py   django-project(Download)
from pisa_default import DEFAULT_CSS
 
from reportlab.platypus.paraparser import ParaParser, ParaFrag, ps2tt, ABag
from reportlab.platypus.paragraph import cleanBlockQuotedText
from reportlab.platypus.flowables import *
    def start(self, c):
        attr = self.attr
        if attr.name:
            afrag = c.newFrag(cbDefn = ABag(
                kind = "anchor",

src/d/j/django-admin-report-HEAD/example/lib/sx/pisa3/pisa_context.py   django-admin-report(Download)
import types
 
from reportlab.platypus.paraparser import ParaParser, ParaFrag, ps2tt, tt2ps, ABag
from reportlab.platypus.paragraph import cleanBlockQuotedText
from reportlab.lib.styles import ParagraphStyle

src/w/e/web2py-appreport-HEAD/modules/plugin_appreport/libs/appreport/libs/pisa/xhtml2pdf/sx/pisa3/pisa_context.py   web2py-appreport(Download)
import types
 
from reportlab.platypus.paraparser import ParaParser, ParaFrag, ps2tt, tt2ps, ABag
from reportlab.platypus.paragraph import cleanBlockQuotedText
from reportlab.lib.styles import ParagraphStyle

  1 | 2  Next