Misc helper-scripts for creating and expanding Plone-Add-Ons.
Project description
Introduction
============
Yet another command-line Plone-Add-On-Generator, just the way I like it:
No dependencies, no possible conflicts, some Python-methods, that's all.
Installation
=============
pip install adi.devgen
Alternatively add `adi.devgen` as an egg to your buildout, then
the `devgen`-executable should be available in its bin-directory.
Usage
=====
Type the command alone, to get a help-text, what it can do for you:
$ devgen
That'll also lists the available generator-functions, to get a function's help-text, type:
$ devgen [FUNCTION_NAME]
Examples
========
Create boilerplate for an addon, that can do nothing, but be installed in a Plonesite:
$ devgen addProfileSkel your.addon
Create it not in the directory, where you are, but somewhere else:
$ devgen addProfileSkel your.addon /some/where/else
Register another addon as a dependency to your addon:
$ devgen addDep collective.bestaddonever your.addon
Or, first locate into your addon, then you can omit the appended path (defaults to '.'):
$ cd your.addon
$ devgen addDep collective.bestaddonever
Create an installable Plone-Addon, with a stylesheet, a javascript and a template in a skin folder:
$ devgen addSkinSkel your.addon
In contrary to browser-based resources, you won't need to empty the browser's cache on a reload, after changing your stylesheet or javascript.
Create an installable Plone-Addon, with a stylesheet and a javascript in a browser's resource-folder.
$ devgen addBrowserSkel your.addon
Add docs-folder and read defaults for setup.py of a config:
$ devgen addMetaSkel
If a file '~/.buildout/devgen.cfg' is present, values will be read of it and inserted to setup.py. Its format is expected to be like:
author=Arbi Trary
author_email=arbi@tra.ry
url=https://github.com/arbitrary/your.addon
TODO
====
- Regard more than one dotted namespace for addon.
- Split functions into smaller reusable chunks.
- Possibly transfer:
https://github.com/ida/skriptz/blob/master/plone/Dexterity/addField.py
Changelog
=========
0.5 (150921)
------------
- Fix imports, better hlp-msgs, improve installPlone().
0.4 (150920)
------------
- Update README
0.3 (150920)
------------
- Fix changed import-paths.
0.2 (150920)
------------
- Add adi.commons as dependency.
0.1 (150920)
------------
- Initial release
============
Yet another command-line Plone-Add-On-Generator, just the way I like it:
No dependencies, no possible conflicts, some Python-methods, that's all.
Installation
=============
pip install adi.devgen
Alternatively add `adi.devgen` as an egg to your buildout, then
the `devgen`-executable should be available in its bin-directory.
Usage
=====
Type the command alone, to get a help-text, what it can do for you:
$ devgen
That'll also lists the available generator-functions, to get a function's help-text, type:
$ devgen [FUNCTION_NAME]
Examples
========
Create boilerplate for an addon, that can do nothing, but be installed in a Plonesite:
$ devgen addProfileSkel your.addon
Create it not in the directory, where you are, but somewhere else:
$ devgen addProfileSkel your.addon /some/where/else
Register another addon as a dependency to your addon:
$ devgen addDep collective.bestaddonever your.addon
Or, first locate into your addon, then you can omit the appended path (defaults to '.'):
$ cd your.addon
$ devgen addDep collective.bestaddonever
Create an installable Plone-Addon, with a stylesheet, a javascript and a template in a skin folder:
$ devgen addSkinSkel your.addon
In contrary to browser-based resources, you won't need to empty the browser's cache on a reload, after changing your stylesheet or javascript.
Create an installable Plone-Addon, with a stylesheet and a javascript in a browser's resource-folder.
$ devgen addBrowserSkel your.addon
Add docs-folder and read defaults for setup.py of a config:
$ devgen addMetaSkel
If a file '~/.buildout/devgen.cfg' is present, values will be read of it and inserted to setup.py. Its format is expected to be like:
author=Arbi Trary
author_email=arbi@tra.ry
url=https://github.com/arbitrary/your.addon
TODO
====
- Regard more than one dotted namespace for addon.
- Split functions into smaller reusable chunks.
- Possibly transfer:
https://github.com/ida/skriptz/blob/master/plone/Dexterity/addField.py
Changelog
=========
0.5 (150921)
------------
- Fix imports, better hlp-msgs, improve installPlone().
0.4 (150920)
------------
- Update README
0.3 (150920)
------------
- Fix changed import-paths.
0.2 (150920)
------------
- Add adi.commons as dependency.
0.1 (150920)
------------
- Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
adi.devgen-0.5.tar.gz
(23.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adi.devgen-0.5.tar.gz.
File metadata
- Download URL: adi.devgen-0.5.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3de09cc6571a37c6cb6ac14a330cb2b03f07426003df5d81c090044741b09127
|
|
| MD5 |
1af76c93a7343249bf7981101eb2a07d
|
|
| BLAKE2b-256 |
7da0432cfb2d02fbde889b430be153629c925a2bfc82290ad0623edd76c940cd
|
File details
Details for the file adi.devgen-0.5.linux-x86_64.tar.gz.
File metadata
- Download URL: adi.devgen-0.5.linux-x86_64.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24fa9ab098531bb95dcaccb2fa555175b16c9812f9d7c8df4a874c96c8e84837
|
|
| MD5 |
ed00eb2afbfe61cafbfb24f1826d78bb
|
|
| BLAKE2b-256 |
499442deb8054c79f88e552ff24d5e3258cbed66036894aff419b975e646dfef
|