Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/a/r/archetypes.referencebrowserwidget-2.4.21/src/archetypes/referencebrowserwidget/browser/view.py   archetypes.referencebrowserwidget(Download)
                else:
                    if quote_logic and k in quote_logic_indexes:
                        v = utils.quotequery(v)
                    d = {k: v}
                query.update(d)

src/a/r/archetypes.referencebrowserwidget-2.4.21/src/archetypes/referencebrowserwidget/tests/test_utils.py   archetypes.referencebrowserwidget(Download)
    def test_emptyquotequery(self):
        assert utils.quotequery('') == ''
        assert utils.quotequery(None) is None
 
    def test_quotequery(self):
        assert utils.quotequery('foo and bar') == 'foo and bar'
 
    def test_quotequery_quote(self):
        assert utils.quotequery('foo and') == 'foo "and"'
        assert utils.quotequery('or bar') == '"or" bar'