当前位置: 首页>>代码示例>>Python>>正文


Python export.Exporter类代码示例

本文整理汇总了Python中export.Exporter的典型用法代码示例。如果您正苦于以下问题:Python Exporter类的具体用法?Python Exporter怎么用?Python Exporter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Exporter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: build

    def build(self, options, taskview):
        import gui

        Exporter.build(self, options, taskview)
        stlOptions = []
        self.stlAscii = options.addWidget(gui.RadioButton(stlOptions, "ASCII", selected=True))
        self.stlBinary = options.addWidget(gui.RadioButton(stlOptions, "Binary"))
开发者ID:severin-lemaignan,项目名称:makehuman-commandline,代码行数:7,代码来源:__init__.py

示例2: build

 def build(self, options, taskview):
     Exporter.build(self, options, taskview)
     self.useNormals = options.addWidget(gui.CheckBox("Normals", False))
     self.rotate90X = options.addWidget(gui.CheckBox("Z up (Rotate 90 X)", False))
     self.rotate90Z = options.addWidget(gui.CheckBox("Face X (Rotate 90 Z)", False))
     self.expressions     = options.addWidget(gui.CheckBox("Expressions", False))
     self.useCustomTargets = options.addWidget(gui.CheckBox("Custom targets", False))
开发者ID:ihavenick,项目名称:MakeHuman,代码行数:7,代码来源:__init__.py

示例3: build

    def build(self, options, taskview):
        import gui
        Exporter.build(self, options, taskview)

        orients = []
        self.yUpFaceZ = options.addWidget(gui.RadioButton(orients, "Y up, face Z", True))
        self.yUpFaceX = options.addWidget(gui.RadioButton(orients, "Y up, face X", False))
        self.zUpFaceNegY = options.addWidget(gui.RadioButton(orients, "Z up, face -Y", False))
        self.zUpFaceX = options.addWidget(gui.RadioButton(orients, "Z up, face X", False))
开发者ID:orezpraw,项目名称:unnaturalcode,代码行数:9,代码来源:__init__.py

示例4: ExporterView

def ExporterView(request):
    # check if request is post if not raise Forbidden error
    if not request.method == 'POST':
        return HttpResponseForbidden()

    # try:
    # set legal types to export
    types = ['csv', 'xls', 'pdf']

    # pass all POST params
    export_type = request.POST['type']
    export_model = signing.loads(request.POST['model'])
    export_app = signing.loads(request.POST['app'])
    export_filters = request.POST['filters']

    # check if export type is on legal list
    if export_type not in types:
        return HttpResponseNotAllowed()

    # get model object
    model = get_model(export_app, export_model)
    filters = json.loads(export_filters)

    # check if model is exportable
    if not model._meta.exportable:
        return HttpResponseNotAllowed()

    exporter = Exporter(model, filters, request)

    if export_type == 'xls':
        response = exporter.xls_exporter()
    elif export_type == 'pdf':
        response = exporter.pdf_exporter()
    elif export_type == 'csv':
        response = exporter.csv_exporter()

    return response
开发者ID:N3TC4T,项目名称:Django-queryset-export,代码行数:37,代码来源:views.py

示例5: main

def main():
    try:
        lib = Library(conf.library_dir)
        logger.debug("Starting")

        if conf.action == "clean":
            cleaner = Cleaner(lib)
            print("Removing duplicates..."),
            cleaner.remove_duplicates()
            print("DONE")

            cleaner.report()

            if not conf.test:
                lib.flush()
                print("\nTraktor library updated.")
            else:
                print("\nTest run. No changes made to the library.")
        elif conf.action == "export":
            exporter = Exporter(lib, conf.export_dir)
            exporter.export()

    except Exception as e:
        logger.error(e, exc_info=False)
开发者ID:r0x0r,项目名称:traktorlibrarian,代码行数:24,代码来源:librarian.py

示例6: __init__

 def __init__(self):
     Exporter.__init__(self)
     self.name = "Stereolithography (stl)"
     self.filter = "Stereolithography (*.stl)"
开发者ID:Iffar,项目名称:makehuman_datagen,代码行数:4,代码来源:__init__.py

