Templates won't work (won't get pasted)

Bug #696205 reported by MyOtheHedgeFox
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
RedNotebook
Fix Released
Undecided
Jendrik Seipp

Bug Description

See subject.
Tried both custom and default templates: neither of them add to the current entry.

Attaching the log file to the bug report.

The problem seems to be in the charset guessing module or something of this kind.

Tags: templates
Revision history for this message
MyOtheHedgeFox (a-ztech) wrote :
Revision history for this message
Andreas Christ (gormfull) wrote :

Hi,

I think the bug is in the line:

date = date.decode(date)

in the file templates.py (line 168 in my version)

instead this should be

date = date.decode()

(at least this works for me.)

Revision history for this message
Kai Dehrmann (kai-dehrmann) wrote : Re: [Bug 696205] Re: Templates won't work (won't get pasted)

Great, that also works for me !

Thank you very much ! Wonderfull program !

Kind regards

Kai Dehrmann

Am 04.01.2011 12:23, schrieb Gormfull:
> Hi,
>
> I think the bug is in the line:
>
> date = date.decode(date)
>
> in the file templates.py (line 168 in my version)
>
> instead this should be
>
> date = date.decode()
>
> (at least this works for me.)
>

Revision history for this message
Jendrik Seipp (jendrikseipp) wrote :

Good catch! Don't know how that "date" got there. Fixed in trunk.

Changed in rednotebook:
status: New → Fix Committed
assignee: nobody → Jendrik Seipp (jendrikseipp)
Revision history for this message
MP (marcin-tutmo) wrote :

Hi!

I had the same problem after upgrading to 1.1.2. Described way helped, but I have still problem connected with this one. Now when I am adding template there is incorrect encoding. I my rednotebook.log file I have:

Trying to open /home/user-name/.rednotebook/templates/Zwykły wpis.txt with xdg-open
2011-01-29 21:55:23,865 INFO Chardet guesses {'confidence': 0.75257235093750585, 'encoding': 'ISO-8859-2'} for /home/user-name/.rednotebook/templates/6.txt

I am using linux so I have utf-8 encoding. What is responsible for guessing the encoding of template file?

I hope you can help me fixing this annoying bug.

Revision history for this message
Jendrik Seipp (jendrikseipp) wrote :

You may want to try the latest development version:

http://rednotebook.sourceforge.net/participate.html#code (Under Hacking)

Revision history for this message
oscarin (oscarin-ch) wrote :

I changed the line 168 in the file templates.py as said Gormfull.

date = date.decode(date)
for
date = date.decode()

and works just fine, thanks very much.

Changed in rednotebook:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.