Changeset 362

Show
Ignore:
Timestamp:
01/14/07 18:05:18 (2 years ago)
Author:
athomas
Message:

pyndexter: Whitespace fixes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pyndexter/branches/refactoring/pyndexter/indexers/default.py

    r361 r362  
    135135            else: 
    136136                self.words[word] = set([document.uri]) 
    137              
     137 
    138138            # Update attributes 
    139139            self.attributes[document.uri] = deepcopy(document.attributes) 
     
    147147            self.uris.sync() 
    148148            self.attributes.sync() 
    149              
     149 
    150150    index = synchronised(index) 
    151151 
  • pyndexter/branches/refactoring/pyndexter/indexers/lupy.py

    r361 r362  
    1717        hits = list(self.db.findInField(uri=uri)) 
    1818        print hits 
    19          
     19 
    2020    def index(self, document): 
    2121        attributes = dict([('_' + k.encode('utf-8'), str(v)) 
  • pyndexter/branches/refactoring/pyndexter/__init__.py

    r361 r362  
    9797    """ A Document represents an indexable object in pyndexter. All string 
    9898    attributes must be unicode, including the content. 
    99      
     99 
    100100    content:: is optional, and if not provided will be fetched from the 
    101101    `source`. If it is a callable, it will be called to fetch the content, 
     
    105105    documents lifetime. Typically a timestamp, but could be a revision number, 
    106106    etc. 
    107      
     107 
    108108    source:: is the Source object where this documents content can be lazily 
    109109    fetched from. """ 
     
    145145    only fetching documents and iterating over them, but for determining what 
    146146    has changed in the source. 
    147      
     147 
    148148    Determing what has changed is achieved with the state() and difference() 
    149149    methods. The ''state'' of a source is the minimum information required to 
     
    279279            text += ")" 
    280280            return text 
    281         return show(self)    
     281        return show(self) 
    282282 
    283283 
     
    293293        -<term>           exclude documents containing this term 
    294294        <term> or <term>  return documents matching either term 
    295      
     295 
    296296    eg. 
    297297 
     
    373373    def close(self): 
    374374        """ Close the indexer. The object is subsequently not usable. 
    375          
     375 
    376376        `sync()` is automatically called by the `Framework` prior to `close()`.""" 
    377377        raise NotImplementedError 
     
    400400    def sync(self): 
    401401        """ Synchronise indexer with stored representation. """ 
    402      
     402 
    403403 
    404404class Framework(object): 
     
    483483 
    484484        `query` is a pyndexter compatible search string. 
    485          
     485 
    486486        Returns a `Search` object. """ 
    487487        query = Query(query) 
  • pyndexter/branches/refactoring/pyndexter/sources/file.py

    r361 r362  
    4949               path.startswith(self.root) and \ 
    5050               self.predicate(path) 
    51              
     51 
    5252 
    5353    def fetch(self, uri):