summaryrefslogtreecommitdiff
path: root/pycadf/endpoint.py
Commit message (Collapse)AuthorAgeFilesLines
* clean up license headersDolph Mathews2014-07-291-7/+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
* Expand © and remove unnecessary encoding linesMartin Geisler2014-06-151-2/+1
| | | | | | | | | | | | | | | | | | 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/+8
| | | | | | | add docstrings to functions Change-Id: I112e297d20de5026784298e93b6ff05733639a1c Implements: blueprint document-pycadf
* Python 3: replace 'basestring' by 'six.string_types'Cyril Roelandt2014-01-061-3/+5
| | | | | | | 'basestring' will only work in Python 2. Using 'six.string_types' instead makes the code compatible with both Python 2 and 3. Change-Id: I572506ce6d0cc7570dc264711d19619746949d49
* improve model validationGordon Chung2013-10-251-1/+1
| | | | | | | | | | | - 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
* update cadf spec to support new data model0.1.5Gordon Chung2013-08-201-0/+52
- 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