コード例 #1
0
ファイル: Operation.py プロジェクト: nobodybut/TTEngine
# encoding=utf-8
# 标准库
from TTEngine.constants import is_windows

if is_windows():
    import sys
    import traceback
    import os
    import shutil
    import time
    import subprocess
    import fileinput

    # Django 库
    from programBranch.models import *
    from TTEngine.constants import *
    from logger.models import CoreLogger
    import logging
    from utils import SvnInfo

    # 自定义库
    sys.path.append('windows/_xtPlatform/script/python/')

    import BuildModule
    import Solution
    import Timer
    import SolutionThread
    sys.path.append('windows/script/install/python/')
    import xtCommon
    import Config
    import Packer
コード例 #2
0
ファイル: views.py プロジェクト: NolanZhao/TTEngine
from utils.decorator import core_logger
from logger.models import CoreLogger
from TTEngine.constants import VERSION_PREFIX_CUSTOMER, DEFAULT_DATETIME, SOURCE_TEST, CONTENT_TYPE, is_windows, SYS_BIT
from package.models import Package
from usrmgr.models import User
from TTEngine.settings import ENCODE
from StringIO import StringIO
from utils.decorator import convert_machine_to_json, convert_compiling_record_to_json
from utils.TracebackHelper import getTraceBack
from programBranch.models import BranchInfo, PROGRAM_LIST, getLocalDir
from utils.StringHelper import replaceStr
from utils.SvnInfo import getSvnInfo
from TTEngine.constants import *

# 暂时排除Windows 64位情况
if not (is_windows() and SYS_BIT == 64):
    from compile.Compile import doCompile

logger = logging.getLogger('django')

# 创建客户
@csrf_exempt
@login_required
def compile(request):
    if request.method == "GET":
        pass
        return render_to_response("customer/customer_create.html", locals(), context_instance=RequestContext(request))
    elif request.method == 'POST':
        pass

コード例 #3
0
from utils.decorator import core_logger
from logger.models import CoreLogger
from TTEngine.constants import VERSION_PREFIX_CUSTOMER, DEFAULT_DATETIME, SOURCE_TEST, CONTENT_TYPE, is_windows, SYS_BIT
from package.models import Package
from usrmgr.models import User
from TTEngine.settings import ENCODE
from StringIO import StringIO
from utils.decorator import convert_machine_to_json, convert_compiling_record_to_json
from utils.TracebackHelper import getTraceBack
from programBranch.models import BranchInfo, PROGRAM_LIST, getLocalDir
from utils.StringHelper import replaceStr
from utils.SvnInfo import getSvnInfo
from TTEngine.constants import *

# 暂时排除Windows 64位情况
if not (is_windows() and SYS_BIT == 64):
    from compile.Compile import doCompile

logger = logging.getLogger('django')


# 创建客户
@csrf_exempt
@login_required
def compile(request):
    if request.method == "GET":
        pass
        return render_to_response("customer/customer_create.html",
                                  locals(),
                                  context_instance=RequestContext(request))
    elif request.method == 'POST':