On Sun, Jul 1, 2012 at 10:27 PM, Ravi <
lists...@lavabit.com> wrote:
> Hi,
> How do I get a new site started with the development branch? Is the
> following process reasonably accurate on a Fedora 17 system?
First off, apologies that the docs are lagging the code. These getting
started steps should be in the 0.8 docs. My excuse is more cycling
than coding lately :-) Thanks for persevering to figure out the steps,
and for reporting the issues you've run into.
>
> Is this the right way to set up the plugins branch?
>
> # Set up virtualenv and activate it
> git checkout .../EnigmaCurry/blogofile.git
> cd blogofile
> python setup.py install
> # wait for a while setuptools does its work
> cd ..
> git checkout .../EnigmaCurry/blogofile_blog.git
> cd blogofile_blog
> python setup.py install
> cd ..
>
> Starting a new site:
>
> blogofile init mysite blog
> cd mysite
> # modify _config.py
> blogofile build
> blogofile serve
Yes, the above is all correct. I just reproduced those steps
successfully on OS/X 10.6.8
>
> With the steps above, "blogofile init" fails because blogofile_blog is
> installed as a zipped egg; unzipping the egg manually fixes the problem. Could
> this be done automatically?
In my case the blogofile_blog egg is not zipped. I wonder why it is
not unzipped on Fedora? Having it unzipped is crucial because the
plugin init process uses shutil.copytree to copy the files from the
plugin's site_src to your mysite directory.
I will investigate... Can you please send me an ls of your virtualenv
site-packages directory, and your Python and virtualenv versions?
Actually, it would be wonderful if you could open an issue about this
on
https://github.com/EnigmaCurry/blogofile with that info.
One guess is that whether or not the blogofile_blog egg is zipped is
being driven by the difference in zip-safe default handling between
setuptools and distribute.
>
> Second, when trying to remove the twitter feed from the sidebar by removing
> the appropriate sections in _templates/sidebar.mako and js/site.js, the
> twitter sidebar vanishes only for the main page but is still present in all of
> the blog posts. Editing the installed
> site-packages/.../blogofile_blog/site_src/_templates/sidebar.mako
> does remove the sidebar. Hence, for blog posts, the template path is messed
> up. In fact, printing out the value of config.template_path from init() in
> site-packages/.../blogofile_blog/__init__.py
> shows that mysite's _config.py's customization failes to override the path to
> the default sidebar.mako. How can I work around this?
I think might be an example of the issue I warned about in
https://groups.google.com/d/topic/blogofile-discuss/TNXBpb-_EWs/discussion
As you observe, the "resolution order" for templates is getting messed
up somewhere along the line. I haven't had a chance to get to the root
of this issue. It's small consolation for you, I know, but I
appreciate that you have confirmed that it is a generic issue rather
than one that is specific to the structure of my personal site.
> Regards,
> Ravi
Thanks again for helping to test 0.8.
Doug