Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update api support script #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

update api support script #48

wants to merge 2 commits into from

Conversation

Hexmagic
Copy link

@Hexmagic Hexmagic commented Jun 5, 2018

have a look at this issue #46

Hexmagic added 2 commits June 5, 2018 11:47
update api support script, see this issue #46
@Hexmagic
Copy link
Author

Hexmagic commented Jun 5, 2018

I only change this method by add a param script ,so I can use script to update document

def update(self, index, type, uid, contents,script=False,callback=None):
        path = "/%(index)s/%(type)s/%(uid)s/_update" % {
            "index": index,
            "type": type,
            "uid": uid
        }
        if script:
            partial = contents
        else:    
            partial = { "doc": contents }

why all checks failed, and got error

Traceback (most recent call last):
  File "/home/travis/build/globocom/tornado-es/tornadoes/tests/unit/test_tornadoes.py", line 22, in tearDown
    if (not IOLoop.initialized() or self.io_loop is not IOLoop.instance()):
AttributeError: type object 'IOLoop' has no attribute 'initialized'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant