[svn] fixed package loader in buffet plugin
authorArmin Ronacher <armin.ronacher@active-4.com>
Fri, 8 Jun 2007 11:02:38 +0000 (13:02 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Fri, 8 Jun 2007 11:02:38 +0000 (13:02 +0200)
--HG--
branch : trunk

jinja/plugin.py

index d05c5f8586190395a38620009b4f10d67dbb0e48..415a2e06e2146fa2bca2182aa77bbc869a7605a7 100644 (file)
@@ -39,11 +39,11 @@ class BuffetPlugin(object):
             memcache_size = opt.pop('memcache_size', 40)
             cache_folder = opt.pop('cache_folder', None)
             auto_reload = opt.pop('auto_reload', True)
-            if 'searchpath' in options:
+            if 'searchpath' in opt:
                 opt['loader'] = FileSystemLoader(opt.pop('searchpath'),
                                                  use_memcache, memcache_size,
                                                  cache_folder, auto_reload)
-            elif 'package' in options:
+            elif 'package' in opt:
                 opt['loader'] = PackageLoader(opt.pop('package'),
                                               opt.pop('package_path', ''),
                                               use_memcache, memcache_size,