Christophe de Vienne
825686b1e6
Ignore all the tests reports
...
--HG--
extra : rebase_source : 928fc36f69f5b12eebf02510e484da187fe88384
2013-01-16 21:29:53 +01:00
Christophe de Vienne
366bec59ae
Merged in cmcdaniel/wsme/empty_strings3 (pull request #11 : restxml empty string fixes)
2013-01-15 14:24:16 +01:00
Christophe de Vienne
6b51ec0dd0
Fix Python 3 compatibility
...
--HG--
branch : empty_strings3
2013-01-15 12:07:26 +01:00
Craig McDaniel
6ffa578b1b
restxml empty string fixes
...
--HG--
branch : empty_strings3
2013-01-09 14:41:58 -05:00
Christophe de Vienne
24675e4a8e
Merged in cmcdaniel/wsme/json_strictness (pull request #8 : rest protocol detection: test Accept header first; use startswith for Content-Type match)
2013-01-03 13:33:16 +01:00
Craig McDaniel
5380134951
rest protocol detection: test Accept header first; use startswith for Content-Type match
...
--HG--
branch : json_strictness
2013-01-02 16:57:45 -05:00
Christophe de Vienne
d5ff7c0893
Merged in cmcdaniel/wsme/bool_fromsoap (pull request #7 : Handle bool from xml properly; add setbool and getbool unit tests.)
2013-01-01 11:24:32 +01:00
Craig McDaniel
62b0035ea7
Handle bool from xml properly; add setbool and getbool unit tests.
...
--HG--
branch : bool_fromsoap
2012-12-31 11:28:02 -05:00
Christophe de Vienne
76bfc4cc70
Add a new parameter 'ignore_extra_args' to the @signature decorator (and its frontends @wsexpose)
2012-12-19 15:11:52 +01:00
Christophe de Vienne
73afdb0a87
Fix the TG 1.x adapters, the resquest.params are now needed by the get_args function.
2012-12-19 15:00:57 +01:00
Christophe de Vienne
e68c9e99b6
Now supports non-indexed arrays of objects as GET parameters
2012-12-18 10:26:17 +01:00
Christophe de Vienne
9aa7055f55
Fix array as input GET parameters in the pecan adapter
2012-12-18 10:09:09 +01:00
Christophe de Vienne
2758202d77
Update the changelog.
2012-12-11 11:42:35 +01:00
Christophe de Vienne
be32f92fbb
Mention the additional protocols in the intro
2012-12-11 11:24:21 +01:00
Christophe de Vienne
7813805913
Better mentionning of the framework independance.
2012-12-11 09:56:58 +01:00
Christophe de Vienne
f9b76d3a5d
Merged in dhellmann/wsme-sphinx (pull request #5 )
2012-12-11 09:25:50 +01:00
Angus Salkeld
ab68986efc
Move the check for an empty body up.
...
So if you have a client that always sets the Accept json
but you are doing a GET and the body is empty, then we get
an exception.
2012-12-11 12:47:35 +11:00
Doug Hellmann
c1440fff51
Add samples_slot option to TypeDocumenter
...
Allow the output of the TypeDocumenter to come in different
orders, depending on the sample-slot option. Default to
showing samples after the rendered docstring, but also
allow it to come before the docstring by setting the
option to 'before-docstring'. Use 'none' to disable the
sample output for a type entirely.
2012-12-07 17:23:29 -05:00
Doug Hellmann
c5c7f6df37
Fixes for sphinxext
...
Restore check that restricts the use of FunctionDocumenter
to nodes under a ServiceDocumenter to prevent it from being
used for classes not related to the web service.
Replace direct uses of __name__ with datatypename().
Fix a problem that showed up when get_doc() does not find
any docstrings for a function.
Use for:else instead of checking a sentinal variable after
a search loop.
2012-12-07 16:15:49 -05:00
Doug Hellmann
e1f82b01ce
Add sample() method to ArrayType and DictType
...
Update ArrayType and DictType so they have sample()
methods for the sphinxext code to use when documenting
nested types.
2012-12-07 16:12:48 -05:00
Doug Hellmann
23a276058d
Roll back previous change to the root XML tag name for sample data.
2012-12-07 16:09:14 -05:00
Doug Hellmann
bd36dc2f35
Copy properties to decorator
...
Use functools.wraps() to copy the docstring and name
from the decorated function to the closure so
the autodoc code gets the right values.
2012-12-07 15:48:49 -05:00
Doug Hellmann
2277370fca
Fix error handling tests for pecan
...
The debug middleware always returns a 200 status, so
disable it.
The actual response status is the full string, not just
the number, so look for that.
2012-12-07 12:01:20 -05:00
Christophe de Vienne
38f5dd2bfd
Add a test for client-side errors
2012-12-06 16:52:21 +01:00
Christophe de Vienne
4edbd4bb8f
Allow adapters to use the format_exception function, and use it in the Pecan adapter. /\!\ the response status is not properly changed by the decorator yet.
2012-12-06 16:51:51 +01:00
Christophe de Vienne
bd95dafa7b
Allow the method autodocumenter (.. autofunction) to work without a Service parent (ie without a WSRoot). Added the path & method parameters that NOT considered for now.
2012-12-06 16:18:01 +01:00
Christophe de Vienne
dcd2d9233f
PEP8
2012-12-06 15:19:19 +01:00
Doug Hellmann
6af9b92878
Update datetypename() to work with DictType and ArrayType instances.
...
--HG--
extra : source : cef0a57e57255c4437922d3c2b0a81c84ad29b07
2012-12-05 19:22:14 -05:00
Christophe de Vienne
dbd435a2fe
Merged in dhellmann/wsme-validate (pull request #2 )
2012-12-05 22:33:36 +01:00
Doug Hellmann
322dca63c5
show the docstring for a type before the formatted sample values
...
--HG--
extra : source : e5fa8d5e8dc27b91fca92e8b3a109981f2ed37b0
2012-12-05 13:06:58 -05:00
Doug Hellmann
4fb26f6f2d
use tag name 'result' for sample data to match data returned by services
...
--HG--
extra : source : d6ac5de7ab98151eae6e99462c7d15141515ecf0
2012-12-05 13:06:25 -05:00
Doug Hellmann
aedf967cf5
tighten up validate_value logic and allow string promotion to integers
2012-12-05 10:51:50 -05:00
Doug Hellmann
15a239350e
ignore all coverage output files
2012-12-05 10:51:26 -05:00
Doug Hellmann
d940f3f3ae
restrict the types that can be promoted to float
2012-12-05 10:32:24 -05:00
Doug Hellmann
ffaaa28b37
ignore emacs temporary files
2012-12-05 10:28:08 -05:00
Christophe de Vienne
ac7b9727db
Fix samples for functions parameters and return types
2012-12-02 23:24:50 +01:00
Christophe de Vienne
0046730542
Fix xml & json samples by autotype
2012-12-02 22:39:45 +01:00
Christophe de Vienne
67bf6c3dc4
resolve types in pecan.wsexpose. It is a temporary solution.
...
--HG--
extra : rebase_source : a6835042f14fb016722323496ba8b826a2a8aa9d
2012-11-29 22:24:39 +01:00
Christophe de Vienne
cbb5caf4bf
Merged in dhellmann/wsme-validate (pull request #1 )
2012-11-29 22:18:11 +01:00
Christophe de Vienne
7def85c238
Fix the encode_result call
2012-11-29 21:58:42 +01:00
Doug Hellmann
5c496a3078
allow type promotion to float
2012-11-29 15:12:40 -05:00
Christophe de Vienne
33d852b2e4
Use the new encode_result functions of the rest encoding modules
2012-11-29 00:13:51 +01:00
Christophe de Vienne
cda8563e5a
Add unittests for returning array and dict of objects as attributes.
...
--HG--
extra : rebase_source : 0a126ca6ff81fa858adfea2a27c469c8faf045b6
2012-11-28 22:40:53 +01:00
Christophe de Vienne
71b667a5e1
Fix the __eq__ operator for ArrayType
...
--HG--
extra : rebase_source : d7ad32012a9b93aa898b5c673e46cdf0047211e8
2012-11-28 22:21:39 +01:00
Christophe de Vienne
440a3b47ea
Remove useless imports
...
--HG--
extra : rebase_source : c781c864c9e33de3b4c811cf317e44eb0021554f
2012-11-28 21:02:58 +01:00
Christophe de Vienne
fda0ddd830
Adapter for turbogears 1.1
2012-11-28 22:35:17 +01:00
Christophe de Vienne
374e11be1c
Adding a tg 2.1 test case (not enabled for now)
2012-11-26 16:38:50 +01:00
Christophe de Vienne
d3f1ba4884
Reorganise the tg1x adapters, and make the tg 1.5 adapter able to handle multiprotocol on 'native' rest
2012-11-26 13:55:27 +01:00
Christophe de Vienne
39cc2ffc8f
The tg1 adapter can now expose rest functions outside the WSRoot _and_ enable other other protocols. Soap is tested.
2012-11-26 01:27:37 +01:00
Christophe de Vienne
ade5325e13
Change the scan_api interface. It now yield the original function and static args (typically the 'self' attribute). Thanks to that the lookup_function method of WSRoot can access functions outside the WSRoot.
2012-11-26 01:25:51 +01:00