[R schema] dont give an iterator, it's a trap
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 31 Jul 2009 23:33:05 +0200
changeset 2598 a66fe74bd9fc
parent 2597 d9c5a7e0563c
child 2599 79bd12769c55
[R schema] dont give an iterator, it's a trap
schema.py
--- a/schema.py	Fri Jul 31 23:32:07 2009 +0200
+++ b/schema.py	Fri Jul 31 23:33:05 2009 +0200
@@ -869,9 +869,9 @@
         """
         self.info('loading %s schemas', ', '.join(config.cubes()))
         if config.apphome:
-            path = reversed([config.apphome] + config.cubes_path())
+            path = tuple(reversed([config.apphome] + config.cubes_path()))
         else:
-            path = reversed(config.cubes_path())
+            path = tuple(reversed(config.cubes_path()))
         try:
             return super(CubicWebSchemaLoader, self).load(config, path=path, **kwargs)
         finally: