/+junk/pygooglechart-py3k

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/pygooglechart-py3k

« back to all changes in this revision

Viewing changes to pygooglechart.py

  • Committer: Gerald Kaszuba
  • Date: 2010-12-24 05:39:10 UTC
  • Revision ID: git-v1:fbe95fbe99395e5d975bdd9ac9db79b089b29c68
The patch for the previous commit was applied incorrectly. Fixed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
336
336
        self.title_font_size = None
337
337
 
338
338
    # URL generation
 
339
    # -------------------------------------------------------------------------
339
340
        
 
341
    def get_url(self, data_class=None):
340
342
        return self.BASE_URL + '?' + self.get_url_extension(data_class)
341
343
    
342
 
    def get_url_extension(self, data_class = None):
343
 
    # -------------------------------------------------------------------------
344
 
 
345
 
    def get_url(self, data_class=None):
 
344
    def get_url_extension(self, data_class=None):
346
345
        url_bits = self.get_url_bits(data_class=data_class)
347
346
        return '&'.join(url_bits)
348
347
 
390
389
    # Downloading
391
390
    # -------------------------------------------------------------------------
392
391
 
393
 
    def download(self, file_name, use_post = False):
 
392
    def download(self, file_name, use_post=True):
394
393
        if use_post:
395
394
            opener = urllib2.urlopen(self.BASE_URL, self.get_url_extension())
396
395
        else: