mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
19 lines
589 B
Python
19 lines
589 B
Python
#!/usr/bin/env python
|
|
# coding:utf-8
|
|
|
|
from meshroom.common import BaseObject, Property
|
|
|
|
|
|
class BaseSubmitter(BaseObject):
|
|
def __init__(self, name, parent=None):
|
|
super(BaseSubmitter, self).__init__(parent)
|
|
self._name = name
|
|
|
|
def submit(self, nodes, edges, filepath, submitLabel="{projectName}"):
|
|
""" Submit the given graph
|
|
Returns:
|
|
bool: whether the submission succeeded
|
|
"""
|
|
raise NotImplementedError("'submit' method must be implemented in subclasses")
|
|
|
|
name = Property(str, lambda self: self._name, constant=True)
|