collective.recipe.template's input cannot be downloaded

Bug #614396 reported by Łukasz Nowak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
collective.buildout
New
Undecided
Unassigned

Bug Description

Consider attached buildout.
After running:
bin/buildout
apply-template: Input file '/home/luke/tmp/collective/parts/download-input/template-input.html' does not exist.
While:
  Installing.
  Getting section apply-template.
  Initializing part apply-template.
Error: Input file '/home/luke/tmp/collective/parts/download-input/template-input.html' does not exist.

Of course - the file does not exists, as it shall be downloaded.

It comes from the fact, that collective.recipe.template checks for file existence in __init__, and not in install hook.

I'd like to propose to move such checks to __init__, if needed even create collective.recipe.template[online] version to have standard behaviour.

Revision history for this message
Łukasz Nowak (ionowaklukasz) wrote :
Revision history for this message
Łukasz Nowak (ionowaklukasz) wrote :

As additional explanation - with this patch presented buildout profile will work.

If this cloud be accepted, I will be happy to write tests for this issue and invest my time.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.