Re: [Zim-wiki] How to export attachments in zim wiki export, and one bug.

2015-06-13 Thread Jaap Karssenberg
Both issues to be fixed in next revision.

Regards,

Jaap


On Sun, May 3, 2015 at 6:17 PM, Radek  wrote:

> Hello,
>
>
> I have one question.  I lately upgraded zim to version 0.62 and
> noticed that the export templating is different.  It took me some time
> to put it in work, but one thing is not working at all, attachments.
> I use following code to render attachments and my problem is it
> generates "local" uri instead of web.  It means that the uri(file) is
> like
> "file:///home/radek/tmp/zim-radek-public/Public/Software/Typesetting/Groff/groff-book.pdf"
>
> [% IF page.attachments %]
> Attachments:
> Links are broken!
> 
> [%- FOR file IN page.attachments -%]
> 
> [% file.basename
> %]
>  | 
> [% file.size %]
>  | 
> [% file.mtime %]
>  | 
> ([% file %])
> 
> [%- END -%]
> 
> [% END %]
>
> I look through the documentation, which is sparse.  And did not find any
> help.
>
>
> Next thing I noticed that ZIM do not like, if I wrote:
>
> '''
> '''
>
> When I press save before entering the code in between the ''' it shows
> dialog saying:
>
> Could not save page: Public:Programming:Building Compiler Easy:030
> Program Template in C
>
> 'NoneType' object has no attribute 'insert'
>
> To continue, you can save a copy of this page or discard
> any changes. If you save a copy, changes will also be
> discarded, but you can restore the copy later.
>
>
>
> --
> Radek
>
> ___
> 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


[Zim-wiki] How to export attachments in zim wiki export, and one bug.

2015-05-03 Thread Radek
Hello,


I have one question.  I lately upgraded zim to version 0.62 and
noticed that the export templating is different.  It took me some time
to put it in work, but one thing is not working at all, attachments.
I use following code to render attachments and my problem is it
generates "local" uri instead of web.  It means that the uri(file) is
like 
"file:///home/radek/tmp/zim-radek-public/Public/Software/Typesetting/Groff/groff-book.pdf"

[% IF page.attachments %]
Attachments:
Links are broken!

[%- FOR file IN page.attachments -%]

[% file.basename
%]
 | 
[% file.size %]
 | 
[% file.mtime %]
 | 
([% file %])

[%- END -%]

[% END %]

I look through the documentation, which is sparse.  And did not find any help.


Next thing I noticed that ZIM do not like, if I wrote:

'''
'''

When I press save before entering the code in between the ''' it shows
dialog saying:

Could not save page: Public:Programming:Building Compiler Easy:030
Program Template in C

'NoneType' object has no attribute 'insert'

To continue, you can save a copy of this page or discard
any changes. If you save a copy, changes will also be
discarded, but you can restore the copy later.



-- 
Radek

___
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