0.6 - automatic GUID not working with automatic permalink #38
Comments
Looks like when using only GUID the results are still None. Example from GUID (only) use in a map.mako file is None and if only GUID is used within rss.mako file, instead of the (present) option for Permalink, results are also None. |
Based on my tests and my read of the code:
Note: when automatically generating a permalink from the template in the config file the string :uuid (which, by default, is not part of the template string) is replaced with the hex representation of the sha1 hash of the blog title. It seems like that would not necessarily be universally unique. :) The changes I propose:
One issue I want to call out is that if the behavior of :uuid in the permalink template changes, it will probably change some people's existing permalinks. I think this is justified because the :uuid should really be replace with something more likely to be universally unique. Anyway, I'll work on a patch. |
I've implemented the changes I've suggested in my tree (git://github.com/szoth/blogofile.git) in commit ef1111f: https://github.com/szoth/blogofile/commit/ef1111f85c850b8d76204b468460856152b8f17b I suppose the base64 encoding might be too ugly for some and couldn't be used in a javascript identifier. My own feeling is that base16 is wasteful of url real estate. |
Excellent. Good fix. Merged in SHA: 7754006 |
If the user is using both automatic permalink and automatic GUID generation, then a GUID is not generated properly because it attempts to do so before the permalink is generated. GUIDs generated in this fashion default to None.
The text was updated successfully, but these errors were encountered: