Mercurial > gemma
comparison pkg/imports/wx.go @ 1754:807569b08513
Import queue: Auto acceptance is now a property of the import kind itself and is not configurable any more.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 10 Jan 2019 16:19:26 +0100 |
parents | fb05027d93b6 |
children | bb4348ac52ab |
comparison
equal
deleted
inserted
replaced
1753:68bd990dd8e5 | 1754:807569b08513 |
---|---|
50 | 50 |
51 func init() { | 51 func init() { |
52 RegisterJobCreator(WXJobKind, wxJobCreator{}) | 52 RegisterJobCreator(WXJobKind, wxJobCreator{}) |
53 } | 53 } |
54 | 54 |
55 func (wxJobCreator) Description() string { | 55 func (wxJobCreator) Description() string { return "waterway axis" } |
56 return "waterway axis" | 56 |
57 } | 57 func (wxJobCreator) AutoAccept() bool { return true } |
58 | 58 |
59 func (wxJobCreator) Create(_ JobKind, data string) (Job, error) { | 59 func (wxJobCreator) Create(_ JobKind, data string) (Job, error) { |
60 wx := new(WaterwayAxis) | 60 wx := new(WaterwayAxis) |
61 if err := common.FromJSONString(data, wx); err != nil { | 61 if err := common.FromJSONString(data, wx); err != nil { |
62 return nil, err | 62 return nil, err |