Commit b2eff605 authored by Łukasz Nowak's avatar Łukasz Nowak

Revert "We should cache all information from vifib server."

This reverts commit e86433b1.

This commit has been not tested, and it was impossible to repair it quickly in
a060bed1
parent 2301b5a8
...@@ -212,8 +212,6 @@ def _syncComputerInformation(func): ...@@ -212,8 +212,6 @@ def _syncComputerInformation(func):
Synchronize computer object with server information Synchronize computer object with server information
""" """
def decorated(self, *args, **kw): def decorated(self, *args, **kw):
if getattr(self, '_synced', 0):
return func(self, *args, **kw)
# XXX: This is a ugly way to keep backward compatibility, # XXX: This is a ugly way to keep backward compatibility,
# We should stablise slap library soon. # We should stablise slap library soon.
try: try:
...@@ -226,9 +224,6 @@ def _syncComputerInformation(func): ...@@ -226,9 +224,6 @@ def _syncComputerInformation(func):
setattr(self, key, value.encode('utf-8')) setattr(self, key, value.encode('utf-8'))
else: else:
setattr(self, key, value) setattr(self, key, value)
setattr(self, '_synced', True)
for computer_partition in self.getComputerPartitionList():
setattr(computer_partition, '_synced', True)
return func(self, *args, **kw) return func(self, *args, **kw)
return decorated return decorated
...@@ -325,9 +320,6 @@ def _syncComputerPartitionInformation(func): ...@@ -325,9 +320,6 @@ def _syncComputerPartitionInformation(func):
setattr(self, key, new_dict) setattr(self, key, new_dict)
else: else:
setattr(self, key, value) setattr(self, key, value)
setattr(self, '_synced', True)
for computer_partition in self.getComputerPartitionList():
setattr(computer_partition, '_synced', True)
return func(self, *args, **kw) return func(self, *args, **kw)
return decorated return decorated
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment