~didrocks/ubuntuone-client/dont-suffer-zg-crash

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/config.py

  • Committer: Bazaar Package Importer
  • Author(s): Rodney Dawes
  • Date: 2011-02-11 16:18:11 UTC
  • mfrom: (1.1.44 upstream)
  • Revision ID: james.westby@ubuntu.com-20110211161811-lbelxu332e8r2dov
Tags: 1.5.4-0ubuntu1
* New upstream release.
  - Files still get downloaded from unsubscribed folder (LP: #682878)
  - Add subscription capabilities to shares (LP: #708335)
  - Nautilus offers Publish option within other's shares (LP: #712674)
  - Shares dir name may not be unique (LP: #715776)
  - Send a notification when new Volume is available (LP: #702055)
  - Add messaging menu entry for new Volumes (LP: #702075)
  - Aggregate notifications for completed operations (LP: #702128)
  - Send a notification for new Share offers (LP: #702138)
  - Add messaging menu entry for new Share offers (LP: #702144)
* Remove ubuntuone-client-tools as u1sync has been moved out.
* Simplify python package as we don't have multiple python packages now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
 
98
98
 
99
99
def log_level_parser(value):
100
 
    """perser for "logging" module log levels."""
101
 
    level = getattr(logging, value, None)
102
 
    if level is None:
 
100
    """Parser for "logging" module log levels.
 
101
 
 
102
    The logging API sucks big time, the only way to trustworthy find if the
 
103
    log level is defined is to check the private attribute.
 
104
    """
 
105
    try:
 
106
        level = logging._levelNames[value]
 
107
    except KeyError:
103
108
        # if level don't exists in our custom levels, fallback to DEBUG
104
 
        level = getattr(logging, 'DEBUG')
 
109
        level = logging.DEBUG
105
110
    return level
106
111
 
107
112
 
334
339
    def get_udf_autosubscribe(self):
335
340
        return self.get_parsed(MAIN, 'udf_autosubscribe')
336
341
 
 
342
    @requires_section(MAIN)
 
343
    def set_share_autosubscribe(self, enabled):
 
344
        self.set(MAIN, 'share_autosubscribe', str(enabled))
 
345
 
 
346
    @requires_section(MAIN)
 
347
    def get_share_autosubscribe(self):
 
348
        return self.get_parsed(MAIN, 'share_autosubscribe')
 
349
 
337
350
    # files sync enablement get/set
338
351
    @requires_section(MAIN)
339
352
    def set_files_sync_enabled(self, enabled):