pimgen: Switch to new Mako templates
A substantial structural update to pimgen.
The existing template and supporting code is difficult
to enhance. Given that the code being generated by
pimgen is primarily a large map, with map elements being
initialized by simple types, initializers lists or the result
of method calls - structure pimgen types in a way that track
these givens.
yaml: Simplify the yaml structures.
MethodCall: become an argument.
Mako: Simplify main template.
Use new convenience types.
Use new decorator types.
Remove unused function throughout.
Change-Id: I1c3c16776ef8d5d7e005142999817e0371f9ce89
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/example/events.d/match1.yaml b/example/events.d/match1.yaml
index 19d501a..d419c74 100644
--- a/example/events.d/match1.yaml
+++ b/example/events.d/match1.yaml
@@ -15,20 +15,18 @@
member: PropertiesChanged
filters:
- name: propertyChangedTo
- args:
- interface: xyz.openbmc_project.Example.Iface2
- property: ExampleProperty2
- value:
- type: string
- value: yyyxxx
+ interface: xyz.openbmc_project.Example.Iface2
+ property: ExampleProperty2
+ value:
+ type: string
+ value: yyyxxx
actions:
- name: setProperty
- args:
- interface: xyz.openbmc_project.Example.Iface1
- property: ExampleProperty1
- path: /changeme
- value:
- type: string
- value: changed
+ interface: xyz.openbmc_project.Example.Iface1
+ property: ExampleProperty1
+ path: /changeme
+ value:
+ type: string
+ value: changed
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
diff --git a/example/events.d/match2.yaml b/example/events.d/match2.yaml
index 84b28f1..5fe2388 100644
--- a/example/events.d/match2.yaml
+++ b/example/events.d/match2.yaml
@@ -15,19 +15,16 @@
member: PropertiesChanged
filters:
- name: propertyChangedTo
- args:
- interface: xyz.openbmc_project.Example.Iface2
- property: ExampleProperty2
- value:
- type: string
- value: xxxyyy
+ interface: xyz.openbmc_project.Example.Iface2
+ property: ExampleProperty2
+ value:
+ type: string
+ value: xxxyyy
actions:
- name: destroyObject
- args:
- path: /deleteme1
+ path: /deleteme1
- name: destroyObject
- args:
- path: /deleteme2
+ path: /deleteme2
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4