Logs for #nikola for 2015-08-26

11:34:45 <KwBot> [nikola] wcmckee opened issue #1977: ask for creative commons licence on init https://github.com/getnikola/nikola/issues/1977
12:28:55 <Guest91958> hi all
12:29:12 <Guest91958> trying to write new post I get the following error https://paste.debian.net/305240/
12:41:19 <ralsina> Guest91958: let's see...
12:41:56 <ralsina> Guest91958: weird, it looks like Nikola had a problem instlling. Can you remove and install again?
12:42:07 <Guest91958> will do right away
12:43:07 <ralsina> Guest91958: OTOH maybe there is a real bug there in new_post, I will take a look today
12:43:48 <ralsina> ahhhh 
12:44:06 <ralsina> Guest91958: can you edit new_post.py and change MESSAGES with messages ?
12:44:09 <ralsina> That should fix it
12:44:35 <Guest91958> :D, will do right after I install it back (in few secs)
12:45:54 <Guest91958> ralsina, that should be the one in /usr/lib/python2.7/dist-packages/nikola/plugins/command/new_post.py?
12:46:31 <ralsina> Guest91958: on ssecond thought, I have not had coffee yet, let's wait on this a little bit
12:46:51 <Guest91958> ralsina, haha, mkay :D
12:46:52 <ralsina> Guest91958: yes, let's not do that edit ;-)
12:52:47 <ChrisWarrick> zlatan1: you seem to have outdated language files in your theme
12:53:19 <zlatan1> ChrisWarrick, I removed the theme and installed it again just few mins ago
12:53:32 <ChrisWarrick> zlatan1: what theme is it?
12:53:56 <zlatan1> ChrisWarrick, lanyon
12:54:09 <ChrisWarrick> lanyon should not override messages…
12:54:33 <zlatan1> ChrisWarrick, I'll switch to base and try new post
12:55:51 <ChrisWarrick> zlatan1: open `nikola console` and paste output of this: __import__('messages_en')
12:55:52 <zlatan1> hm, should I rebuild blog with base before trying to write new post? as I get the same error
12:58:16 <ChrisWarrick> not at all
12:58:31 <ChrisWarrick> what is the output of the command I mentioned above (in nikola console)?
13:03:31 <zlatan1> ChrisWarrick, sorry for a bit of wait (had a call)
13:03:35 <zlatan1> output: <module 'messages_en' from 'themes/base/messages/messages_en.pyc'>
13:04:27 <ChrisWarrick> zlatan1: it looks like you have a custom copy of the base theme in your themes/ directory, complete with messages.  Delete it and use the built-in copy.  The built-in themes should never be copied there.
13:04:58 <zlatan1> ChrisWarrick, I only install themes with nikola install_theme <theme>
13:05:15 <ChrisWarrick> zlatan1: no idea why that would happen, maybe there’s some bug
13:05:24 <ChrisWarrick> zlatan1: either way, please delete that copy
13:05:39 <zlatan1> I'll delete entire theme dir and install base again
13:06:06 <ChrisWarrick> no
13:06:10 <ChrisWarrick> don’t install base
13:06:18 <ralsina> base is preinstalled anyway
13:06:19 <ChrisWarrick> install lanyon only
13:06:30 <ChrisWarrick> speaking of which, we should remove the copy feature
13:06:46 <ChrisWarrick> we already haev
13:06:49 <ChrisWarrick> have*
13:07:35 <zlatan1> okay, removing the entire dir and installing again only lanyon did the trick
13:08:47 <ChrisWarrick> there.
13:09:07 <KwBot> [nikola] ralsina closed issue #1977: ask for creative commons licence on init https://github.com/getnikola/nikola/issues/1977
13:20:38 <ralsina> ChrisWarrick: what copy feature?
13:21:03 <ChrisWarrick> ralsina: I thought install_theme used to copy the default themes into the local themes directory, maybe it didn’t (does not happen now)
13:21:20 <ralsina> ChrisWarrick: maybe, I don't remember either
15:24:53 <Aeyoun> I implemented it silly. Will fix, but fuckit. It’s hard to get it right.
15:25:03 <Aeyoun> Sorry, that was posted in the wrong chat.
15:26:52 <ralsina> hahaha
15:27:12 <ralsina> hell knows I have implemented things wrong a lot in this channel :-)
15:28:23 <KwBot> [nikola] Aeyoun opened issue #1978: Document categories https://github.com/getnikola/nikola/issues/1978
15:42:38 <ChrisWarrick> KwBot: ping
15:42:38 <KwBot> ChrisWarrick: pong
17:03:53 <Aeyoun> ChrisWarrick ralsina: is it possible to put categories in their own folders? like output/pants/index.html instead of output/categories/ninja.html ?
17:04:25 <ralsina> Aeyoun: doesn't PRETTY_URLS do that? If no, maybe it should :-)
17:05:47 <Aeyoun> ralsina: I don’t want PRETTY_URLS. I want to stick POSTS = { "pants/best-of-2015.html", "pants", "post.py" } in the same path as the pants category index.
17:06:29 <ralsina> Aeyoun: I don't get it
17:06:44 <ralsina> Aeyoun: you want posts of category X to be in dolder X? Just put them in posts/X ?
17:06:54 <ralsina> s/dolder/folder/
17:07:05 <Aeyoun> ralsina: https://www.aeyoun.com/review/lenovo-onekey-optimizer.html
17:07:22 <Aeyoun> https://www.aeyoun.com/review/index.html
17:07:59 <ralsina> Aeyoun: well, no, then.
17:08:12 <Aeyoun> That file is POSTS = { "reviews/lenovo-blah.html", "review", "post.py" }. I thought I’d add a category tag to each review and use category pages as the index in that folder.
17:08:25 <ralsina> Aeyoun: you can do that by creating a story that has a post-list that shows the posts that match a category tho
17:08:36 <Aeyoun> wouldn’t make an index.
17:08:52 <ralsina> sadly categories are all grouped in one place....
17:09:00 <Aeyoun> I thought this what was categories were for? it’s how they’re used in Textpattern and WordPress.
17:09:04 <ralsina> OTOH with pretty URLs you could set CATEGORY_PATH to /
17:09:11 <ralsina> and then it would look a lot like you want ...
17:09:34 <ralsina> Aeyoun: categories are something people have been redefining everytime they want to use the feature :-P
17:09:52 <Aeyoun> now they’re exactly the same as tags.
17:10:11 <ralsina> not exactly, you can't be in more than one category
17:10:19 <ralsina> but hey, people asked for THAT, too
17:10:32 <Aeyoun> That would be tags then. :P
17:11:07 <Aeyoun> Wow. WordPress has got w.org. o.O
17:12:20 <ralsina> Aeyoun: I hate categories because it's an ill-defined feature implemented by popular demand I have no use for yet am forced to maintain forever.
17:12:55 <Aeyoun> Anyhow, WordPress does the exact thing I’m babbling about for their categories. I though Nikola’s categories were modeled after WP?
17:14:19 <Aeyoun> ralsina: can I hijack the feature, break everyone else’s sites, and make them fulfill a distinct use case separate from Nikola’s tags that match that of other CMSes?
17:14:29 <ralsina> Aeyoun: for v8, sure
17:14:36 <ralsina> Aeyoun: with a feature flag
17:14:50 <ralsina> and a warning that it will change for ever in v9
17:15:48 <Aeyoun> Alternatively, I’d just add another option for folder-based names, document how to use it properly, and set the new option as the default while leaving the current weirdness as-is but restorable by flipping the option.
17:16:19 <Aeyoun> ralsina: how do you do feature flags in Nikola? don’t think I’ve seen one used anywhere. or maybe I’ve not realized what I’ve been looking at.
17:16:26 <ralsina> Aeyoun: mmuch much less invasive idea coming up
17:16:45 <ralsina> Aeyoun: how about you put your posts in posts/categorywhatever
17:16:56 <ralsina> and we just implement indexes for folders?
17:17:22 <ralsina> and maybe a flag that links "category foo" to the folder  containing the post?
17:17:53 <ralsina> sort of like (pelican?) does categories by convention in post layout
17:17:56 <Aeyoun> ralsina: "index for folders" are what categories like this are, aren’t they? anyway, after doing that we could just deprecate categories in v8 and kill it in v9. they’re their as folders.
17:18:05 <ralsina> exactly
17:18:08 <Aeyoun> TAG_PATH = "categories" <--- now, this has to change.
17:18:10 <ralsina> less code instead of more code
17:18:21 * ralsina likes
17:18:47 <ralsina> Aeyoun: oh yes. We could change that default for new sites at least
17:18:48 <Aeyoun> what I want is a POSTS_SUBFOLDER_INDEX, so yeah.
17:18:57 <Aeyoun> others may want a POSTS_SUBFOLDER_LIST, though.
17:19:09 <Aeyoun> ralsina: making that change now
17:19:09 <ralsina> POST_SUBFOLDERS_ARE_INDEXES boolean ;-)
17:19:15 <ralsina> Aeyoun: do a PR
17:21:10 <Aeyoun> oh, boop. was harder than expected to do that.
17:22:13 <ralsina> Aeyoun: should just be adding it in conf.py.in and the default in the init comand?
17:23:09 <Aeyoun> ralsina: leaving the actual default as-is in nikola.py?
17:23:24 <ralsina> Aeyoun: yes
17:23:36 <ralsina> Aeyoun: the one in nikola.py is the default for those who don't have it configured
17:24:03 <ralsina> And  most people have it unconfigured, so changing it there changes it for existing sites ;-)
17:24:17 <ralsina> BUT! Add a note there to change it in v8
17:28:03 <KwBot> [nikola] Aeyoun opened issue #1980: Indexes for POSTS subfolders https://github.com/getnikola/nikola/issues/1980
17:30:04 <ralsina> Aeyoun: I promise to amazon-send you the beer of your choice if you actually describe #1980 :-)
17:39:58 <Aeyoun> ralsina: I doubt you can mail in food into the European commerce zone. :P
17:40:04 <Aeyoun> updated
17:41:26 <Aeyoun> ralsina: looks like some of the required logic is already in place in indexes.py
17:51:29 <KwBot> [nikola] Aeyoun assigned issue #1980 to Aeyoun: Indexes for POSTS subfolders https://github.com/getnikola/nikola/issues/1980
17:57:11 <ralsina> Aeyoun: you'd be surprised!
17:57:36 * ralsina was a manager, he can ship food perks to any location.
17:59:30 <Aeyoun> Entirely untested folder indexes prototype optimistically-written: Run 1 …
18:00:17 <Aeyoun> And it worked. o.O Well, it broke because I had some REDIRECTIONS target overlap. But run 2 worked.
18:07:40 <ralsina> Aeyoun: \m/ rockandroll!
18:09:28 <ChrisWarrick> Aeyoun: note that the setting in conf.py.in should be uncommented
18:25:13 <polyzen> what's the point of favicons by multiple sizes
18:34:20 <ChrisWarrick> polyzen: DPI, some browsers, iphone home screen…
18:43:42 <ralsina> Does this theme look good or is it just me? http://faizullin.info/posts/first.html
18:45:04 <ralsina> too bad he never shared it
18:51:13 <polyzen> looks good
19:35:56 <KwBot> [coil] carlkl opened issue #41: pyinotify necessary for coil? https://github.com/getnikola/coil/issues/41
20:54:54 <polyzen> SyntaxError: unreachable code after return statement
20:55:07 <polyzen>  all-nocdn.js:20:12432
20:57:40 <polyzen> note to self: check how long a line is before trying to paste it. weechat doesn't like 24k column lines
21:10:52 <polyzen> ChrisWarrick, gotcha
21:11:05 <polyzen> sorry, don't know why my brain didn't filter that line earlier :p