Some problems with Firedrop2

2 views
Skip to first unread message

Tool69

unread,
Jul 12, 2006, 4:43:20 PM7/12/06
to Firedrop2 the Python Blog Client
Hi,
I'm testing Firedrop2 and I have some questions ( sorry, I'm a newbie
with html and css):

1. I've made 5 posts and I deleted the #2 and #3, now on my blog I can
see posts #1,#4 and #5...why do they are not re-numbered #1,#2 and #3 ?
How can I disable these numbers appearing on my blog ?

2. Is there any macro or plugin to make thumbnails from a given image
on a hard drive ?

3. How can I migrate my Dotclear blog to Firedrop2 ?

My first impressions are really good, I thank you much for your
beautiful work :

Tool69 (http://kib2.free.fr/pythonblog/)

Stewart Midwinter

unread,
Jul 12, 2006, 11:20:20 PM7/12/06
to fire...@googlegroups.com, kibleur.c...@gmail.com
salut Christophe, bienvenue à Firedrop!


On 7/12/06, Tool69 <kibleur.c...@gmail.com> wrote:


1. I've made 5 posts and I deleted the #2 and #3, now on my blog I can
see posts #1,#4 and #5...why do they are not re-numbered #1,#2 and #3 ?
How can I disable these numbers appearing on my blog ?

If you delete those post numbers, you may make it harder for your readers to bookmark the pages, but it's up to you.

You will have to edit the template .html files in order to get rid of the post numbers if you don't want them. read up on this documentation page:
http://voidspace.org.uk/python/firedrop2/introduction_to_templates.html

then find entry_template.html in your blog folder, and then look for and delete this code (make a backup copy of the entry template file in case you change your mind or screw up):

<a  title="Permanent link to this post"
id="e<% entry.get_id() %>"
name="e<% entry.get_id() %>"
href="<% permalink( entry.get_id()) %>"
>#<% entry.get_id() %></a>
If you change Themes, you'll have to make the change again, as a new entry_template.html file will be put in your blog folder.


2. Is there any macro or plugin to make thumbnails from a given image
on a hard drive ?

that's not part of  Firedrop.  There may be python scripts that do that, you can look in http://cheeseshop.python.org/pypi

3. How can I migrate my Dotclear blog to Firedrop2 ?

some manual work will be required.  If your Dotclear blog entries don't have a lot of formatting, you might just cut and paste the text into new Firedrop entries.  If there is lots of html formatting, you could open each Dotclear entry on a separate browser, page, then Save As html files.  Firedrop can then import the html file into a new entry.  Does that help?

My first impressions are really good, I thank you much for your
beautiful work :

Oui, c'est amusant jouer avec Firedrop.

A+
Stewart
http://midtoad.org/blog2

Hans Nowak

unread,
Jul 13, 2006, 12:51:01 AM7/13/06
to fire...@googlegroups.com, kibleur.c...@gmail.com
Stewart Midwinter wrote:
> On 7/12/06, *Tool69* <kibleur.c...@gmail.com
> <mailto:kibleur.c...@gmail.com>> wrote:
>
> 1. I've made 5 posts and I deleted the #2 and #3, now on my blog I can
> see posts #1,#4 and #5...why do they are not re-numbered #1,#2 and #3 ?
> How can I disable these numbers appearing on my blog ?
>
> If you delete those post numbers, you may make it harder for your
> readers to bookmark the pages, but it's up to you.

These post numbers functions as IDs. They uniquely identify each post.
Their actual value isn't important, which is why I (the original
author of Firedrop) didn't bother to add code that renumbers them.
However, they important because they appear in permalinks, etc.

That said, you don't have to display these numbers in your weblog, of
course. For example, in the template code quoted by Stewart:

> <a title="Permanent link to this post"
> id="e<% entry.get_id() %>"
> name="e<% entry.get_id() %>"
> href="<% permalink(
> entry.get_id()) %>"
> >#<% entry.get_id() %></a>

...you could replace the part between <a> and </a> with something like
"permalink". This way, the number won't show up, but it's still used
"internally" to create a unique link to the post.

Hope this helps!

--
Hans Nowak
http://zephyrfalcon.org/

Tool69

unread,
Jul 13, 2006, 4:23:59 AM7/13/06
to Firedrop2 the Python Blog Client
Hi,
I've made some modifications with my template file, in fact I've just
commented out the part between <a> and </a>, but I'm still not
convinced with it because of the id generated numbers.

Hans : sorry I didn't understood your answer, if I write something
like <a>"permalink"</a>,
1. I don't see how the id will still get created ;
2. I'll always have a "permalink" name on all my enties.
So why does Firedrop2 simply doesn't delete the old entries correctly
? If I decide to delete one, then Firedrop2 should renumber all the
posts id by date...this is just a suggestion.

Stewart : Good French speaking, bravo ! For the thumbnails, I've
already done such a little script, but I wanted it inside the gui of
Firedrop2. ie : choosing an image on my drive, create the thumbnail and
tranfer the images inside one of my blog images directories. Thanks for
the suggestions with the Dotclear migration, I'll try them when I find
time for.

