Example #1
0
    def check(my):
        web = WebContainer.get_web()
        if web.get_form_value(MayaShotCheckinWdg.PUBLISH_SET_BUTTON) == "":
            return False

        if not my._check_context():
            return False

        # if there is publish error, exit
        error_path = '%s/error.txt' % FileCheckin.get_upload_dir()
        if os.path.exists(error_path):
            return False

        return True
Example #2
0
    def check(my):
        web = WebContainer.get_web()
        if web.get_form_value(MayaShotCheckinWdg.PUBLISH_SET_BUTTON) == "":
            return False
         
        if not my._check_context():
            return False

        # if there is publish error, exit
        error_path = '%s/error.txt' %FileCheckin.get_upload_dir()
        if os.path.exists(error_path):
            return False

        return True