[wpkg-users] wpkg.js TODO list

2010-06-01 Thread Daniel Dehennin
Hello, Before looking at wpkg-test, I publish my wpkg.js improvements TODO list. My next work will be to use generic option handling with minimal type validation: - boolean - string - number - list (array object or comma separated string) The idea is to use "argv/argn" in one place and avoid lo

Re: [wpkg-users] wpkg.js TODO list

2010-05-19 Thread Daniel Dehennin
Daniel Dehennin writes: > Hello, Hello, > Ok, I just did 1.2 and fix my TODO list for 1.3 and I'm wondering if > it's better or not to define setHostInfo and getHostInfo instead of > direct array access? 3 new patches for review, tell me if you prefer: - feature requests on bugzilla with patch

Re: [wpkg-users] wpkg.js TODO list

2010-05-19 Thread Daniel Dehennin
Daniel Dehennin writes: > Hello, Hello, > I'm working on wpkg.js as you saw, I know Rainer Meier want to > restructure the code for 1.2 and before going forward I want to submit > my TODO list for review. Ok, I just did 1.2 and fix my TODO list for 1.3 and I'm wondering if it's better or not t

Re: [wpkg-users] wpkg.js TODO list

2010-05-17 Thread Malte Starostik
Am Montag, 17. Mai 2010 14:16:30 schrieb Daniel Dehennin: > > I use an Scriptint.Dictionary because I needed the .count to test for > > null . > > > > I'll give a try to {}. > > Ok, "{}" is the same as new Object(); > > var hostAttributes = new Object(); > is equivalent to > var hostAttributes =

Re: [wpkg-users] wpkg.js TODO list

2010-05-17 Thread Daniel Dehennin
Daniel Dehennin writes: > Well, I need to make some tests, but with: > var hostAttributes = new Array(); > hostAttributes.name = "hostname"; > hostAttributes.groups = "somegroup"; > > You can not know if the array is empty or not because these attributes > does not modify hostAttributes.length[1]

Re: [wpkg-users] wpkg.js TODO list

2010-05-17 Thread Daniel Dehennin
Malte Starostik writes: > Hi Daniel, Hello, > I just skimmed over bug 118 and your TODO list; thanks for your work, I'm > really looking forward to it! :-) > Just one minor nitpick though, why are you using the Scripting.Dictionary > ActiveX object instead of a plain old JavaScript object? >

Re: [wpkg-users] wpkg.js TODO list

2010-05-17 Thread Malte Starostik
Hi Daniel, I just skimmed over bug 118 and your TODO list; thanks for your work, I'm really looking forward to it! :-) Just one minor nitpick though, why are you using the Scripting.Dictionary ActiveX object instead of a plain old JavaScript object? var hostAttributes = {}; hostAttributes.name

[wpkg-users] wpkg.js TODO list

2010-05-17 Thread Daniel Dehennin
Hello, I'm working on wpkg.js as you saw, I know Rainer Meier want to restructure the code for 1.2 and before going forward I want to submit my TODO list for review. Regards. -- Daniel Dehennin RAIP de l'Orne Things to do [0/2] ===