From: Nima T. <ni...@jc...> - 2005-07-11 02:10:43
|
Hi Rob, I've fixed the hardcoded '/data/' entries, and tested it on another machine to make sure it does work. Please let me know how you go. I'm sorry about that silly mistake, I work on it only when I get some time to spare so sometimes I miss little silly things like that. Nima Rob See wrote: > Nima, > > I'm having a problem with it. > ./check-trustees.py > Traceback (most recent call last): > File "./check-trustees.py", line 22, in ? > u=usage("check-trustees",usageBlob) > NameError: name 'usage' is not defined > > so I changed usage to Usage and got > > ./check-trustees.py > Verifying...................................................................done > > Traceback (most recent call last): > File "./check-trustees.py", line 514, in ? > main() > File "./check-trustees.py", line 473, in main > nodes["/data"]=Node("/data", trustees.processedTrustees["/data/"], > None, False) KeyError: '/data/' > > also, if I try to do -h I get: > Traceback (most recent call last): > File "./check-trustees.py", line 514, in ? > main() > File "./check-trustees.py", line 449, in main > Usage() > TypeError: __init__() takes exactly 3 arguments (1 given) > > I set the path to the current directory and I do have Usage.py in the > package I downloaded. > > > Thanks, > -Rob > > Nima Talebi wrote: > >> Get it again actually, I just fixed up the fact that it died on not >> finding the trustees.conf file. You'll find 3 files now, Usage.py. Put >> that along with Progress.py. >> >> Make sure you don't get one cached in your proxy server :) >> >> Sorry about that. >> >> Nima >> >> Rob See wrote: >> >>> Hi, >>> >>> Is this script available ? >>> >>> Thanks, >>> -Rob >>> >>> Nima Talebi wrote: >>> >>>> Here's how check-trustees acts now, I've added a '-v' so that it >>>> shows how it calculates what it calculates, as wrong as that may be :). >>>> >>>> >>>> >>>> >>>> >>>> check-trustees -vp /data/imp/drafting/standards/archive/ >>>> Verifying...................................................................done >>>> >>>> >>>> ***** PARENT ***** >>>> o *:CRWEBX >>>> o +imp:REB >>>> >>>> ***** SELF ***** >>>> o *:CRWEBX >>>> o +impdraft:REB >>>> o +impdes:REB >>>> o +impdraftadmin:RWEBX >>>> >>>> ***** CALCULATION ***** >>>> o Reading PARENT >>>> * Acting on `+imp' >>>> * pFlags: ['R', 'E', 'B'] >>>> * mFlags: [] >>>> * Selecting ALLOW List >>>> o CREATING +imp with R >>>> o ADDING E to +imp >>>> o ADDING B to +imp >>>> * New List: {'+imp': 'REB'} >>>> o Reading SELF Wildcard CLEAR >>>> * On : +imp >>>> * REMOVING R from +imp >>>> * New List: {'+imp': 'EB'} >>>> * REMOVING E from +imp >>>> * New List: {'+imp': 'B'} >>>> * REMOVING B from +imp >>>> * New List: {'+imp': ''} >>>> * DELETING B from +imp >>>> * New List: {} >>>> o Reading SELF >>>> * Acting on `+impdraft' >>>> * pFlags: ['R', 'E', 'B'] >>>> * mFlags: [] >>>> * Selecting ALLOW List >>>> o CREATING +impdraft with R >>>> o ADDING E to +impdraft >>>> o ADDING B to +impdraft >>>> * New List: {'+impdraft': 'REB'} >>>> o Reading SELF >>>> * Acting on `+impdes' >>>> * pFlags: ['R', 'E', 'B'] >>>> * mFlags: [] >>>> * Selecting ALLOW List >>>> o CREATING +impdes with R >>>> o ADDING E to +impdes >>>> o ADDING B to +impdes >>>> * New List: {'+impdraft': 'REB', '+impdes': 'REB'} >>>> o Reading SELF >>>> * Acting on `+impdraftadmin' >>>> * pFlags: ['R', 'W', 'E', 'B', 'X'] >>>> * mFlags: [] >>>> * Selecting ALLOW List >>>> o CREATING +impdraftadmin with R >>>> o ADDING W to +impdraftadmin >>>> o ADDING E to +impdraftadmin >>>> o ADDING B to +impdraftadmin >>>> o ADDING X to +impdraftadmin >>>> * New List: {'+impdraft': 'REB', '+impdes': 'REB', >>>> '+impdraftadmin': 'RWEBX'} >>>> >>>> COMPUTED ALLOW:{'+impdraft': 'REB', '+impdes': 'REB', >>>> '+impdraftadmin': 'RWEBX'} >>>> COMPUTED DENY: {} >>>> >>>> Summary for /data/imp/drafting/standards/archive >>>> o user `root' has Full Access GRANTED >>>> o group impdraft has read-only access (REB) ALLOWED >>>> o group impdes has read-only access (REB) ALLOWED >>>> o group impdraftadmin has full access (RWEBX) ALLOWED >>>> x everyone else has Full Access DENIED >>>> >>>> Trustees Nodes Requested:130 >>>> Trustees Nodes Required :135 >>>> No errors in configuration file. >>>> No warnings in configuration file. >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by: NEC IT Guy Games. >>>> Get your fingers limbered up and give it your best shot. 4 great >>>> events, 4 >>>> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to >>>> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 >>>> _______________________________________________ >>>> trustees-general mailing list >>>> tru...@li... >>>> https://lists.sourceforge.net/lists/listinfo/trustees-general >>> >>> >>> >>> >>> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by the 'Do More With Dual!' webinar >> happening >> July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual >> core and dual graphics technology at this free one hour event hosted >> by HP, AMD, and NVIDIA. To register visit >> http://www.hp.com/go/dualwebinar >> _______________________________________________ >> trustees-general mailing list >> tru...@li... >> https://lists.sourceforge.net/lists/listinfo/trustees-general > > > |