prewikka/master: Retrieve database default for mandatory option.

[email protected]
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
commit 6584d9582789b99d6aac055ab04395a4e3222ba0
Author: Yoann Vandoorselaere <[email protected]>
Date:   Fri May 22 16:31:06 2009 +0200

    Retrieve database default for mandatory option.
    
    We should retrieve the default from database even through the option
    is mandatory.


========================================

 prewikka/view.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

========================================

diff --git a/prewikka/view.py b/prewikka/view.py
index 40d0ce4..f35ec33 100644
--- a/prewikka/view.py
+++ b/prewikka/view.py
@@ -91,7 +91,7 @@ class Parameters(dict):
 
                 raise InvalidParameterError(name)
 
-            if not self._parameters.has_key(name) or self._parameters[name]["mandatory"] is not True:
+            if not self._parameters.has_key(name):
                 do_load = False
 
             if self._parameters[name]["save"] and self.has_key("_save"):
_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.