#3083 NORM Update.: Change Journal 'resume' to 'start'

Zarro Boogs per Child bugtracker at laptop.org
Mon Nov 19 05:44:58 EST 2007


#3083: Change Journal 'resume' to 'start'
-------------------------------+--------------------------------------------
  Reporter:  kimquirk          |       Owner:  tomeu   
      Type:  defect            |      Status:  new     
  Priority:  normal            |   Milestone:  Update.2
 Component:  journal-activity  |     Version:          
Resolution:                    |    Keywords:          
  Verified:  0                 |  
-------------------------------+--------------------------------------------

Comment(by tomeu):

 {{{
 diff --git a/src/olpc/datastore/xapianindex.py
 b/src/olpc/datastore/xapianindex.py
 index 06041aa..dfef53c 100644
 --- a/src/olpc/datastore/xapianindex.py
 +++ b/src/olpc/datastore/xapianindex.py
 @@ -104,6 +104,12 @@ class IndexManager(object):
          datamodel = kwargs.get('model', model.defaultModel)
          datamodel.apply(self)

 +        # configure the model according to the database
 +        for field_name in self.write_index._field_actions:
 +            if field_name not in datamodel.fields:
 +                datamodel.addField(field_name, 'string')
 +            self.fields.add(field_name)
 +
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/3083#comment:6>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list