Re: We need a canonical away to create plone packages with mr.bob
Philip Bauer <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
I did some more work and now we only have one template. The package gets "nestified" after creation if the package name has two dots. I also got rid of the first few questions by using the 'collective.myaddon' from the command "mrbob -O collective.myaddon bob templates:plone_addon" to determine namespaces, name and type of the package. Now you only have to supply name, email and githubname and can press enter for the rest. Some more enhancements: - validation for package-name - example view (mostly stolen from your package) - variables for most stuff involving names and namepaces to make templating easier Philip -- Starzel.de Philip Bauer Adlzreiterstr. 35 80337 München Tel: 089 - 189 29 533 Fax: 089 - 189 29 535 [email protected] www.starzel.de Am 05.12.2014 um 20:20 schrieb Asko Soukka <[email protected]>: > Philip Bauer wrote: >> - The nested template is effectively a complete duplicate of the normal template with some variations and has to be manually kept in sync with it. > > What is a nested template with mr.bob? > > But couldn't we split the template into two parts: > > 1) Two or more main skeletons for different depth of namespace packages, which would only create setup.py and minimal folder structure with __init__.pys. > > 2) Sub-templates for creating features inside the skeletion created in 1). pre-question hooks could figure out the package the context (like the curren package name) and render-hooks could inject new lines to e.g. configure.zcml when required. > > ZopeSkel had something like this? Was there issues with it (besides its dependencies)? > > Regards, > Asko ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Plone-developers mailing list Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-developers
signature.asc
(application/pgp-signature, 496 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUgztoAAoJEOeXgSbn9GtJDaUIAKSpVUj/7/+j2yQtToaplB8y OUcF387J6BcMJm3ydlfrpWItawE/Ptu6POupVFtibSzApiOVxTIZZ55yDrGKGLvd H6SQrCdQTBvRS4jrAIcURKwW/RnEhK78o5nk2PZjVa3vpf7jilY8yMn+ptXtpwGr PU/v5PmqoyljK0TOtMP4uR0yGivVrfjFG3JeEUBzlqv3HhAep+eCe3VtxcSPuyiC mLIOsPL3QS3wtSYRWaEa48RT6V4fU1zbyJa2uAv4d7hn2wKI5s0zILzO3s28zf3r VdFu6KOewsmMnRYvJ287oeyBOSACp3fR5+rk0LBYKSPeLblguu+9/WVVNzerMCc= =qnwT -----END PGP SIGNATURE-----