示例7: __init__

 def __init__(self):
     Exporter.__init__(self)
     self.group = "map"
     self.name = "Lightmap"
     self.filter = "PNG (*.png)"
开发者ID:orezpraw,项目名称:unnaturalcode,代码行数:5,代码来源:9_export_light.py

示例8: build

 def build(self, options, taskview):
     import gui
     Exporter.build(self, options, taskview)
     self.binary   = options.addWidget(gui.CheckBox("Binary FBX", True))
     self.hiddenGeom = options.addWidget(gui.CheckBox("Helper geometry", False))
开发者ID:phelpsmi,项目名称:MicrobialCommunityVisualation,代码行数:5,代码来源:__init__.py

示例9: __init__

 def __init__(self):
     Exporter.__init__(self)
     self.name = "Collada (dae)"
     self.filter = "Collada (*.dae)"
     self.fileExtension = "dae"
     self.orderPriority = 95.0
开发者ID:severin-lemaignan,项目名称:makehuman-commandline,代码行数:6,代码来源:__init__.py

示例10: upload_cache

def upload_cache(mydict):
	from export import Exporter
	exporter = Exporter()
	exporter.connect()
	exporter.upload_slug("cache/TateModern",mydict)
开发者ID:flarebyte,项目名称:wonderful-bazar,代码行数:5,代码来源:ds_fe3l.py

示例11: __init__

 def __init__(self):
     Exporter.__init__(self)
     self.group = "rig"
     self.name = "Biovision Hierarchy BVH"
     self.filter = "Biovision Hierarchy (*.bvh)"
     self.fileExtension = "bvh"
开发者ID:orezpraw,项目名称:unnaturalcode,代码行数:6,代码来源:__init__.py

示例12: build

 def build(self, options, taskview):
     import gui
     Exporter.build(self, options, taskview)
     self.useNormals = options.addWidget(gui.CheckBox("Normals", False))
     self.helperGeom = options.addWidget(gui.CheckBox("Helper geometry", False))
开发者ID:TeoTwawki,项目名称:makehuman,代码行数:5,代码来源:__init__.py

示例13: __init__

 def __init__(self):
     Exporter.__init__(self)
     self.name = "MD5"
     self.filter = "MD5 (*.md5)"
     self.fileExtension = "md5"
开发者ID:ihavenick,项目名称:MakeHuman,代码行数:5,代码来源:__init__.py

示例14: __init__

 def __init__(self):
     Exporter.__init__(self)
     self.name = "Ogre3D"
     self.filter = "Ogre3D Mesh XML (*.mesh.xml)"
     self.fileExtension = "mesh.xml"
     self.orderPriority = 60.0
开发者ID:TeoTwawki,项目名称:makehuman,代码行数:6,代码来源:__init__.py

示例15: int

 if args["--balance"]:
     if args["<year>"] is None and args["<month>"] is None:
         accbook.browse_balance()
     else:
         if Checkers.isvalid_year(args["<year>"]) and Checkers.isvalid_month(args["<month>"]):
             accbook.browse_balance(int(args["<year>"]), int(args["<month>"]))
         else:
             print("正しい年月を入力してください。")
 elif args["--delete"]:
     if args["<id>"] is not None and Checkers.isvalid_id(args["<id>"]):
         accbook.delete(int(args["<id>"]))
     else:
         print("正しいIDを入力してください。")
 elif args["--export"]:
     if Checkers.isvalid_year(args["<year>"]) and Checkers.isvalid_month(args["<month>"]):
         exporter = Exporter()
         exporter.export_markdown(int(args["<year>"]), int(args["<month>"]))
     else:
         print("正しい年月を入力してください。")
 elif args["--modify"]:
     if args["<id>"] is not None and Checkers.isvalid_id(args["<id>"]):
         accbook.modify(int(args["<id>"]))
     else:
         print("正しいIDを入力してください。")
 elif args["--qview"]:
     q_viewer = QuickViewer()
     if args["<num>"] is None:
       q_viewer.view()
     else:
       q_viewer.view(int(args["<num>"]))
 else:
开发者ID:wdtch,项目名称:My-Account-Book,代码行数:31,代码来源:main.py


注:本文中的export.Exporter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。