Interactive/DisableAutodesk360.py

#-
# (C) Copyright 2012 Autodesk, Inc.  All rights reserved.
#
# This computer source code and related instructions and comments are
# the unpublished confidential and proprietary information of
# Autodesk, Inc. and are protected under applicable copyright and
# trade secret law.  They may not be disclosed to, copied or used by
# any third party without the prior written consent of Autodesk, Inc.
#+


# OBSOLETE: Please use SHOWCASE_AUTODESKSYNC_DISABLE environment variable
# set to True, to disable and remove Sync functionality from Showcase.

from UserCustomization  import UserCustomBase
from RTFapi             import SystemInformation
from CloudUtilities     import kAutodeskSyncAvailable

class NoAutodesk360( UserCustomBase ):
    def __init__( self ):
        if not kAutodeskSyncAvailable:
            return
        title = _("Obsolete add-in %s") % ("DisableAutodesk360")
        message=_("To disable Autodesk Sync functionality, set environment variable\nSHOWCASE_AUTODESKSYNC_DISABLE to 1.")
        self.sendMessage( 'UI_CONFIRM_DIALOG', ( title, message, '' ) )

def instantiate():
    return NoAutodesk360()