dandesousa / lapis Goto Github PK
View Code? Open in Web Editor NEWA utility / tool for making common pelican command line tasks easier.
Home Page: http://lapis.readthedocs.org/en/latest/
License: Creative Commons Zero v1.0 Universal
A utility / tool for making common pelican command line tasks easier.
Home Page: http://lapis.readthedocs.org/en/latest/
License: Creative Commons Zero v1.0 Universal
Need to have a way to print or output on the command line that is more easily testable (by either passing equivalent objects and comparing printer output or some other way to mock out that portion), as the current command infrastructure is not scalable testing wise.
should be able to query content by its status (published, draft, hidden)
currently, pelican will fail if you accidently give something a non-unique slug and then try to generate.
we should be good about giving each piece of content a unique slug when creating it. slugify should support something that would tell it whether its slug is unique aside from the current directory.
the current directory doesn't help us because the user could specify a custom article path.
It's probably easiest to just wipe the database and re-sync from disk when there's a change ... need a mechanism to do that.
I think it should be sorted by most recent first for content
Need to try testing this against various version of pelican 3.3+
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 683, in _checkin
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 574, in _finalize_fairy
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 1303, in error
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/site-packages/pelican/log.py", line 141, in _log
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 1409, in _log
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 1419, in handle
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 1481, in callHandlers
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 853, in handle
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 984, in emit
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 906, in handleError
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/traceback.py", line 169, in print_exception
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/traceback.py", line 153, in _format_exception_iter
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/traceback.py", line 18, in _format_list_iter
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/traceback.py", line 65, in _extract_tb_or_stack_iter
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/linecache.py", line 15, in getline
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/linecache.py", line 41, in getlines
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/linecache.py", line 126, in updatecache
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/tokenize.py", line 437, in open
AttributeError: 'module' object has no attribute 'open'
right now having all the functions in the same module as functions makes it hard to track, need a more modular design.
also need to property get LICENSE and other package data into the distribution
if you edit a file with find and save it, syncing of the file does not succeed.
for example if you edit the tags or categories, those things are not changed. It appears as though the diff between the file and the db is not updated.
WARNING 2015-01-28 19:58:47,723: Feeds generated without SITEURL set properly may not be valid
shouldn't come up
the latest and greatest way to install python modules is to use wheels, need to do some research and add support to distribute lapis as a wheel.
$ lapis sync
Traceback (most recent call last):
File "/usr/local/bin/lapis", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/lapis/command.py", line 373, in main
args.func(**kwargs)
File "/usr/local/lib/python3.5/dist-packages/lapis/command.py", line 188, in run
updated = config.store.sync(config.settings)
File "/usr/local/lib/python3.5/dist-packages/lapis/store.py", line 168, in sync
content_updated = self.__sync_content(content)
File "/usr/local/lib/python3.5/dist-packages/lapis/store.py", line 91, in __sync_content
date_created = content.date
AttributeError: 'Page' object has no attribute 'date'
We want lapis to support the notion of content (articles) in a preferred path.
Should be defaulted to something nice in the lapis config, for example
posts/year/month
articles/year/month
posts
or something like that
my hack for configs has to get replaced with an actual class to do the work.
Should support the following:
Need to re-visit the attribute syncing rules for determining that we should re-sync the cache.
this should be the last task to be completed, which will push the release for availability to pypi.
any issues with modifying the templates to be more customized to my article style?
Thank you,
Larry
If a file is passed into sync_file and doesnt exist it should be deleted.
if you we sync and don't find a certain content we should remove those files from lapis.
we probably want an option to disable any zero count listables. it should be the default and user should have the option to turn them on.
check for its presence and disallow calls to termcolor if not available. unit test this
keep each release version consistent by reading it from one place.
I sort my posts by category folder. I'd love to be able to specify a category and use that variable as the initial folder instead of the default "posts". Is that possible?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.