Martin Sivák has uploaded a new change for review.

Change subject: Define argument types for builtins and operators
......................................................................

Define argument types for builtins and operators

Signed-off-by: Martin Sivak <msi...@redhat.com>
Change-Id: I2bd1bb96099e6c65b2eeb21240b01930f2ccabb4
---
M mom/Policy/Parser.py
1 file changed, 19 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/42/42042/1

diff --git a/mom/Policy/Parser.py b/mom/Policy/Parser.py
index aace0de..f801901 100644
--- a/mom/Policy/Parser.py
+++ b/mom/Policy/Parser.py
@@ -429,63 +429,81 @@
             return self.eval(no)
 
     def c_add(self, x, y):
+        'value value'
         return x + y
 
     def c_sub(self, x, y):
+        'value value'
         return x - y
 
     def c_mul(self, x, y):
+        'value value'
         return x * y
 
     def c_div(self, x, y):
+        'value value'
         return x / y
 
     def c_lt(self, x, y):
+        'value value'
         return x < y
 
     def c_gt(self, x, y):
+        'value value'
         return x > y
 
     def c_lte(self, x, y):
+        'value value'
         return x <= y
 
     def c_gte(self, x, y):
+        'value value'
         return x >= y
 
     def c_eq(self, x, y):
+        'value value'
         return x == y
 
     def c_neq(self, x, y):
+        'value value'
         return x != y
 
     def c_shl(self, x, y):
+        'value value'
         return x << y
 
     def c_shr(self, x, y):
+        'value value'
         return x >> y
 
     def c_and(self, *args):
+        'value ...'
         for arg in args:
             if not arg:
                 return arg
         return args[-1]
 
     def c_or(self, *args):
+        'value ...'
         for arg in args:
             if arg:
                 return arg
         return args[-1]
 
     def c_not(self, x):
+        'value'
         return not x
 
     def c_min(self, *args):
+        'value ...'
         return min(args)
 
     def c_max(self, *args):
+        'value ...'
         return max(args)
 
     def c_null(self, *args):
+        '...'
         try:
             return all(v is None or len(v) == 0 for v in args)
         except TypeError:
@@ -493,6 +511,7 @@
             return False
 
     def c_valid(self, *args):
+        '...'
         try:
             return not any(v is None for v in args)
         except TypeError:


-- 
To view, visit https://gerrit.ovirt.org/42042
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2bd1bb96099e6c65b2eeb21240b01930f2ccabb4
Gerrit-PatchSet: 1
Gerrit-Project: mom
Gerrit-Branch: master
Gerrit-Owner: Martin Sivák <msi...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to