#3900 NORM 9.1.0: Need support for activity supplied default activity titles

Zarro Boogs per Child bugtracker at laptop.org
Thu Oct 9 03:24:32 EDT 2008


#3900: Need support for activity supplied default activity titles
---------------------------+------------------------------------------------
   Reporter:  Eben         |       Owner:  marco  
       Type:  enhancement  |      Status:  new    
   Priority:  normal       |   Milestone:  9.1.0  
  Component:  sugar        |     Version:         
 Resolution:               |    Keywords:  9.1.0:?
Next_action:  never set    |    Verified:  0      
  Blockedby:               |    Blocking:  7828   
---------------------------+------------------------------------------------

Comment(by tomeu):

 Why don't we let activities set their own default titles based on content?

 Browse already does it, see lines 331-333:

 {{{
  326     def write_file(self, file_path):
  327         if not self.metadata['mime_type']:
  328             self.metadata['mime_type'] = 'text/plain'
  329
  330         if self.metadata['mime_type'] == 'text/plain':
  331             if not self._jobject.metadata['title_set_by_user'] ==
 '1':
  332                 if self._browser.props.title:
  333                     self.metadata['title'] =
 self._browser.props.title
  334
  335             self.model.data['history'] = self._browser.get_session()
  336
  337             f = open(file_path, 'w')
  338             try:
  339                 f.write(self.model.serialize())
  340             finally:
  341                 f.close()
 }}}

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


More information about the Bugs mailing list