def testDeleteObjetMakesDiry(self):
     from euphorie.content.behaviour.dirtytree import isDirty
     from euphorie.content.behaviour.dirtytree import clearDirty
     self.loginAsPortalOwner()
     survey = self.create()
     survey.invokeFactory("euphorie.module", "module")
     clearDirty(survey)
     del survey["module"]
     self.assertEqual(isDirty(survey), True)
示例#2
0
    def testDeleteObjetMakesDiry(self):
        from euphorie.content.behaviour.dirtytree import isDirty
        from euphorie.content.behaviour.dirtytree import clearDirty

        self.loginAsPortalOwner()
        survey = self.create()
        survey.invokeFactory("euphorie.module", "module")
        clearDirty(survey)
        del survey["module"]
        self.assertEqual(isDirty(survey), True)
 def testModifyObjectMakesDirty(self):
     from euphorie.content.behaviour.dirtytree import isDirty
     from euphorie.content.behaviour.dirtytree import clearDirty
     from zope.event import notify
     from zope.lifecycleevent import ObjectModifiedEvent
     self.loginAsPortalOwner()
     survey = self.create()
     survey.invokeFactory("euphorie.module", "module")
     clearDirty(survey)
     notify(ObjectModifiedEvent(survey["module"]))
     self.assertEqual(isDirty(survey), True)
示例#4
0
    def testModifyObjectMakesDirty(self):
        from euphorie.content.behaviour.dirtytree import isDirty
        from euphorie.content.behaviour.dirtytree import clearDirty
        from zope.event import notify
        from zope.lifecycleevent import ObjectModifiedEvent

        self.loginAsPortalOwner()
        survey = self.create()
        survey.invokeFactory("euphorie.module", "module")
        clearDirty(survey)
        notify(ObjectModifiedEvent(survey["module"]))
        self.assertEqual(isDirty(survey), True)
示例#5
0
 def testModifyObjectMakesDirty(self):
     survey = self.create()
     survey.invokeFactory("euphorie.module", "module")
     clearDirty(survey)
     notify(ObjectModifiedEvent(survey["module"]))
     self.assertEqual(isDirty(survey), True)
示例#6
0
 def testDeleteObjetMakesDiry(self):
     survey = self.create()
     survey.invokeFactory("euphorie.module", "module")
     clearDirty(survey)
     del survey["module"]
     self.assertEqual(isDirty(survey), True)