Another question : How can I put categories inside my personnal links ?

I've found an interesting pdf cheatsheet for the Textile format, maybe
you could put a link to it on the Firedrop2 website, it helped me a
lot, so maybe
others...http://hypertexthero.com/dlog/pdf-textile-reference

See you, thanks :
6Tool9

Michael Foord

unread,
Jul 13, 2006, 5:01:24 AM7/13/06
to fire...@googlegroups.com
Tool69 wrote:
> Hi,
> I've made some modifications with my template file, in fact I've just
> commented out the part between <a> and </a>, but I'm still not
> convinced with it because of the id generated numbers.
>
> Hans : sorry I didn't understood your answer, if I write something
> like <a>"permalink"</a>,
> 1. I don't see how the id will still get created ;
>
ID's are always generated (they are used internally by Firedrop as
well), but you don't need to keep them in your template.

I don't understand the problem as you stated it above - is the ID
*still* appearing in your pages ?

If so, can you show us the actual snippet from your template.

> 2. I'll always have a "permalink" name on all my enties.
>

Just remove that from your template. If you show us your
'entry_tamplate.html', we can advise how to edit it.

> So why does Firedrop2 simply doesn't delete the old entries correctly
> ? If I decide to delete one, then Firedrop2 should renumber all the
> posts id by date...this is just a suggestion.
>

No.

If you have a lot of entries, then you don't want them all renumbered as
this will destroy the 'permalinks' of *all* your later entries. (Which
people bookmark to get to specific posts.)


> Stewart : Good French speaking, bravo ! For the thumbnails, I've
> already done such a little script, but I wanted it inside the gui of
> Firedrop2. ie : choosing an image on my drive, create the thumbnail and
> tranfer the images inside one of my blog images directories. Thanks for
> the suggestions with the Dotclear migration, I'll try them when I find
> time for.
>

Hmm... I'm not 100 percent clear on what you want, but it ought to be
fairly easy to write a plugin that provides some of the functionality
you want. Using PIL to create thumbnails is *startlingly* easy. Perhaps
you could give it a try :-)

> Another question : How can I put categories inside my personnal links ?
>

What do you mean by personal links ? Do you mean inside your entry
template ?


> I've found an interesting pdf cheatsheet for the Textile format, maybe
> you could put a link to it on the Firedrop2 website, it helped me a
> lot, so maybe
> others...http://hypertexthero.com/dlog/pdf-textile-reference
>
>

Great, thanks, I'll try to remember to add this to the docs.

All the best,


Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

> See you, thanks :
> 6Tool9
>
>
> >
>
>

Tool69

unread,
Jul 17, 2006, 5:24:26 AM7/17/06
to Firedrop2 the Python Blog Client
Thanks for all, I managed to solve my problems but one :
When I create a post in textile format, I can't put any accent in the
title.
My encoding (inside build.ini) is latin1...if you've got any idea.
Thanks,
6TooL9 (hxxp://kib2.free.fr/new_blog/)

Stewart Midwinter

unread,
Jul 17, 2006, 11:36:46 AM7/17/06
to fire...@googlegroups.com
It may be that the encoding only applies to the content of the post, and not the title of the post.  It may be that you need the unicode version of wxPython installed - are you using that version?

S

Tool69

unread,
Jul 17, 2006, 4:14:08 PM7/17/06
to Firedrop2 the Python Blog Client
yes, I use the unicode version of wxPython 2.6.1.0. I think that the
enconding applies only with the content, not the title. What can I do
to solve this ?

6TooL9 (hxxp://kib2.free.fr/new_blog/)

Stewart Midwinter

unread,
Jul 17, 2006, 4:22:28 PM7/17/06
to fire...@googlegroups.com
well, one answer to your question is: you could get into the code and fix it yourself !

Another answer is to go to http://firedrop2.python-hosting.com/ and file this a bug that needs fixing.

cheers
Stewart


On 7/17/06, Tool69 <kibleur.c...@gmail.com> wrote:

Tool69

unread,
Jul 17, 2006, 5:18:31 PM7/17/06
to Firedrop2 the Python Blog Client

Stewart Midwinter a écrit :

> well, one answer to your question is: you could get into the code and fix it
> yourself !

Ok thanks Stewart I prefer this one but which file should I fix ? My
firedrop2 directory contains many...
I had a look at several ones with no success (htmltools.py,
publisher.py, ...).

6TooL9

Stewart Midwinter

unread,
Jul 17, 2006, 5:30:19 PM7/17/06
to fire...@googlegroups.com, A develoepr discussion list for Firedrop2, the Python blog client.
I don't think it's a one-liner change to allow unicode or accented characters in the title of a post, and it has the potential to cause problems if not done right.

I'm cc'ing this to the developer list to see if anyone else has an idea how to fix this easily.

S


Tool69

unread,
Jul 17, 2006, 5:42:00 PM7/17/06
to Firedrop2 the Python Blog Client
Sorry Stewart, I thought that it would be easy to do so. Thanks for
reporting this,
see you :

6TooL9

Reply all
Reply to author
Forward
0 new messages