Ignore:
Timestamp:
Apr 27, 2011 3:19:20 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
600eca2
Parents:
3b792e1
Message:

fixed html string format problem because of '%" symbol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant_state.py

    r5282cc8 rf5bdb4a  
    526526                    continue 
    527527 
     528        s_1 = self._check_html_format(s_1) 
     529        file_name = self._check_html_format(self.file) 
     530 
    528531        # make plot image 
    529532        self.set_plot_state(extra_high=bool_0[1],extra_low=bool_1[1]) 
     
    532535                                        s_3, s_4, s_5, s_6, s_7, s_8, 
    533536                                    s_9, s_10, s_11, s_12, s_13, s_14, s_15, 
    534                                         s_16, s_17, s_18, self.file, "%s") 
    535  
     537                                        s_16, s_17, s_18, file_name, "%s") 
     538 
     539    def _check_html_format(self, name): 
     540        """ 
     541        Check string '%' for html format 
     542        """ 
     543        if name.count('%'): 
     544            name = name.replace('%', '&#37') 
     545         
     546        return name 
     547         
    536548    def set_saved_state(self, name, value): 
    537549        """ 
Note: See TracChangeset for help on using the changeset viewer.