[Checkins] SVN: z3c.caching/trunk/src/z3c/caching/registry.py Force the rule id to be an ascii string

Matthew Wilkes matthew at matthewwilkes.co.uk
Mon Dec 28 14:23:19 EST 2009


Log message for revision 107225:
  Force the rule id to be an ascii string

Changed:
  U   z3c.caching/trunk/src/z3c/caching/registry.py

-=-
Modified: z3c.caching/trunk/src/z3c/caching/registry.py
===================================================================
--- z3c.caching/trunk/src/z3c/caching/registry.py	2009-12-28 18:16:47 UTC (rev 107224)
+++ z3c.caching/trunk/src/z3c/caching/registry.py	2009-12-28 19:23:19 UTC (rev 107225)
@@ -36,6 +36,8 @@
         self.registry = registry
 
     def register(self, obj, rule):
+        rule = str(rule) # We only want ascii, tyvm
+        
         factory = get_context_to_cacherule_adapter_factory(rule)
         existing = self.directLookup(obj)
         if existing is None:



More information about the checkins mailing list