Contentlogic Object

class activelogic.ContentlogicObject

Object representing a ContentlogicObject.

>>> co = rs.add(ContentlogicObject('MyContentlogicObject', items=[("ifd: Entertainment", True)]))
>>> co = rs.add(ContentlogicObject('MyContentlogicObject', items=[("ifd: Music")]))
>>> co = rs.add(ContentlogicObject('MyContentlogicObject', items=[("ifd: Music", False)]))
class activelogic.ContentlogicObjectItem

Object representing an item of a ContentlogicObject.

Parameters:
  • value (str) – flag

  • unset (bool) – If this is set to True the flag in this item must be unset, otherwise the flag in this item must be set.

>>> ContentlogicObjectItem("ifd: Entertainment")
>>> ContentlogicObjectItem("ifd: Entertainment", unset=True)
>>> ContentlogicObjectItem("ifd: Entertainment", unset=False)