示例#1
0
文件: test.py 项目: broy-va/SciWorCS
class PipelineModule(Document):
    module_id = TextField()
    module_name = TextField()
    author = TextField()
    code_link_main = TextField()
    code_link_settings = TextField()
    code_link_html = TextField()
    documentation = TextField()
示例#2
0
class P2IRC_User(Document):
	first_name =  TextField()
	last_name = TextField() 
	email = TextField() 
	password = TextField()
	the_doc_type = TextField(default='p2irc_user')
	user_role = TextField(default='plant_scientist')
示例#3
0
class WorkflowLockingModule(Document):
    doc_type = TextField(default='workflow_locking_module')
    workflow_id = TextField()
    next_module_id = IntegerField(default=1)
    module_nodes = ListField(
        DictField(
            Mapping.build(nodeID=TextField(),
                          isLocked=BooleanField(),
                          currentOwner=TextField())))
    node_access_req_Q = ListField(
        DictField(Mapping.build(nodeID=TextField(), requestedBy=TextField())))
class Post(Document):
    doc_type = 'post'
    title = TextField()
    filename = TextField()
    location = TextField()
    semantic = TextField()
    scene = TextField()
    caption = TextField()
    published = DateTimeField(default=datetime.datetime.utcnow)

    @property
    def imgsrc(self):
        return uploaded_photos.url(self.filename)

    all = ViewField('Citizen Sensor',
                    '''\
        function (doc) {
            if (doc.doc_type == 'post')
                emit(doc.published, doc);
        }''',
                    descending=True)
示例#5
0
class Products(Document):
    doc_type = 'product'

    name = TextField()
    category = TextField()
    quantity = IntegerField()
示例#6
0
class AppCodeClone_User(Document):
    user_email = TextField()
    user_password = TextField()
    user_full_name = TextField()
    the_doc_type = TextField(default='app_code_clone_user')
示例#7
0
class TXL_User(Document):
    user_email = TextField()
    user_password = TextField()
    user_full_name = TextField()
    the_doc_type = TextField(default='txl_user')
示例#8
0
class NewBooking(Document):  #class for interrogating CouchDB
    book_name = TextField()
    book_email = TextField()
    book_date = TextField()
    book_time = TextField()
    book_confirmation = BooleanField(default=False)
示例#9
0
class SavedPipeline(Document):
	pipeline_name = TextField()
	author = TextField()
	pipeline_link = TextField()
	the_doc_type = TextField(default='saved_pipeline')
	shared_with = ListField(TextField())
示例#10
0
class CodeClones(Document):
	

	clone_id = TextField()
	tool = DictField(Mapping.build(id=TextField(),name=TextField()))
	system = DictField(Mapping.build(
		id=TextField(),
		name=TextField()
	))
	fragment_1 = DictField(Mapping.build(
		path=TextField(),
		start_line=TextField(),
		end_line=TextField()
	))
	fragment_2 = DictField(Mapping.build(
		path=TextField(),
		start_line=TextField(),
		end_line=TextField()
	))
	auto_validation_result = ListField(DictField(Mapping.build(
		algorithm = TextField(),
		result = TextField()
	)))
	is_validated_by_any_user = TextField(default='no')
	is_clone_doc = TextField(default='yes')
	user_validation_result = ListField(DictField(Mapping.build(
		user = TextField(),
		result = TextField()
	)))
示例#11
0
class WorkflowLockingTurn(Document):
	doc_type = TextField(default='workflow_locking_turn')
	workflow_id = TextField()
	floor_flag = TextField(default='unoccupied')
	request_queue = ListField(TextField())
	current_floor_owner = TextField()
示例#12
0
class TaskSchema(Document):
    value = TextField()
    completed = BooleanField()