# Path: oroboros/core/cfg.py
# def load():
# def save():
# def _test():
# 
# Path: oroboros/gui/names.py



from PyQt4.QtCore import *
from PyQt4.QtGui import *
from oroboros.core import cfg
from oroboros.gui import names
    from docutils.core import publish_parts
import swisseph as swe
    return txt[:-5]


def html_intermidpoints(aspres):
    """Get html output for midp/midp aspects.

    :type aspres: InterMidPointAspectDataList
    :rtype: str
    """
    txt = ''
    for e in aspres:
        txt += _html_intermidp_aspects(e)
    return txt[:-5]


def _html_intermidp_aspects(res):
    """Format inter-midpoints aspects.

    :type res: InterMidPointAspect
    :rtype: str
    """
    if res._apply == True:
        applic = tr('A', 'Aspect applying')
    elif res._apply == False:
        applic = tr('S', 'Aspect separating')
    else:
        applic = tr('-', 'Aspect stable')
    fmt = unicode(tr('%(p1)s/%(p2)s <i>%(asp)s</i> %(p3)s/%(p4)s %(delta)s%(diff).2f%(deg)s %(applic)s (%(factor).0f%%)<br/>',
        'Midpoint aspect display'))
    p1 = names.objects[res._data1._data1._planet._name]

# Path: oroboros/core/cfg.py
# def load():
# def save():
# def _test():
# 
# Path: oroboros/gui/names.py



# Path: oroboros/gui/chthtml.py
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from oroboros.core import cfg
from oroboros.gui import names
    from docutils.core import publish_parts
import swisseph as swe

    return txt[:-5]


def html_intermidpoints(aspres):
    """Get html output for midp/midp aspects.

    :type aspres: InterMidPointAspectDataList
    :rtype: str
    """
    txt = ''
    for e in aspres:
        txt += _html_intermidp_aspects(e)
    return txt[:-5]


def _html_intermidp_aspects(res):
    """Format inter-midpoints aspects.

    :type res: InterMidPointAspect
    :rtype: str
    """
    if res._apply == True:
        applic = tr('A', 'Aspect applying')
    elif res._apply == False:
        applic = tr('S', 'Aspect separating')
    else:
        applic = tr('-', 'Aspect stable')
    fmt = unicode(tr('%(p1)s/%(p2)s <i>%(asp)s</i> %(p3)s/%(p4)s %(delta)s%(diff).2f%(deg)s %(applic)s (%(factor).0f%%)<br/>',
        'Midpoint aspect display'))
    p1 = names.objects[res._data1._data1._planet._name]

    p2 = names.objects[res._data1._data2._planet._name]