Contact: fumanchu@aminus.org

Log in as guest/dejavu to create tickets

I think I've seen this ORM somewhere before...

Changeset 5

Show
Ignore:
Timestamp:
10/04/04 20:26:43
Author:
fumanchu
Message:

Fixed visit_FUNCTION rule to pass a sandbox.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/__init__.py

    r4 r5  
    8888 
    8989class UnitProperty(object): 
    90     """Dejavu.Unit data which will persist in storage. 
     90    """Data descriptor for Unit data which will persist in storage. 
    9191     
    9292    pre, post: Override these with functions to provide custom behaviors 
     
    220220                     descriptor=UnitProperty): 
    221221        """Set a Unit Property for cls.""" 
    222 ##        if hasattr(cls, key): 
    223 ##            raise ValueError(u"%s already has an attribute named '%s'." 
    224 ##                             % (cls, key)) 
    225222        setattr(cls, key, descriptor(cls, key, type, index)) 
    226223    set_property = classmethod(set_property) 
  • trunk/engines.py

    r4 r5  
    425425        A.acquire() 
    426426        try: 
    427             func(A) 
     427            func(self.sandbox, A) 
    428428        finally: 
    429429            A.release()