Create a paster template for new apps. It should ask for the tool name, e.g. "Foo". It then should use that (force a camelcase and lowercase format when appropriate) to create:
entry point
app
controller
one model, that extends artifact
a simple template that uses a markdown editor widget, and custom js/css
and everything else a standard minimalistic app needs
Tim's pastebin tool should be a good model for this
Mostly just figuring out the cheetah stuff, which seems to work a little differently when used with paster? Resulting generated tool has not been tested in allura yet.
Definitely needs work in the organization of tests.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I really needed this yesterday when working with another developer. We got it to where it would generate the Tool, and installing the Tool wouldn't break everything, which seems pretty good. The forms don't work/exist, and (until those hooks discussed at PyATL show up) it doesn't have any test data.
Interestingly, we were not generating the skeleton in the Allura dev environment, which made the point for me that at this stage it might not belong in the Allura baseline proper... since one should be able to use it after the mythical pip install allura... this one is pip installable, which is really what I needed.
At the end of the evening, we posted this 80% skeleton generator:
For my sake, I am going to integrate it into our internal Allura upstream (on the branch listed above), but I think a separate project might not be a horrible place for it for the time being.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Started some work here: https://sourceforge.net/u/bollwyvl/allura/ci/9e1e0ea381f6c00160e80ee054bad74b9886f502/
Mostly just figuring out the cheetah stuff, which seems to work a little differently when used with paster? Resulting generated tool has not been tested in allura yet.
Definitely needs work in the organization of tests.
I really needed this yesterday when working with another developer. We got it to where it would generate the Tool, and installing the Tool wouldn't break everything, which seems pretty good. The forms don't work/exist, and (until those hooks discussed at PyATL show up) it doesn't have any test data.
Interestingly, we were not generating the skeleton in the Allura dev environment, which made the point for me that at this stage it might not belong in the Allura baseline proper... since one should be able to use it after the mythical
pip install allura
... this one is pip installable, which is really what I needed.At the end of the evening, we posted this 80% skeleton generator:
https://sourceforge.net/p/skelallura
For my sake, I am going to integrate it into our internal Allura upstream (on the branch listed above), but I think a separate project might not be a horrible place for it for the time being.
Aforementioned upstream merge onto dev.