summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* one more update for 0.6.1 change list0.6.1Doug Hellmann2014-05-021-0/+1
| | | | Change-Id: Iabb46b3996ed09f448a5d362347728591d2e664c
* Fix error: variable 'kw' referenced before assignmentarati.mahimane2014-04-292-0/+21
| | | | | Change-Id: Ife95d74bf645687dc4595b16434c88ee874c2f95 Closes-bug: #1311742
* Fix pep8 errorsJulien Danjou2014-04-255-19/+3
| | | | | | The recent pep8 upgrade is triggering new errors. Change-Id: I73b1de3afed0a6979e0542e4c90cdb0bdb8b1122
* Update change list for 0.6.1 releaseDoug Hellmann2014-03-131-0/+23
| | | | Change-Id: I1150466fbf20e39179e342106f3e0190a0293a8c
* Merge "Fix default handling for zero values"Jenkins2014-03-132-1/+30
|\
| * Fix default handling for zero valuesDoug Hellmann2014-03-112-1/+30
| | | | | | | | | | | | | | | | | | When int and float arguments to controllers default to zero and no value is provided in the request, the controller is being passed None instead of 0. Closes-bug: #1291084 Change-Id: I35c034e4a793a44d2ddd376046e7dbb841ca13b6
* | Merge "pecan: cleanup, use global vars and staticmethod"Jenkins2014-03-131-18/+23
|\ \ | |/ |/|
| * pecan: cleanup, use global vars and staticmethodJulien Danjou2014-01-101-18/+23
| | | | | | | | Change-Id: If5a7c1b4b71380053ed650ddc8e9928422869807
* | Fixing spelling mistakesChad Lung2014-03-052-5/+5
| | | | | | | | Change-Id: Iaff4fc336a2b1a1c7998717baa65912dba528b66
* | A proper check of UuidTypeIlya Kharin2014-02-262-3/+5
| | | | | | | | | | | | The validation method of the UuidType should return a valid value. Change-Id: I0964f3b2a046df48cdf200d7896c60f331789eac
* | args_from_args() to work with an instance of UserTypeLucas Alvares Gomes2014-01-032-2/+29
|/ | | | | | | | | | | When the args_from_args() function fails to convert a value to a certain type it tries to get the name of that type by using the __name__ attribute of that type, UserType object instances doesn't have the __name__ attribute so the function fails when it tries to access it, this patch makes WSME to check if it's an UserType instance before getting it's name. Change-Id: If78ce0e642997421c97559cc28604421f5c03922 Closes-Bug: #1265590
* Add 'readonly' parameter to wsattr0.6Yuriy Zveryanskyy2013-12-124-4/+33
| | | | | | | | 'readonly' parameter added to wsattr. If True value cannot be set from input data. This is intended for attributes which should be only exposed to user without possibility of change. Change-Id: I767a29c5113891f89676c5e78adf018d5e0e4f26
* Fix typos in documents and commentsChang Bo Guo2013-12-104-6/+6
| | | | | | | | | Fix typos detected by toolkit misspellings. * pip install misspellings * git ls-files | grep -v locale | misspellings -f - Change-Id: I59de119feb6f973602fbfd98a75a1d529bc30bde
* Merge "Support dynamic types"Jenkins2013-11-212-0/+162
|\
| * Support dynamic typesDoug Hellmann2013-11-212-0/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the OpenStack projects need to be able to add data to the input and output types used by the API, in order to support extensions configured when the service is deployed. This change adds a reregister() method to the Registry that can be used to update the registration of an existing class, and provides a DynamicBase class with a convenience method for adding new extension fields. bp support-dynamic-types Change-Id: Idf892de2129fddd7ddbb43847ebe0f14464a6e97
* | Support building wheels (PEP-427)Sascha Peilicke2013-11-191-0/+3
|/ | | | | | | With that, building and uploading wheels to PyPI is only one "python setup.py bdist_wheel" away. Change-Id: Ia7583925080fbe15d8274ff4badcd089b6512004
* Fix a typo in the types documentationAngus Salkeld2013-11-181-1/+1
| | | | Change-Id: Ib3a81c1c1145a31431cacde1cbabdf4a08300068
* Add IntegerType and some classes for validationKen'ichi Ohmichi2013-11-023-0/+202
| | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the following classes for API parameter validation: IntegerType * Value range validation (minimum, maximum) StringType * String length validation (min_length, max_length) * Allowed string (pattern): e.g. should contain [a-zA-Z0-9_.- ] only. IPv4AddressType * String format validation for IPv4 IPv6AddressType * String format validation for IPv6 UuidType * String format validation for UUID Partially implements blueprint nova-api-validation-fw Closes-Bug: 1245795 Change-Id: I5aead6c51b74464681e4ac41fa2a9c66c09adab2
* Merge "Drop description from 403 flask test case"Jenkins2013-10-311-1/+1
|\
| * Drop description from 403 flask test caseJames Page2013-10-201-1/+1
| | | | | | | | | | | | | | | | | | Older versions of werkzeug pass the description parameter back in the description. As the description is never actually validated in the test case, dropping it seems OK. Change-Id: Icd547113d8fe918f35a97c4a5de220b3aaace5cd Closes-Bug: 1242486
* | Merge "Fix SyntaxWarning under Python 3"Jenkins2013-10-311-5/+5
|\ \
| * | Fix SyntaxWarning under Python 3Julien Danjou2013-10-161-5/+5
| |/ | | | | | | Change-Id: I60cf7bc796b5cb4927cd92477e3eb26379f06316
* | Merge "Remove the duplicated error message from Enum"Jenkins2013-10-313-4/+4
|\ \
| * | Remove the duplicated error message from EnumKen'ichi Ohmichi2013-10-313-4/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If Enum validation detects invalid parameter, wsme returns a respose like the following message: {"debuginfo": null, "faultcode": "Client", "faultstring": "Invalid input for field/attribute param_enum. Value: 'hourse'. Invalid value (should be one of: dog, cat)" } In faultstring, the first message shows a invalid request. So it is not necessary to contain it in the third message. Change-Id: Ie52660fcf704551ce082f7dca2fadedadb12562a
* | Use assertRaises() for negative testsKen'ichi Ohmichi2013-10-311-40/+12
|/ | | | | | This patch makes negative tests use assertRaises() for cleaning up. Change-Id: Ief64c0737f7aabc414744861e7c750ec2bb1e466
* Merge "Add changes entry for 0.5b6"0.5b6Jenkins2013-10-161-0/+20
|\
| * Add changes entry for 0.5b6Julien Danjou2013-10-161-0/+20
| | | | | | | | Change-Id: I1324420192e056415d59be3f4e4ad9e9c55052a1
* | json: convert value to string before encodingJulien Danjou2013-10-162-3/+28
|/ | | | | | | | If the JSON sent is not really a string, it's safer to try to convert it to a string before calling the encode method. This way we can accept integer as potentially valid strings. Change-Id: Iad0b48f597a8c062cdb05c9bbb5342df15583edf
* Merge "Run Flask tests by default"Jenkins2013-10-152-95/+73
|\
| * Run Flask tests by defaultJulien Danjou2013-10-112-95/+73
| | | | | | | | Change-Id: I122e642b43ed3498535663d3ed7a26cf5790ecfd
* | Merge "Validate body when using Pecan"Jenkins2013-10-144-2/+19
|\ \
| * | Validate body when using PecanJulien Danjou2013-10-094-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | This makes sure that when the body is decoded we run the validation process on it. Fixes-Bug: #1220678 Change-Id: I765a6ce8c8097ef0e0a734804242e9fcee4ffbcf
* | | Merge "Return a ClientSideError if unable to convert data"Jenkins2013-10-143-2/+25
|\ \ \ | |_|/ |/| |
| * | Return a ClientSideError if unable to convert dataJulien Danjou2013-10-093-2/+25
| |/ | | | | | | | | | | This makes thing works at least for Pecan. Change-Id: I7b02813258d9b8c2eea13e4215a3d711ec2e56ed
* | Merge "Enable and fix Sphinx tests"Jenkins2013-10-113-521/+305
|\ \
| * | Enable and fix Sphinx testsJulien Danjou2013-10-073-521/+305
| |/ | | | | | | | | | | | | This remove the Sphinx environment and makes sure we run its test for all Python version. This therefore fixes the test for Python 3.3. Change-Id: Iba431e837d2b23761905155ff65ae909774ce0b2
* | Merge "Remove MANIFEST.in"Jenkins2013-10-101-7/+0
|\ \
| * | Remove MANIFEST.inJulien Danjou2013-10-091-7/+0
| | | | | | | | | | | | | | | | | | | | | We don't need this anymore as pbr use `git ls-files' when available to build the list of files to include. Change-Id: I9113d7c249002bc4f6b0a15a871aee6088ddac72
* | | Add custom error code to ClientSideErrorYuriy Zveryanskyy2013-10-0914-58/+83
|/ / | | | | | | | | | | | | | | | | | | Added custom error status code for ClientSideError exception instead of hardcoded value 400. Fixed case when user exception with client error code formatted as server error. Pecan extension fixed. Change-Id: I2663db0aa88538b722eb2783d130585b0fc2335b
* | doc: remove useless validate importJulien Danjou2013-10-081-1/+1
|/ | | | Change-Id: Ic9cf28809867d73c56689fd6b94dc307c7b283d3
* Merge "pecantest: remove useless config.py"Jenkins2013-10-071-45/+0
|\
| * pecantest: remove useless config.pyJulien Danjou2013-09-261-45/+0
| | | | | | | | Change-Id: I3370715d12209528fe63d5bd9bb7b7e78c935351
* | Handle [] {} for body in rest protocolsMehdi Abaakouk2013-10-046-14/+63
| | | | | | | | | | | | | | | | | | This change allow to use [] or {} for the definition of the body in rest protocols. Fixes bug #1233219 Change-Id: Ib96f0487dd7d78bd657f6d4b3facbd8b611f8702
* | types: fix error return when None is in EnumJulien Danjou2013-10-025-16/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | Whe None is set as a valid value in an Enum, the error string that is meant to be returned is built with a join() call on valid values. However, that doesn't work as None isn't not a string. Calling map(str, values) fixes this problem. Also, if the value is invalid, the error code returned is 500 as if it was the server fault. 400 should be returned instead, so rather than raising a ValueError we raise an InvalidInput error. Change-Id: I92695594676da2a247cef4e1e8fe277aa0972dea
* | Add a test environment against pecan's development (master) branch.Ryan Petrello2013-10-022-2/+66
|/ | | | Change-Id: Id4c6a61be6a8ee9fa7d8ec1551c12ca448aa458f
* Include Pecan tests in default Python environmentJulien Danjou2013-09-267-185/+241
| | | | | | | | | | | - Makes sure we always run Pecan test and that there's no regression. There's no real need to split them out as they are not invasive. Also that reduces the number of environment a bit. - This also fixes Pecan tests on python2.6 - This also fixes Pecan tests on python3.3 - This also enables Pecan tests on python3.2 Change-Id: I57070b0bd785fb3d445f432973f15825abccbdd5
* Merge "Add a test case for wsattr default"Jenkins2013-09-231-0/+17
|\
| * Add a test case for wsattr defaultJulien Danjou2013-09-231-0/+17
| | | | | | | | | | Change-Id: Icb3a9456a52c74af004c749ba247df1ddaf73d19 Fixes-Bug: #1227039
* | Merge "Minor code cleanups"Jenkins2013-09-235-21/+18
|\ \ | |/ |/|
| * Minor code cleanupsJulien Danjou2013-09-185-21/+18
| | | | | | | | Change-Id: I338656e8f131b36aae342af94f1c2cedad14ae2b