Re: [Zim-wiki] Searching for single quotes

2013-04-18 Thread Jaap Karssenberg
Hi Syv,

PLease file a bug report in the bug tracker at https://bugs.launchpad.net/zim/

Thanks,

Jaap



On Thu, Apr 18, 2013 at 2:15 AM, Syv Ritch s...@foto-biz.com wrote:
 Hi,

 I opened my note book and search for the sentence:

 If you don't mind me asking (without the quotes)

 and I got from Z59, xUbuntu 12.04

 ***START
 Looks like you found a bug

 Assertion Error:

 This is zim 0.59
 Python version is sys.version_info(major=2, minor=7, micro=3, 
 releaselevel='final', serial=0)
 Gtk version is (2, 24, 10)
 Pygtk version is (2, 24, 0)
 Platform is posix
 Zim revision is:
   branch: pyzim-trunk
   revision: 636 par...@cpan.org-20130123210740-rquhot1l1yzx9w0i
   date: 2013-01-23 22:07:40 +0100

 === Traceback ===
   File /usr/lib/pymodules/python2.7/zim/gui/searchdialog.py, line 89, in 
 _search
 self.results_treeview.search(string)
   File /usr/lib/pymodules/python2.7/zim/gui/searchdialog.py, line 173, in 
 search
 self.query = Query(query)
   File /usr/lib/pymodules/python2.7/zim/search.py, line 125, in __init__
 self.root = self._parse_query(string)
   File /usr/lib/pymodules/python2.7/zim/search.py, line 129, in _parse_query
 words = split_quoted_strings(string, unescape=False)
   File /usr/lib/pymodules/python2.7/zim/parsing.py, line 41, in 
 split_quoted_strings
 assert not string
 AssertionError:

 ***END

 If I search for:

 mind me asking (without the quotes) it works. It looks like a problem with 
 the '

 If I search for:

 If you don\'t mind me asking (without the quotes) same error. Can't escape 
 the single quote. How do I search for the quotes (single and double)?



 --
 Thanks
 http://www.foto-biz.com
 The Business Of Being A Photographer -- Lightroom QA

 ___
 Mailing list: https://launchpad.net/~zim-wiki
 Post to : zim-wiki@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~zim-wiki
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Searching for single quotes

2013-04-18 Thread Jaap Karssenberg
Reading your mail bit more careful I now notice the without the
quotes you mention. That is your answer right there - for searching a
literal string, put quotes around it.

Please still report the bug - needs better error handling than
throwing the error dialog.

Regards,

Jaap


On Thu, Apr 18, 2013 at 9:31 AM, Jaap Karssenberg
jaap.karssenb...@gmail.com wrote:
 Hi Syv,

 PLease file a bug report in the bug tracker at https://bugs.launchpad.net/zim/

 Thanks,

 Jaap



 On Thu, Apr 18, 2013 at 2:15 AM, Syv Ritch s...@foto-biz.com wrote:
 Hi,

 I opened my note book and search for the sentence:

 If you don't mind me asking (without the quotes)

 and I got from Z59, xUbuntu 12.04

 ***START
 Looks like you found a bug

 Assertion Error:

 This is zim 0.59
 Python version is sys.version_info(major=2, minor=7, micro=3, 
 releaselevel='final', serial=0)
 Gtk version is (2, 24, 10)
 Pygtk version is (2, 24, 0)
 Platform is posix
 Zim revision is:
   branch: pyzim-trunk
   revision: 636 par...@cpan.org-20130123210740-rquhot1l1yzx9w0i
   date: 2013-01-23 22:07:40 +0100

 === Traceback ===
   File /usr/lib/pymodules/python2.7/zim/gui/searchdialog.py, line 89, in 
 _search
 self.results_treeview.search(string)
   File /usr/lib/pymodules/python2.7/zim/gui/searchdialog.py, line 173, in 
 search
 self.query = Query(query)
   File /usr/lib/pymodules/python2.7/zim/search.py, line 125, in __init__
 self.root = self._parse_query(string)
   File /usr/lib/pymodules/python2.7/zim/search.py, line 129, in 
 _parse_query
 words = split_quoted_strings(string, unescape=False)
   File /usr/lib/pymodules/python2.7/zim/parsing.py, line 41, in 
 split_quoted_strings
 assert not string
 AssertionError:

 ***END

 If I search for:

 mind me asking (without the quotes) it works. It looks like a problem with 
 the '

 If I search for:

 If you don\'t mind me asking (without the quotes) same error. Can't escape 
 the single quote. How do I search for the quotes (single and double)?



 --
 Thanks
 http://www.foto-biz.com
 The Business Of Being A Photographer -- Lightroom QA

 ___
 Mailing list: https://launchpad.net/~zim-wiki
 Post to : zim-wiki@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~zim-wiki
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Searching for single quotes

2013-04-18 Thread Syv Ritch
On Thu, 18 Apr 2013 14:45:31 +0200
Jaap Karssenberg jaap.karssenb...@gmail.com wrote:

 Reading your mail bit more careful I now notice the without the
 quotes you mention. That is your answer right there - for
 searching a literal string, put quotes around it.
 
 Please still report the bug - needs better error handling than
 throwing the error dialog.

Sorry, but I did not express myself clearly. English is not my first
nor second language so...

How can I search for a string that contains a single quote or a
double quote?

-- 
Thanks
http://www.foto-biz.com
The Business Of Being A Photographer -- Lightroom QA

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Searching for single quotes

2013-04-18 Thread Jaap Karssenberg
On Thu, Apr 18, 2013 at 5:48 PM, Syv Ritch s...@foto-biz.com wrote:
 How can I search for a string that contains a single quote or a
 double quote?

You search for If you don't mind me asking  including the  quotes.

Vice versa you use ' to quote a term with  in it.

Regards,

Jaap

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


[Zim-wiki] Searching for single quotes

2013-04-17 Thread Syv Ritch
Hi,

I opened my note book and search for the sentence:

If you don't mind me asking (without the quotes)

and I got from Z59, xUbuntu 12.04

***START
Looks like you found a bug

Assertion Error:

This is zim 0.59
Python version is sys.version_info(major=2, minor=7, micro=3, 
releaselevel='final', serial=0)
Gtk version is (2, 24, 10)
Pygtk version is (2, 24, 0)
Platform is posix
Zim revision is:
  branch: pyzim-trunk
  revision: 636 par...@cpan.org-20130123210740-rquhot1l1yzx9w0i
  date: 2013-01-23 22:07:40 +0100

=== Traceback ===
  File /usr/lib/pymodules/python2.7/zim/gui/searchdialog.py, line 89, in 
_search 
self.results_treeview.search(string)
  File /usr/lib/pymodules/python2.7/zim/gui/searchdialog.py, line 173, in 
search
self.query = Query(query)
  File /usr/lib/pymodules/python2.7/zim/search.py, line 125, in __init__
self.root = self._parse_query(string)
  File /usr/lib/pymodules/python2.7/zim/search.py, line 129, in _parse_query
words = split_quoted_strings(string, unescape=False)
  File /usr/lib/pymodules/python2.7/zim/parsing.py, line 41, in 
split_quoted_strings
assert not string
AssertionError: 

***END

If I search for:

mind me asking (without the quotes) it works. It looks like a problem with 
the ' 

If I search for:

If you don\'t mind me asking (without the quotes) same error. Can't escape 
the single quote. How do I search for the quotes (single and double)?



-- 
Thanks
http://www.foto-biz.com
The Business Of Being A Photographer -- Lightroom QA

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp