fix typo in init tests

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
use DEFAULT_TRANSLATIONS_PATTERN in nikola init

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
use n.p.cd.init.parse_config in importers

There is no need to edit importers when n.p.cd.init changes anymore!

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
flake8

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
fix the config generation for init/import

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
parse_config → prepare_config

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
leftover ralsina.com.ar link

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
fix #1075 -- use self.config['COPY_SOURCES']

Without this:

 * HIDE_SOURCELINK and COPY_SOURCES are unset, so
 * Nikola.config fills them as (False, True), but
 * Nikola.__init__ checks conf.py, which results in
 * HIDE_SOURCELINK = True, but COPY_SOURCES = True, which
 * works incorrectly and is unintended, and does
 * exactly what this was meant to protect against.

(commit message v2, clause 4 was wrong)

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Fix #1060 -- add `nikola new_page`

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
add the is_post parameter for create_post

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Changelog entry for new_page

[ci skip]

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
rewrite dodo.py to use a better (faster!) flake8 command

dodo.py is meant to be used for running some useful
commands by the developers.  Regular users can just
ignore it.

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Remove TranslatableSetting (will return in v7.0.0)

RATIONALE:

There are tons of things done only for backwards compatibility.
Specifically, it’s the __str__ and __unicode__ methods returning
a sane value (so it’s a drop-in replacement in templates).  Then there
are all those dunder magic methods, which are done to fix things like
indexes_title + indexes_pages.  A much saner solution would be to
elliminate all the uses of “bare” variables here and call()† the
settings, returning a string instead of a TranslatableSetting object,
making it faster and nicer.

Even though we can modify our codebase and our themes, all the
third-party things (including themes and plugins) would break.  This
is not nice.  And although __str__/__unicode__ are likely to stay in
(which will make themes mostly compatible unless they are Mako themes
and are doing something crazy, like the aforementioned string
concatenation).

But, you might be saying “it will break in v7.0.0 then!”.  The answer
to that concern is easy: That version is DESIGNED to break backwards
compatibility.  We are free to break everything, unlike this minor
release of v6.4.0.  And we could even get rid of __str__/__unicode__,
by forcing everyone to call()† us, producing the standard ugly
__repr__-esque thing of `<….TranslatableSetting object at 0x…>`.

The “fixed” implementation should be back to master in early March.

† By that, I mean execute the __call__ method of the settings.  This
  is a magic method, executed by calling an instance, that is:

      A = TS('something')
      print(A())

  This matches the usage of post.title().  The instantiation happens
  internally, so we will just say “post.title and blog_title work
  the same way” to users — and we won’t lie.

cc #1057, #851

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Merge pull request #1077 from getnikola/new_page

Add `nikola new_page`
Merge pull request #1074 from getnikola/fix-default-paths

Modify config generation in init and importers
correct dependency error
Nicer repr for Posts
Fix #1082
as suggested
`nikola init` uses `pprint.pformat` now

via punchagan/statiki@bf0102f

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>