本文整理汇总了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"))
示例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))
示例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))
示例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
示例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)
示例6: __init__
def __init__(self):
Exporter.__init__(self)
self.name = "Stereolithography (stl)"
self.filter = "Stereolithography (*.stl)"
示例7: __init__
def __init__(self):
Exporter.__init__(self)
self.group = "map"
self.name = "Lightmap"
self.filter = "PNG (*.png)"
示例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))
示例9: __init__
def __init__(self):
Exporter.__init__(self)
self.name = "Collada (dae)"
self.filter = "Collada (*.dae)"
self.fileExtension = "dae"
self.orderPriority = 95.0
示例10: upload_cache
def upload_cache(mydict):
from export import Exporter
exporter = Exporter()
exporter.connect()
exporter.upload_slug("cache/TateModern",mydict)
示例11: __init__
def __init__(self):
Exporter.__init__(self)
self.group = "rig"
self.name = "Biovision Hierarchy BVH"
self.filter = "Biovision Hierarchy (*.bvh)"
self.fileExtension = "bvh"
示例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))
示例13: __init__
def __init__(self):
Exporter.__init__(self)
self.name = "MD5"
self.filter = "MD5 (*.md5)"
self.fileExtension = "md5"
示例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
示例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: