Re: [Zim-wiki] Save simple text emails and remove the end of line (manuall line wrapping)

2011-07-06 Thread alejo d
hi all,

i tried to run some scripts but always get a permission denied error.

have put the scripts both in /usr/local/bin and now they are beside my
Notes in /home/Notes...

have made the scripts and even a particular note fullly:

-rwxrwxrwx

but still same error.. im runnig zim as user and both files in
question are in a path where i have perms..

if anyone has a hint it will be really appreciated.

tx,
/a

___
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] Save simple text emails and remove the end of line (manuall line wrapping)

2011-07-06 Thread Jaap Karssenberg
On Wed, Jul 6, 2011 at 5:23 PM, alejo d alejodu...@gmail.com wrote:

 i tried to run some scripts but always get a permission denied error.

 have put the scripts both in /usr/local/bin and now they are beside my
 Notes in /home/Notes...

 have made the scripts and even a particular note fullly:

 -rwxrwxrwx

 but still same error.. im runnig zim as user and both files in
 question are in a path where i have perms..

 if anyone has a hint it will be really appreciated.


Could you run zim in debug mode (zim -D) and check the full error output ?

-- 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


Re: [Zim-wiki] Save simple text emails and remove the end of line (manuall line wrapping)

2011-07-06 Thread alejo d
hi, seems i need to change some python permissions(?), im running
under ubuntu 11.04 this Version: 0.50-1
here the -D log:

INFO: Index update done
DEBUG: Loading /home/alejo/.config/zim/customtools/remove line
breaks-usercreated.desktop
INFO: Execute custom tool remove line breaks
DEBUG: Wrote /tmp/zim-alejo/tmp-page-source.txt
INFO: Running: ['/tmp/zim-alejo/tmp-page-source.txt',
'/home/alejo/Notes/remove_line_breaks.py.gz'] (cwd: None)
DEBUG: Running ErrorDialog
ERROR: [Errno 13] Permission denied
Traceback (most recent call last):
  File /usr/lib/pymodules/python2.7/zim/gui/__init__.py, line 1508,
in exec_custom_tool
tool.run(args)
  File /usr/lib/pymodules/python2.7/zim/gui/applications.py, line 720, in run
Application.run(self, args)
  File /usr/lib/pymodules/python2.7/zim/applications.py, line 85, in run
subprocess.check_call(argv, cwd=cwd, stdout=open(os.devnull, 'w'))
  File /usr/lib/python2.7/subprocess.py, line 499, in check_call
retcode = call(*popenargs, **kwargs)
  File /usr/lib/python2.7/subprocess.py, line 486, in call
return Popen(*popenargs, **kwargs).wait()
  File /usr/lib/python2.7/subprocess.py, line 672, in __init__
errread, errwrite)
  File /usr/lib/python2.7/subprocess.py, line 1213, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
INFO: Remove file: /tmp/zim-alejo/tmp-page-source.txt

tx,
/a

On Wed, Jul 6, 2011 at 9:18 PM, Jaap Karssenberg
jaap.karssenb...@gmail.com wrote:
 On Wed, Jul 6, 2011 at 5:23 PM, alejo d alejodu...@gmail.com wrote:

 i tried to run some scripts but always get a permission denied error.

 have put the scripts both in /usr/local/bin and now they are beside my
 Notes in /home/Notes...

 have made the scripts and even a particular note fullly:

 -rwxrwxrwx

 but still same error.. im runnig zim as user and both files in
 question are in a path where i have perms..

 if anyone has a hint it will be really appreciated.

 Could you run zim in debug mode (zim -D) and check the full error output ?

 -- Jaap





-- 
__
https://n-1.cc/pg/profile/alejo

___
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] Save simple text emails and remove the end of line (manuall line wrapping)

2011-07-06 Thread Jaap Karssenberg
The line

INFO: Running: ['/tmp/zim-alejo/tmp-page-source.txt', '/home/alejo/Notes
/remove_line_breaks.py.gz'] (cwd: None)

suggests that the command is empty (first item is the tmp file, not the
script you are trying to run).

Could you attach the file /home/alejo/.config/zim/customtools/remove line
breaks-usercreated.desktop ?

-- 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


Re: [Zim-wiki] Save simple text emails and remove the end of line (manuall line wrapping)

2011-04-11 Thread nomnex
On Thu, 7 Apr 2011 11:53:32 +0200
Jaap Karssenberg jaap.karssenb...@gmail.com wrote:

 On Thu, Apr 7, 2011 at 4:50 AM, nomnex nom...@gmail.com wrote:
 
  I need to save simple text emails in Zim, but to remove the manual
  line breaks (msg end of line of about ~70 chars), without removing
  the paragraph breaks.
 
 Sounds like a great example to show the usage of the custom tools.
 
 Attached a script, put it somewhere, make it executable, go into zim
 Tools - Custom Tools and add the script with the %f commandline
 argument.
 
 This will add the script in the tools menu and you can process pages
 in one go.

This is SUPER cool. Thank you for the script and the how to!!!


-- 
nomnex nom...@gmail.com

___
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