Allow to use globals in domain and states
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
* Allow to use globals in domain and states
|
||||
* Add translate attribute on Selection field
|
||||
* Use explicit join in search SQL query
|
||||
* Fix for host with IPv6 enable but without default IPv6 route
|
||||
|
||||
+14
-1
@@ -262,8 +262,21 @@ class EvalEnvironment(dict):
|
||||
return super(EvalEnvironment, self).__getitem__(item)
|
||||
|
||||
def __getattr__(self, item):
|
||||
return self.__getitem__(item)
|
||||
try:
|
||||
return self.__getitem__(item)
|
||||
except:
|
||||
pass
|
||||
return super(EvalEnvironment, self).__getattr__(item)
|
||||
|
||||
def get(self, item):
|
||||
try:
|
||||
return self.__getitem__(item)
|
||||
except:
|
||||
pass
|
||||
return super(EvalEnvironment, self).get(item)
|
||||
|
||||
def __nonzero__(self):
|
||||
return bool(self.obj)
|
||||
|
||||
class ORM(object):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user