From: Tim <hob...@ya...> - 2004-04-07 18:00:48
|
I have been tasked with writing a script in jython to create X number of new users (from a csv file) for weblogic 8.1. I have spent the better part of 2 days trying to find documentation on reading csv's in jython. I have found the docs on using it with python and i can get it to read them but i can't do anything with the rows once i return them. Can anyone point me in the right directions. Here is what i have so far (using python)... import csv user = csv.parser() <-- gives me an error reader = csv.reader(file("c:\users.cvs")) for row in reader: user.parse(row) <-- also give me an error -- this code hasn't been tested since i can't get past the errors above -- o = ObjectName("Security:/typeless/myrealmDefaultAuthenticator") p = proxy(o) p.createUser(user, password, descr) p.userExists() p.addMemberToGroup(group, user) p.isMemeber(group, user, true) thanks for any input tim |