Feature #700

Backend generator

Added by Romain Bignon about 6 years ago. Updated over 4 years ago.

Status:Resolved Start:2011-09-07
Priority:Normal Due date:
Assigned to:Laurent Bachelier % Done:

100%

Category:Misc Spent time: -
Target version:0.f
Module: Branch:laurentb/master

Description

Create a tool like your tools/gen_comic_reader.sh which generates a complexe backend files.

It would take information like name and capabilities to implement, and it may generate the following files, with pre-filled class constants and methods to overload created:
  • init.py (import backend and browser classes)
  • backend.py (backend class, meta-data filled, inherits wanted capabilities)
  • browser.py (browser class)
  • test.py (inherit BackendTest and raise NotImplemented() to incite coder to create tests)

History

Updated by Romain Bignon about 6 years ago

  • Tracker changed from Bug to Feature

Updated by Romain Bignon almost 6 years ago

  • Target version changed from 0.9 to 0.a

Updated by Romain Bignon over 5 years ago

  • Target version changed from 0.a to 0.b

Updated by Laurent Bachelier over 5 years ago

  • Target version changed from 0.b to 0.c

Updated by Romain Bignon over 5 years ago

  • Target version changed from 0.c to 0.d

Updated by Romain Bignon almost 5 years ago

  • Target version changed from 0.d to 0.e

Updated by Florent Fourcot over 4 years ago

  • Target version changed from 0.e to 0.f

Updated by Laurent Bachelier over 4 years ago

  • Status changed from Assigned to In progress
  • Assigned to changed from aqzsedrtyuiop lpkjhgfcdxs to Laurent Bachelier

I started working on it. It should re-use the gen_comic_reader.sh templates and add possibilities for more outputs.

This should be easy thanks to the power of argparse and mako.

Updated by Laurent Bachelier over 4 years ago

  • % Done changed from 0 to 70
  • Branch set to laurentb/master

This is pretty basic for now, but it's already doing more than gen_comic_reader.sh while being easier to maintain.

Available in my master (along with other commits) and my boilerplate branch; it's good to merge.

Now, I should write some documentation…

Updated by Laurent Bachelier over 4 years ago

  • Status changed from In progress to Resolved
  • % Done changed from 70 to 100

Also available in: Atom PDF