[PATCH 1/3] Start moving code from the controller to the logic
bkabrda at redhat.com
Wed Jan 23 12:52:58 UTC 2013
----- Original Message -----
> There are several advantages in doing that :
> - we can reuse it in the API
> - less coupling to the framework
> - easier unit-testing for the logic
> Is it better this way?
> + def add_build(cls, user, pkgs, copr):
> + db.session.commit()
You probably forget to remove the committing from *Logic, right?
> + def add_coprs(cls, user, name, repos, selected_chroots):
I'd name this in singular form (add_copr).
Otherwise it looks ok. If you agree, I'll commit and fix the tiny issues myself (or if you want, you can redo the patch again).
Bohuslav "Slavek" Kabrda.
More information about the copr-devel