ZopeSkel – Local Commands
Neben den Vorlagen für Projekte liefert ZopeSkel auch Vorlagen, die nur in bestimmten Kontexten zur Verfügung stehen, sog. local commands. Mit diesen können Sie bestehende ZopeSkel-Projekte erweitern.
Anmerkung: Local commands können aktuell nur mit dem paster-Skript aufgerufen werden.
Verwendung
Wenn Sie z.B. ein Archetypes-Paket erstellt haben mit:
$ cd src $ ../bin/zopeskel archetype vs.registration
dann können Sie als nächstes in dieses Paket wechseln und dort einen Artikeltyp erstellen:
$ cd vs.registration $ ../../bin/paster addcontent contenttype Registrant
Einen Überblick über alle im Kontext verfügbaren local commands erhalten Sie mit:
$ paster addcontent --list Available templates: atschema: A handy AT schema builder contenttype: A content type skeleton form: A form skeleton formfield: Schema field for a form i18nlocale: An i18n locale directory structure portlet: A Plone 3 portlet view: A browser view skeleton zcmlmeta: A ZCML meta directive skeleton
Weitere local commands sind für das plone_pas-Projekt verfügbar. Eine Übersicht über alle verfügbaren local commands erhält man mit:
$ paster addcontent -a
N anonymous_user_factory_plugin: A Plone PAS AnonymousUserFactory Plugin
atschema: A handy AT schema builder
N authentication_plugin: A Plone PAS Authentication Plugin
N challenge_plugin: A Plone PAS Challenge Plugin
contenttype: A content type skeleton
N credentials_reset_plugin: A Plone PAS CredentialsReset Plugin
N extraction_plugin: A Plone PAS Extraction Plugin
form: A form skeleton
formfield: Schema field for a form
N group_enumeration_plugin: A Plone PAS GroupEnumeration Plugin
N groups_plugin: A Plone PAS Groups Plugin
i18nlocale: An i18n locale directory structure
portlet: A Plone 3 portlet
N properties_plugin: A Plone PAS Properties Plugin
N role_assigner_plugin: A Plone PAS RoleAssigner Plugin
N role_enumeration_plugin: A Plone PAS RoleEnumeration Plugin
N roles_plugin: A Plone PAS Roles Plugin
N update_plugin: A Plone PAS Update Plugin
N user_adder_plugin: A Plone PAS UserAdder Plugin
N user_enumeration_plugin: A Plone PAS UserEnumeration Plugin
N user_factory_plugin: A Plone PAS UserFactory Plugin
N validation_plugin: A Plone PAS Validation Plugin
view: A browser view skeleton
zcmlmeta: A ZCML meta directive skeleton