Ejemplo n.º 1
0
    def afterSetUp(self):
        self.contact_install()
        from Products.NaayaContent.NyContact.NyContact import addNyContact

        addNyContact(self.portal.info, id="ver_contact", title="ver_contact", submitted=1)
        import transaction

        transaction.commit()
Ejemplo n.º 2
0
    def afterSetUp(self):
        self.contact_install()
        from Products.Naaya.NyFolder import addNyFolder
        from Products.NaayaContent.NyContact.NyContact import addNyContact

        addNyFolder(self.portal, "myfolder", contributor="contributor", submitted=1)
        addNyContact(self.portal.myfolder, id="mycontact", title="My contact", submitted=1, contributor="contributor")
        import transaction

        transaction.commit()