Changeset 487

Show
Ignore:
Timestamp:
05/27/08 09:31:18 (8 months ago)
Author:
jmowery
Message:

small fixes to get connection running

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/trunk-pmd-intproto/agent/agent.py

    r485 r487  
     1import os 
    12import sys 
    23sys.path.append("../network") 
     
    1516        ''' Returns a hash of all the selinux booleans on a system ''' 
    1617        res = {} 
    17         for i in listdir("/selinux/booleans"): 
     18        for i in os.listdir("/selinux/booleans"): 
    1819                f = file("/selinux/booleans/" + i, "r") 
    1920                val = f.read(512) 
     
    116117                else return None 
    117118                ''' 
    118                 modified_modules = storage.list_newer_files() 
     119                modified_modules = self.storage.list_newer_files() 
    119120                if not len(modified_modules): 
    120121                        return None 
  • branches/trunk-pmd-intproto/server/storage.py

    r483 r487  
    840840                '''Return a list of local files with an applied time newer than the layer applied time.''' 
    841841                ret_list = [] 
    842                 for f in list_controlled_files(): 
     842                for f in self.list_controlled_files(): 
    843843                        if self.entries[f].local and self.entries[f].applied > self.entries['.'].applied: 
    844844                                ret_list.append(f)