Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Advanced options for kotti_blog #5

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4713d5c
Add a basic sidebar and implement filtering by tag
nightmarebadger Dec 20, 2013
f1ea4d4
Make the blog title link to an unfiltered blog
nightmarebadger Dec 20, 2013
c24e1fb
Whoops, turned request and context around (thought
nightmarebadger Dec 20, 2013
3bcff2e
Added all dates from posts to the sidebar - they show the
nightmarebadger Dec 20, 2013
059aee9
Only show tags/dates from posts you can actually see
nightmarebadger Dec 20, 2013
3e9db68
Make sure we can switch pages while filtered
nightmarebadger Dec 20, 2013
ef9cdb4
Adding more metadata (date/time, tags with links to filters),
nightmarebadger Dec 20, 2013
89e970e
Added metadata and similar styling to blog view too
nightmarebadger Dec 20, 2013
bad297c
Adding proper HTML to sidebar
nightmarebadger Dec 20, 2013
f87c2c9
Marking translations
nightmarebadger Dec 20, 2013
4fa3dd6
Move getting tags/archives to methods in Blog class. Tried to
nightmarebadger Dec 22, 2013
8b552d6
Add a categories view which either lists categories or shows
nightmarebadger Dec 22, 2013
1b786ad
Reworked pagination so it works via URL's like
nightmarebadger Dec 22, 2013
6e9ccea
Make sure to use the new categories URL's everywhere
nightmarebadger Dec 22, 2013
d7c9293
Implemented archives in the same way as categories (will fix
nightmarebadger Dec 22, 2013
fa4f486
New archives URL in sidebar
nightmarebadger Dec 22, 2013
7e8adfd
Fix archives and categories "list" view
nightmarebadger Dec 22, 2013
24bb50a
Use archives template on archives listing, fixes to the
nightmarebadger Dec 22, 2013
1b7de69
Use correct url's in archives listing
nightmarebadger Dec 22, 2013
61e6230
Show no. of posts for category/archive, add basic settings
nightmarebadger Dec 22, 2013
bea99f8
Instead of querying, use Kotti's .children attribute. Not sure
nightmarebadger Dec 26, 2013
1eafd0b
Put all filtering in one function so we only need to iterate
nightmarebadger Dec 26, 2013
943d7a2
Cleaning up imports
nightmarebadger Dec 26, 2013
15e3b4d
Fixes to archives and categories view templates
nightmarebadger Dec 26, 2013
c245e3a
Minor cleaning
nightmarebadger Dec 26, 2013
d31a764
If you choose 0 in the "how many categories/archives are
nightmarebadger Dec 27, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleaning up imports
nightmarebadger committed Dec 26, 2013
commit 943d7a2d5e17ec8a758e49d7538ef33c237495c6
5 changes: 1 addition & 4 deletions kotti_blog/views.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
from dateutil.tz import tzutc
import datetime

from deform.widget import DateTimeInputWidget
from pyramid.exceptions import PredicateMismatch
from pyramid.renderers import get_renderer
from pyramid.view import render_view_to_response
from pyramid.view import view_config
from pyramid.view import view_defaults
import colander
import datetime

from kotti import DBSession
from kotti.security import has_permission
from kotti.views.edit import DocumentSchema
from kotti.views.form import AddFormView
from kotti.views.form import EditFormView