Hi,

I want to add a new config option, but i only get the following error
dialog at start and when changing profiles:

"The optionList object doesn't contain an option with the name:
navigatorSplitVert"

Removing ~/.w3af didnt help. I cant save configuration.
Any ideas? See attached patch for the changes i made. I oriented myself
on the "demo" config value.
Also, it would be nice to have a combobox selection in the configuration
dialog. Is this possible, maybe with comboOption.py?

regards, Dobin
--- w3af/core/controllers/miscSettings.py       2010-10-16 15:38:09.000000000 
+0200
+++ w3af-dobin/src/core/controllers/miscSettings.py     2010-10-16 
15:39:08.000000000 +0200
@@ -78,6 +78,7 @@
         
             cf.cf.save('localAddress', local_address)
             cf.cf.save('demo', False )
+            cf.cf.save('navigatorSplitVert', False)
             cf.cf.save('nonTargets', [] )
             cf.cf.save('exportFuzzableRequests', '')
     
@@ -156,6 +157,10 @@
         o13 = option('exportFuzzableRequests', 
cf.cf.getData('exportFuzzableRequests'), d13,
                             'string', tabid='Export fuzzable Requests')
         
+        d15 = 'How the request navigator window will be split'
+        o15 = option('Split request navigator window vertical', 
cf.cf.getData('navigatorSplitVert'), d15,
+                            'boolean', tabid='Misc settings')
+
         ol = optionList()
         ol.add(o1)
         ol.add(o2)
@@ -171,6 +176,7 @@
         ol.add(o12)
         ol.add(o13)
         ol.add(o14)
+        ol.add(o15)
         return ol
     
     def getDesc( self ):
@@ -202,6 +208,7 @@
         cf.cf.save('interface', optionsMap['interface'].getValue() )
         cf.cf.save('localAddress', optionsMap['localAddress'].getValue() )
         cf.cf.save('demo', optionsMap['demo'].getValue()  )
+        cf.cf.save('navigatorSplitVert', 
optionsMap['navigatorSplitVert'].getValue()  )
         cf.cf.save('nonTargets', optionsMap['nonTargets'].getValue() )
         cf.cf.save('exportFuzzableRequests', 
optionsMap['exportFuzzableRequests'].getValue() )
         
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
W3af-develop mailing list
W3af-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/w3af-develop

Reply via email to