~mvo/ubuntu-sso-client/strawman-lp711413

« back to all changes in this revision

Viewing changes to ubuntu_sso/main/windows.py

  • Committer: Manuel de la Pena
  • Date: 2011-06-16 17:05:26 UTC
  • mfrom: (719 ubuntu-sso-client)
  • mto: This revision was merged to the branch mainline in revision 721.
  • Revision ID: mandel@themacaque.com-20110616170526-pvdvfhin2t2ppbxl
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
from ubuntu_sso.main import (CredentialsManagementRoot, SSOLoginRoot,
39
39
                             SSOCredentialsRoot, except_to_errdict)
40
40
 
 
41
 
41
42
logger = setup_logging("ubuntu_sso.main.windows")
42
43
NAMED_PIPE_URL = '\\\\.\\pipe\\ubuntu_sso\\%s'
43
44
U1_REG_PATH = r'Software\\Ubuntu One'
44
45
SSO_INSTALL_PATH = 'SSOInstallPath'
45
46
 
 
47
 
46
48
def remote_handler(handler):
47
49
    """Execute a callback in a remote object."""
48
50
    if handler:
559
561
        callback = getattr(args[0], function.func_name + '_cb', None)
560
562
        if callback is not None:
561
563
            fixed_args = args[1:]
 
564
            if not kwargs:
 
565
                return callback(*fixed_args)
562
566
            return callback(*fixed_args, **kwargs)
563
567
    return callback_wrapper
564
568