Commit Graph

  • 6af9b92878 Update datetypename() to work with DictType and ArrayType instances. Doug Hellmann 2012-12-05 19:22:14 -05:00
  • 322dca63c5 show the docstring for a type before the formatted sample values Doug Hellmann 2012-12-05 13:06:58 -05:00
  • 4fb26f6f2d use tag name 'result' for sample data to match data returned by services Doug Hellmann 2012-12-05 13:06:25 -05:00
  • 38f5dd2bfd Add a test for client-side errors Christophe de Vienne 2012-12-06 16:52:21 +01:00
  • 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. Christophe de Vienne 2012-12-06 16:51:51 +01:00
  • 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. Christophe de Vienne 2012-12-06 16:18:01 +01:00
  • dcd2d9233f PEP8 Christophe de Vienne 2012-12-06 15:19:19 +01:00
  • dbd435a2fe Merged in dhellmann/wsme-validate (pull request #2) Christophe de Vienne 2012-12-05 22:33:36 +01:00
  • aedf967cf5 tighten up validate_value logic and allow string promotion to integers Doug Hellmann 2012-12-05 10:51:50 -05:00
  • 15a239350e ignore all coverage output files Doug Hellmann 2012-12-05 10:51:26 -05:00
  • d940f3f3ae restrict the types that can be promoted to float Doug Hellmann 2012-12-05 10:32:24 -05:00
  • ffaaa28b37 ignore emacs temporary files Doug Hellmann 2012-12-05 10:28:08 -05:00
  • ac7b9727db Fix samples for functions parameters and return types Christophe de Vienne 2012-12-02 23:24:50 +01:00
  • 0046730542 Fix xml & json samples by autotype Christophe de Vienne 2012-12-02 22:39:45 +01:00
  • 143bbb189b resolve types in pecan.wsexpose. It is a temporary solution. Christophe de Vienne 2012-11-29 22:24:39 +01:00
  • 67bf6c3dc4 resolve types in pecan.wsexpose. It is a temporary solution. Christophe de Vienne 2012-11-29 22:24:39 +01:00
  • cbb5caf4bf Merged in dhellmann/wsme-validate (pull request #1) Christophe de Vienne 2012-11-29 22:18:11 +01:00
  • 7def85c238 Fix the encode_result call Christophe de Vienne 2012-11-29 21:58:42 +01:00
  • 5c496a3078 allow type promotion to float Doug Hellmann 2012-11-29 15:12:40 -05:00
  • 33d852b2e4 Use the new encode_result functions of the rest encoding modules Christophe de Vienne 2012-11-29 00:13:51 +01:00
  • e2892482ca Add unittests for returning array and dict of objects as attributes. Christophe de Vienne 2012-11-28 22:40:53 +01:00
  • cda8563e5a Add unittests for returning array and dict of objects as attributes. Christophe de Vienne 2012-11-28 22:40:53 +01:00
  • a8be9c213c Fix the __eq__ operator for ArrayType Christophe de Vienne 2012-11-28 22:21:39 +01:00
  • 71b667a5e1 Fix the __eq__ operator for ArrayType Christophe de Vienne 2012-11-28 22:21:39 +01:00
  • cf0b4c4ea3 Remove useless imports Christophe de Vienne 2012-11-28 21:02:58 +01:00
  • 440a3b47ea Remove useless imports Christophe de Vienne 2012-11-28 21:02:58 +01:00
  • fda0ddd830 Adapter for turbogears 1.1 Christophe de Vienne 2012-11-28 22:35:17 +01:00
  • 374e11be1c Adding a tg 2.1 test case (not enabled for now) Christophe de Vienne 2012-11-26 16:38:50 +01:00
  • d3f1ba4884 Reorganise the tg1x adapters, and make the tg 1.5 adapter able to handle multiprotocol on 'native' rest Christophe de Vienne 2012-11-26 13:55:27 +01:00
  • 39cc2ffc8f The tg1 adapter can now expose rest functions outside the WSRoot _and_ enable other other protocols. Soap is tested. Christophe de Vienne 2012-11-26 01:27:37 +01:00
  • 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. Christophe de Vienne 2012-11-26 01:25:51 +01:00
  • 15417d2ac0 Fix the module names Christophe de Vienne 2012-11-08 16:14:42 +01:00
  • c1ba69fa28 args_from_body now ignore empty bodies. Christophe de Vienne 2012-11-08 15:02:59 +01:00
  • 25b0efaf3a Python <2.7 compat Christophe de Vienne 2012-11-07 22:37:35 +01:00
  • c5d74a3353 Python 3 compat Christophe de Vienne 2012-11-07 21:56:27 +01:00
  • 74bb6b0bc3 Remove the parse_arg tests (parse_arg does not exist anymore), fix the json nest_result option handling, and fix the encode_sample tests and implementations. Christophe de Vienne 2012-11-07 21:29:46 +01:00
  • c3891c477e Rework the rest implementation. We now have a single protocol that can manupulate different dataformat thanks to the helpers provided by the xml, json and args modules (which will be used by the adapters too). Some corner cases still don't pass the unittest, and some code cleaning is required. Christophe de Vienne 2012-11-07 18:19:11 +01:00
  • eaa6cc8083 Add a test for the pecan adapter Christophe de Vienne 2012-11-06 22:37:33 +01:00
  • ddd2ba251e Move around the REST implementation : wsme.protocols.commons -> wsme.rest.args, wsme.protocols.rest -> wsme.rest.protocol, wsme.protocols.restxml/json -> wsme.rest.xml/json, wsme.protocols.__init__ -> wsme.protocol. Christophe de Vienne 2012-11-06 22:34:03 +01:00
  • 4826c8b7ed Start working on a better tg 1.1 integration. Need to rework the rest implementation to make it easier (especially the body parsing) Christophe de Vienne 2012-11-05 23:35:45 +01:00
  • 3080528319 Don't use wsme.release anymore Christophe de Vienne 2012-11-05 22:12:20 +01:00
  • c8b0b3b7a6 Change version to avoid dependencies problems in the CI Christophe de Vienne 2012-10-31 16:02:05 +01:00
  • b12a25a816 Make DummyProtocol inherit from Protocol because it now needs a 'iter_routes' function Christophe de Vienne 2012-10-31 12:23:31 +01:00
  • d3b6268720 wsme.protocols.expose now accept templated paths, and can expose a single function several times Christophe de Vienne 2012-10-31 12:09:48 +01:00
  • 21b5ccc632 Introduce a new decoratore wsme.protocol.expose, which replaces the clumsy former pexpose Christophe de Vienne 2012-10-31 11:44:30 +01:00
  • 4747aa82f1 Reorganise the decorators. expose and validate are now in wsme.rest, and ws.api.signature becomes the raw decorator to declare a function signature. Got rid of the 'pexpose' decorator, which will be replaced later by a better way. Christophe de Vienne 2012-10-31 10:48:01 +01:00
  • 983ba099d7 The pecan adapter is now tested Christophe de Vienne 2012-10-26 14:56:32 +02:00
  • e19613fd32 Make json the default format Christophe de Vienne 2012-10-26 14:53:47 +02:00
  • d282fda305 Rename WSRoot.scan_api to WSRoot._scan_api to avoid infinite recursion by scan_api Christophe de Vienne 2012-10-26 11:43:40 +02:00
  • 21ea8a9b17 Start working on adding protocols when used as a cornice complement Christophe de Vienne 2012-10-25 21:35:08 +02:00
  • e4b852292f Cornice extension: Fix function args preparation, and choose the renderer based on the 'Accept' header Christophe de Vienne 2012-10-24 21:17:59 +02:00
  • 0b2cf8df04 Adapter for cornice Christophe de Vienne 2012-10-23 12:28:48 +02:00
  • 61b3d3d88c Split get_args in several functions to make adapters implementation easier Christophe de Vienne 2012-10-23 12:22:14 +02:00
  • b45a949b79 Add a paramter 'multiple_expose' to the expose decorator Christophe de Vienne 2012-10-16 14:51:11 +02:00
  • 31b5e0d23d merge Christophe de Vienne 2012-10-16 13:45:38 +02:00
  • 4cab7ad256 Added tag 0.4 for changeset f06e004ca8e4 Christophe de Vienne 2012-10-16 13:12:42 +02:00
  • ac93de57c7 Add a test for one item long text arrays 0.4 Christophe de Vienne 2012-10-16 11:12:11 +02:00
  • 4cf7c1cc4e Get WSME version from the package, not wsme.release Christophe de Vienne 2012-10-15 16:31:25 +02:00
  • 5a7b305674 Update the changelog Christophe de Vienne 2012-10-15 16:01:59 +02:00
  • eb96b04822 Fix the sample include line numbers Christophe de Vienne 2012-10-15 16:00:57 +02:00
  • 179126dba6 Remove the b1 tag, 0.4 is about to be released Christophe de Vienne 2012-10-15 15:51:33 +02:00
  • 16d09b37da Move the imports to avoid cross-import problems (all this needs some rework) Christophe de Vienne 2012-10-15 14:30:46 +02:00
  • 318c6d6b83 Add a default value to FunctionDefinition.body_type Christophe de Vienne 2012-10-15 14:29:56 +02:00
  • f081d8a370 Rest protocols can now take parameters from url + a parameter from the body by adding a parameter body= to expose() Christophe de Vienne 2012-10-15 14:03:35 +02:00
  • 0f0116be78 Add an adapter for pecan. Christophe de Vienne 2012-10-14 01:40:27 +02:00
  • a5e63f0aed Add a helper function for adapters that need to convert a function arguments Christophe de Vienne 2012-10-14 01:39:19 +02:00
  • 5a840a4bd8 Get rid of the function wrapper. The only case it was needed is for exposing a function several times, but this case can be handled differently. I may reintroduce it as an option. Christophe de Vienne 2012-10-13 21:14:26 +02:00
  • 97f1b197ce Introduce a new decorator: 'sig', which combines expose and validate in a single decorator. Christophe de Vienne 2012-10-13 21:08:17 +02:00
  • 7cad370657 Now use six.with_metaclass to create the Base type in a python 2/3 compatible way Christophe de Vienne 2012-10-06 21:18:05 +02:00
  • be16f84738 spore.getdesc does not take a request anymore but only the host url (it makes the tests simplier) Christophe de Vienne 2012-09-24 22:10:10 +02:00
  • 9d03f6f1f1 Add a little demo of a SPORE client to call a function of the demo program Christophe de Vienne 2012-09-23 16:17:28 +02:00
  • a02b367a90 Fix the spore 'base_url' attribute Christophe de Vienne 2012-09-23 16:16:51 +02:00
  • 740cbea766 Fix the request headers log Christophe de Vienne 2012-09-23 16:16:27 +02:00
  • db45239e05 Test SPORE crud function descriptions Christophe de Vienne 2012-09-22 22:53:45 +02:00
  • 2f75b3dd61 Python 3 compat Christophe de Vienne 2012-09-22 22:53:11 +02:00
  • 0f5aeeedd5 Fix the spore test, as some functions were added by restjson Christophe de Vienne 2012-09-22 22:47:31 +02:00
  • 9605e9eaae Initial implementation of SPORE description of the api (fetch /api.spore to get it) Christophe de Vienne 2012-09-22 22:30:56 +02:00
  • eb58bd2280 Fix test_default_usertype Christophe de Vienne 2012-09-19 23:14:29 +02:00
  • a80f3af917 Test text to bytes auto-conversion Christophe de Vienne 2012-09-19 23:13:56 +02:00
  • 81ebb79e66 text and bytes attributes now convert values from/to bytes/text when needed (ascii only conversion) Christophe de Vienne 2012-09-19 23:10:00 +02:00
  • 5258fd3cc5 Remove the now useless test_release (the release module was removed) Christophe de Vienne 2012-09-17 23:33:28 +02:00
  • e295d01c16 Still need to specify the requires int the setup.py, as d2to1 does not seem to handle python_version dependant metadata Christophe de Vienne 2012-09-17 23:25:13 +02:00
  • 8d61bd983e Now using d2to1, which simplifies a lot the setup.py Christophe de Vienne 2012-09-17 23:03:19 +02:00
  • b4090ee562 Added tag 0.4b1 for changeset 5ad01afed877 Christophe de Vienne 2012-09-14 15:38:17 +02:00
  • cc1192b6d9 Update the change log (preparing release 0.4b1 0.4b1 Christophe de Vienne 2012-09-14 11:32:02 +02:00
  • 3d27316575 To avoid any array or dict duplication, use set() instead of list() for the registry array_types and dict_types attributes Christophe de Vienne 2012-09-14 10:54:10 +02:00
  • 110db71c8e Fix ArrayType __eq__ operator so that array types are not duplicated in the registry. Christophe de Vienne 2012-09-14 10:49:04 +02:00
  • 1512c3902f Add more list corner cases to test the soap behavior with empty arrays Christophe de Vienne 2012-09-13 23:13:41 +02:00
  • b8de4600e0 Allow 'None' to be set on an Array attribute Christophe de Vienne 2012-09-13 23:07:16 +02:00
  • 39e5762873 Mention the new wsme.types.Base type in the changelog Christophe de Vienne 2012-09-13 22:27:40 +02:00
  • 8d376b1574 Fix the demo so that we can use the soap client again, and changed the function names in the client (the soap function naming scheme just changed) Christophe de Vienne 2012-09-07 15:32:15 +02:00
  • d04f10c835 Fix the array and dict registering. The register() function has to be rethought, as resolve_type is doing more, and the ArrayType and DictType are in the game. Christophe de Vienne 2012-09-07 15:29:15 +02:00
  • 150dbd2de8 Mention the wsme.wsgi replacement by wsme.WSRoot.wsgiapp in the changelog Christophe de Vienne 2012-08-24 18:05:32 +02:00
  • 4d9a539086 Python 3 compatibility Christophe de Vienne 2012-08-24 12:09:55 +02:00
  • b49f992d1d Fix the Enum constructor, and document the change Christophe de Vienne 2012-08-24 10:45:58 +02:00
  • 3ada92fbf1 Documents the File type Christophe de Vienne 2012-08-24 10:37:08 +02:00
  • f1eedeed19 Rename FileType to File, and make it a complex type instead of a native one. Christophe de Vienne 2012-08-24 10:05:06 +02:00
  • 2ec135137d Rest protocols should now accept multipart/form-data posts (see issue #4) Christophe de Vienne 2012-08-23 23:25:21 +02:00
  • 3f3b0a08df New type: FileType. Supports file inputs in forms + documents and demonstrate it in the demo. Should solve issue #4. Christophe de Vienne 2012-08-23 23:22:44 +02:00
  • 53669cb935 Mention wsme.types.Base Christophe de Vienne 2012-08-18 00:48:55 +02:00