Browse files

Workaround for lazy_tables

  • Loading branch information...
1 parent 34fb611 commit aa25103e9c37921a34a225b8e82ca0f8634ca831 @rochacbruno committed Sep 12, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 modules/movuca.py
View
5 modules/movuca.py
@@ -13,6 +13,9 @@
class DataBase(DAL):
def __init__(self, classes=[]):
+ self._LAZY_TABLES = {}
+ self._lazy_tables = {}
+ self._tables = {}
from gluon import current
self.request = current.request
self.session = current.session
@@ -42,6 +45,8 @@ def __init__(self, classes=[]):
self.define_classes(classes)
def define_classes(self, classes):
+ self._LAZY_TABLES = {}
+ self._lazy_tables = {}
for cls in classes:
obj = cls(self)
self.__setattr__(cls.__name__, obj.entity)

0 comments on commit aa25103

Please sign in to comment.