def __call__(self): if not is_officeatwork_feature_enabled(): raise Unauthorized ocmfile = OCMFile.for_officeatwork(self.context) if not ocmfile: raise Unauthorized return ocmfile.dump()
def test_true_if_registry_entry_is_true(self): api.portal.set_registry_record('is_feature_enabled', True, interface=IOfficeatworkSettings) self.assertTrue(is_officeatwork_feature_enabled())
def __call__(self): return is_officeatwork_feature_enabled()
def test_true_if_registry_entry_is_true(self): api.portal.set_registry_record( 'is_feature_enabled', True, interface=IOfficeatworkSettings) self.assertTrue(is_officeatwork_feature_enabled())