Changeset 8447 for mauRepo


Ignore:
Timestamp:
06/07/12 16:35:34 (7 years ago)
Author:
mnagni
Message:

Incomplete - # 22518: The description is broken
 http://team.ceda.ac.uk/trac/ceda/ticket/22518

The pythonlib is not able to correctly serialize boolean type as explained here  http://code.google.com/p/gdata-python-client/issues/detail?id=611 where a workaround is suggested and applied here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/CedaMarkup/trunk/ceda_markup/opensearch/os_request.py

    r8375 r8447  
    7878        self.responses = responses 
    7979        self.os_syndacation_right = None 
    80         self.os_adult_content = True 
     80         
     81        # should be set to True but because of  
     82        # http://code.google.com/p/gdata-python-client/issues/detail?id=611 
     83        # we cannot (for now) 
     84        self.os_adult_content = '1' 
    8185 
    8286        if os_description: 
     
    106110             
    107111        if os_adult_content and os_adult_content in ['false', 'FALSE', '0', 'no', 'NO']: 
    108             self.os_adult_content = False                         
     112            # should be set to False but because of  
     113            # http://code.google.com/p/gdata-python-client/issues/detail?id=611 
     114            # we cannot (for now)             
     115            self.os_adult_content = '0'                         
    109116             
    110117        self.os_image = os_image 
Note: See TracChangeset for help on using the changeset viewer.