Ejemplo n.º 1
0
    def startElementNS(self, name, qname, attrs):
        if name == (NS_SILVA_URI, 'content'):
            version = self.createVersion(attrs)

            helpers.set_as_list(version, 'target_audiences', attrs)
            helpers.set_as_list(version, 'subjects', attrs)
            helpers.set_as_naive_datetime(version, 'display_datetime', attrs)