Ticket #1343 (new enhancement)

Opened 2 years ago

Last modified 2 weeks ago

[PATCH] Allow inversion of identity conditions in decorators

Reported by: ferguscan Assigned to: anonymous
Priority: normal Milestone: 1.1
Component: Identity Version: 1.0
Severity: normal Keywords: needs tests
Cc:

Description (Last modified by Chris Arndt)

Created a CompoundPredicate called NotAny, in the same vein as Any and All.

Attachments

none_predicate.diff.gz (322 bytes) - added by ferguscan on 03/29/07 20:31:37.
none_predicate2.diff (0.8 kB) - added by faide on 11/25/07 17:41:48.
same patch but with proper format

Change History

03/29/07 20:31:37 changed by ferguscan

  • attachment none_predicate.diff.gz added.

03/29/07 20:33:08 changed by ferguscan

Of course it's not called 'None'. It's called 'NotAny?'.

04/05/07 17:06:46 changed by alberto

Please take a look at the patching guidelines so it's easier to apply. A short unittest would be great... (take a look at turbogears/tests/test_identity.py for ideas).

Thanks! :)

Alberto

05/01/07 12:57:01 changed by alberto

  • milestone changed from 1.0.2 to 1.0.3.

07/23/07 13:26:45 changed by Chris Arndt

  • milestone changed from 1.0.3 to 1.0.4.

Batch promoting 1.0.3 tickets to Milestone 1.0.4

11/25/07 17:41:48 changed by faide

  • attachment none_predicate2.diff added.

same patch but with proper format

11/25/07 18:02:59 changed by faide

  • milestone changed from 1.0.4 to 1.1.

This predicate could be interesting, even if I have no use case for it at the moment. I recreated the patch to be in a proper format.

We still need at least one small test case to make sure it works as intended.

06/06/08 02:01:09 changed by faide

  • description changed.

08/24/08 10:26:59 changed by faide

  • milestone changed from 1.5 to 1.1.

09/23/08 09:45:44 changed by Chris Arndt

  • keywords set to needs tests.
  • description changed.

The new patch does not follow PEP257. This should be corrected before applying this.