You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@steve.apache.org by "Alan D. Cabrera" <li...@toolazydogs.com> on 2015/03/28 06:52:53 UTC
steve-web
So, I checked in a sketch of how we can organize the steve-web. The beauty of this setup is:
has a place for unit tests
the organization generally follows how the python community organizes projects (plus my own preferences :)
has a place for unit tests
it’s pip installable
has a place for unit tests
it uses tox for clean testing
has a place for unit tests
Did I mention it has a place for unit tests? :) (feel free to smack me)
Last week when we talked about making code base more modular, I mentioned that I thought that it should be broken out into several parts:
steve-core - generic base level utilities and model management - the M and C of MVC
steve-commands - standalone commands for vote management - command line C of MVC
steve-web - the web site that Daniel is working on - the V of MVC
steve-attic - the old perl etc. code base
No one seemed to object so I’ll start the refactoring.
Daniel, you can forge ahead and I’ll try to copy your stuff over as I go. The only change is that the core will be Flask but it seems that much of your logic is in JS so the L&F of the site won’t change, nor the application logic. The Flask API will dispatch back to your code so it should be pretty familiar to you Daniel. I am eager to hear your comments as work progresses!
At some point you, Daniel, need to stop and we’ll bring the new stuff up to date and we can start coding against that.
Regards,
Alan
Re: steve-web
Posted by Daniel Gruno <hu...@apache.org>.
Oh I plan to take a well-earned bit of rest now, so you can feel free to
start porting to flask etc ;)
I might fiddle with the JS and HTML, but I think on the whole, I've
added the features I was dying to add :)
There are still some odd ends left, but they require some more brain
power to process.
With regards,
Daniel.
On 2015-03-28 06:52, Alan D. Cabrera wrote:
> So, I checked in a sketch of how we can organize the steve-web. The beauty of this setup is:
> has a place for unit tests
> the organization generally follows how the python community organizes projects (plus my own preferences :)
> has a place for unit tests
> it’s pip installable
> has a place for unit tests
> it uses tox for clean testing
> has a place for unit tests
> Did I mention it has a place for unit tests? :) (feel free to smack me)
>
> Last week when we talked about making code base more modular, I mentioned that I thought that it should be broken out into several parts:
>
> steve-core - generic base level utilities and model management - the M and C of MVC
> steve-commands - standalone commands for vote management - command line C of MVC
> steve-web - the web site that Daniel is working on - the V of MVC
> steve-attic - the old perl etc. code base
>
> No one seemed to object so I’ll start the refactoring.
>
> Daniel, you can forge ahead and I’ll try to copy your stuff over as I go. The only change is that the core will be Flask but it seems that much of your logic is in JS so the L&F of the site won’t change, nor the application logic. The Flask API will dispatch back to your code so it should be pretty familiar to you Daniel. I am eager to hear your comments as work progresses!
>
> At some point you, Daniel, need to stop and we’ll bring the new stuff up to date and we can start coding against that.
>
>
> Regards,
> Alan
>
>