Mercurial > piecrust2
comparison piecrust/admin/views/sources.py @ 935:7ecb946bfafd
admin: Lots of fixes for running the admin panel in a WSGI server.
- Use new source APIs in the dashboard to open WIP files.
- Fixed broken/outdated code in some views.
- Fixed cases when Flask is not running at the root URL by using the
`SCRIPT_NAME` variable somewhat more properly.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 04 Oct 2017 09:15:16 -0700 |
parents | dcdec4b951a1 |
children | 4c69935ca415 |
comparison
equal
deleted
inserted
replaced
934:98430e7143d2 | 935:7ecb946bfafd |
---|---|
25 'author': p.get('author', default_author), | 25 'author': p.get('author', default_author), |
26 'timestamp': p['timestamp'], | 26 'timestamp': p['timestamp'], |
27 'tags': p.get('tags', []), | 27 'tags': p.get('tags', []), |
28 'category': p.get('category'), | 28 'category': p.get('category'), |
29 'source': source_name, | 29 'source': source_name, |
30 'url': url_for('.edit_page', uri=p['slug']) | 30 'url': url_for('.edit_page', url=p['rel_url']) |
31 } | 31 } |
32 data['pages'].append(page_data) | 32 data['pages'].append(page_data) |
33 | 33 |
34 prev_page_url = None | 34 prev_page_url = None |
35 if pgn.prev_page_number: | 35 if pgn.prev_page_number: |