Changeset 3011 for trunk


Ignore:
Timestamp:
04/05/10 02:26:29 (10 years ago)
Author:
jukka
Message:

Fixed a tricky combination of percentage marks and string formation markers in embed code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Collection.py

    r3010 r3011  
    266266    def getEmbedCode(self): 
    267267        """ Builds a nice embed code """ 
    268         return '<iframe src="%s/collection_clean_view" width="100%" height="550px" scrolling="auto" frameborder="1"></iframe>' % self.absolute_url() 
     268        return '''<iframe src="%s/collection_clean_view" width="100%%" height="550px" scrolling="auto" frameborder="1"></iframe>''' % self.absolute_url() 
    269269 
    270270         
Note: See TracChangeset for help on using the changeset viewer.