summaryrefslogtreecommitdiff
path: root/pycadf/reporterstep.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge "clean up license headers"Jenkins2014-08-151-9/+6
|\
| * clean up license headersDolph Mathews2014-07-291-9/+6
| | | | | | | | | | | | | | | | | | | | This removes extraneous whitespace, applies a consistent licensing header to all files, removes "all rights reserved" lines attributed to the OpenStack Foundation, removes authorship lines for Matt Rutkowski (which the git commit history much more accurately conveys) and follows all licenses with a blank line before the code/docstr begins. Change-Id: Idcfefd923e5ddb574087265c998dd50ebfe70a79
* | Enable PEP8 checks E128, E251 and E265Christian Berendt2014-08-011-2/+2
|/ | | | | | | | * E128 continuation line under-indented for visual indent * E251 unexpected spaces around keyword / parameter equals * E265 block comment should start with '# ' Change-Id: Ie4b7d8a392c8e8bed58c171b5fc1b9db308036bc
* Expand © and remove unnecessary encoding linesMartin Geisler2014-06-151-1/+0
| | | | | | | | | | | | | | | | | | The word "Copyright" alone is sufficient to claim copyright, the © symbol need not be present.[1] This allows us to expand the "©" symbol into "(c)" to avoid introducing non-ASCII characters. As per PEP 263, a Python file with non-ASCII characters must have a line with "coding: <some-encoding>". Python files containing only 7-bit ASCII characters need no such line.[2] This commit expands the non-ASCII Unicode copyright symbols and removes the now unnecessary encoding lines. [1]: http://www.copyright.gov/circs/circ03.pdf [2]: http://legacy.python.org/dev/peps/pep-0263/ Change-Id: Ibbb282224bccbea383947b4e09a619f94d5c24b1
* add docstrings to functionsGordon Chung2014-03-101-0/+9
| | | | | | | add docstrings to functions Change-Id: I112e297d20de5026784298e93b6ff05733639a1c Implements: blueprint document-pycadf
* improve model validationGordon Chung2013-10-251-3/+3
| | | | | | | | | | | - add isset to check "real" attribute and not descriptor - verify only id is set in shortform - verify either resource or resourceId value is set, not both. blueprint improve-validation related-bug: #1242830 Change-Id: Ie9e3f26c5d30cd36e6013a1f0b77c8fe466cb3f7
* observer and reporter should be valid ResourceGordon Chung2013-10-171-3/+1
| | | | | | | | | - fix observer and reporter attributes to be valid Resource type - add check that Resource id shortform for initiator and target do not reference themselves Fixes: Bug # 1240067 Change-Id: Iab5b6c129d512039073cc8c2ab7b75ac7c819624
* update cadf spec to support new data model0.1.5Gordon Chung2013-08-201-1/+1
| | | | | | | | | | | - add Credential type and move token into it - add Host type and move client_addr, agent into it - add Endpoint type and move adminUrl, privateUrl into it - add credential, host, addresses as optional attr of Resource - add observer attr to event Change-Id: I663eaf0b2f239300e035f084b8574e615c40a182 Fixes: Bug #1214097
* validate attributes against basestring0.1.10.1Gordon Chung2013-08-071-1/+1
| | | | | | | | | - need to update attribute validation to test against basestring instead of str - drop use of openstack logger Change-Id: I2167cf8e468c0e932c476238120d768e5d4d443f Fixes: bug1209387
* DMTF CADF formatGordon Chung2013-08-061-0/+76
Adding support for the DMTF Cloud Audit (CADF) format which will be used along with a generic notification filter to audit 'core' component APIs. initial code drop blueprint support-standard-audit-formats Change-Id: I3b27ceae8faa6427e4be1290c1406102e790e2e3