Permalink
Commits on Jun 10, 2012
  1. python3 compatibility for import, closes #30 ...

    posativ committed Jun 10, 2012
    ... and a fix in pandoc conversion, that leads to weird line breaks
    
    Also version bump to 0.3.5, maybe the last release from the 0.3 line.
  2. Merge branch 'argparse'

    posativ committed Jun 10, 2012
  3. old optparse formatting

    posativ committed Jun 10, 2012
  4. fix tests with 2.6

    posativ committed Jun 10, 2012
  5. replace optparse with argparse

    posativ committed Jun 10, 2012
    optparse is deprecated since 2.7 in favour of argparse. Argparse's
    sytnax is more verbose but supports subcommands!
    
    Tasks in acryamid/tasks/ have now a not yet public API, but within
    the next releases it should be possible to create custom subcommands::
    
        >>> from acrylamid.tasks import register, argument
        register(['mycommand', 'alias'], arguments=[argument('foo', nargs='+')],
            help="my help", func=lambda conf, env, options: None)
Commits on Jun 9, 2012
  1. CHANGES draft for 0.3.5

    posativ committed Jun 9, 2012
  2. no warnings.warn for the user, use it internally...

    posativ committed Jun 7, 2012
    ... when called with --debug-like flag. Not implemented currently.
  3. appendum to #36, a custom mode

    posativ committed Jun 7, 2012
    In your conf.py::
    
        TYPOGRAPHY_MODE = "a"
    
    to enable the old behavior of educateDashes.
Commits on Jun 4, 2012
Commits on Jun 3, 2012
  1. simplify HTML5 layout a bit

    posativ committed Jun 3, 2012
  2. successful 2to3 and few changes for compatibility

    posativ committed Jun 3, 2012
    run testsuite with ./p3test.sh that will create a virtualenv
    if not already present, install test requirements and does
    
        $ python setup.py install
        $ 2to3 -w specs/
        $ nosetests specs/
    
    If you're on mac, cram-tests pass too.
  3. unittest: explicit is better than implicit

    posativ committed Jun 3, 2012
    I hate all available unittest frameworks for python. Not a single
    one (except konira) has the same API for different python versions.
    
    Now I use nosetests again (it's a runner, not a test framework in
    my eyes). Konira is no longer developed and has many issues, despite
    the fact of NIH.
  4. forgot a1abbd1 for tag view

    posativ committed Jun 3, 2012
Commits on Jun 2, 2012
  1. configurable templates, closes #24

    posativ committed Jun 2, 2012
    and add previously stashed docs.
  2. don't create multiple filters objects for aliases

    posativ committed Jun 2, 2012
    `rst`, `rest` and `reST` create a completely new filter object
    but this is not necessary. Fixing this issue, involved a new
    way to collect filters.
    
    Instead of monkey-patching disabled filter and hope they won't
    collide (their hash was always lamda : 0) they are now properly
    disabled by replacing their hash with a unique one and copy all
    other stuff from the original filter.
    
    In addition the way how h1-h6 magically conflicted with each other
    although they were different filters is fixed and not longer possible.
  3. add previous and next relations to single entry, close #29

    posativ committed Jun 2, 2012
    That was not that trivial. Entries are now rendered by their internal
    ordering (by date) and will update when any permalink has changed or
    you remove/add an entry.
    
    Also fixed our XHTML template. This commit retains compatibility
    with Acrylamid ≤ 0.3.4 but has new attributes on env.prev and
    env.next, see acrylamid.helpers:link for details.
  4. flake8 --ignore=E501,E225,E702

    posativ committed Jun 2, 2012
    Altough they have an issue with `lambda : None` and I am
    not happy with 78 characters per line, it makes Python code
    really ugly.
Commits on Jun 1, 2012
  1. Merge pull request #37 from markvl/zero-padding

    posativ committed Jun 1, 2012
    Add zero padded versions of the month and day in the BaseEntry class.
  2. Rename the zero_padded_* properties to z*.

    markvl committed Jun 1, 2012
    Specifically:
    zero_padded_month -> zmonth
    zero_paddad_day -> zday
  3. Merge pull request #36 from markvl/typography-dashes

    posativ committed Jun 1, 2012
    Do not change smartypants.educateDashes* with a custom implementation.
  4. Add zero padded versions of the month and day in the BaseEntry class.

    markvl committed Jun 1, 2012
    By adding these properties, you can configure URLs like this:
        /:year/:zero_padded_month/:zero_padded_day/:slug/
    to get:
        /2012/06/01/example
  5. Do not change smartypants.educateDashes* with a custom implementation.

    markvl committed Jun 1, 2012
    When using the new_dashes function, smartypants does not replace two
    dashes (--) with an en dash and three dashes (---) with an em
    dash. Without these modifications, smartypants DOES replace the dashes
    as expected.
    
    Using smartypants 1.6.0.3 from PyPI.
  6. add info docs

    posativ committed Jun 1, 2012
  7. add ANSI styles like bold

    posativ committed Jun 1, 2012
        >>> from acrylamid.colors import red, bold
        assert red(bold(1)) == bold(red(1))
  8. clean tasks/info.py and add acrylamid.colors module

    posativ committed Jun 1, 2012
        >>> from acrylamid.colors import green, blue, red, white
        >>> print red('Foo'), blue(123), white({1: 2})
  9. mixed tabs with spaces

    posativ committed Jun 1, 2012