modelx/core/base.py
def _baseattrs(self):
        """A dict of members expressed in literals"""

        result = {"type": type(self).__name__}
        try:
            result["items"] = {
                name: item._baseattrs
                for name, item in self.items()
                if name[0] != "_"
            }
        except:
            raise RuntimeError("%s literadict raised an error" % self)

        return result
def _baseattrs(self):
        """A dict of members expressed in literals"""

        result = {"type": type(self).__name__}
        try:
            result["items"] = {
                name: item._baseattrs
                for name, item in self.items()
                if name[0] != "_"
            }
        except:
            raise RuntimeError("%s literadict raised an error" % self)

        return result
def _baseattrs ( self ) : result = { "type" : type ( self ) . __name__ } try : result [ "items" ] = { name : item . _baseattrs for name , item in self . items ( ) if name [ 0 ] != "_" } except : raise RuntimeError ( "%s literadict raised an error" % self ) return result
A dict of members expressed in literals
A dict of members expressed in literals