Beispiel #1
0
 async def async_set(self, key: str, value: IResource) -> None:
     """
     Asynchronously set an object in this folder
     """
     value.__parent__ = self
     value.__name__ = key
     if self._p_jar is not None:
         value._p_jar = self._p_jar
         self._p_jar.register(value)
Beispiel #2
0
 async def async_set(self, key: str, value: IResource) -> None:
     """
     Asynchronously set an object in this folder
     """
     value.__parent__ = self
     value.__name__ = key
     trns = self._get_transaction()
     if trns is not None:
         value._p_jar = trns
         trns.register(value)