Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CGIXMLRPCRequestHandler as a super class. #26

Open
wants to merge 59 commits into
base: master
Choose a base branch
from

Commits on May 22, 2013

  1. Code style update

    - Remove spaces, ...
    tcalmant committed May 22, 2013
    Configuration menu
    Copy the full SHA
    22bd092 View commit details
    Browse the repository at this point in the history
  2. SimpleJSONRPCDispatcher accepts a custom dispatch_method

    The dispatch_method given to _marshaled_dispatch and _marshaled_single_dispatch
    is now used instead of _dispatch, if given.
    tcalmant committed May 22, 2013
    Configuration menu
    Copy the full SHA
    6092d1c View commit details
    Browse the repository at this point in the history
  3. Eclipse project files added

    tcalmant committed May 22, 2013
    Configuration menu
    Copy the full SHA
    e8d0762 View commit details
    Browse the repository at this point in the history
  4. Python 3 compatibility

    tcalmant committed May 22, 2013
    Configuration menu
    Copy the full SHA
    db7a7dc View commit details
    Browse the repository at this point in the history
  5. Removed UNIX sockets code + type correction

    - No more reference to Unix sockets (maybe they'll come back later)
    - Fixed a typo in jsonclass, in the Python version comparison
    tcalmant committed May 22, 2013
    Configuration menu
    Copy the full SHA
    6ce7a4a View commit details
    Browse the repository at this point in the history
  6. Test package updated

    - Removed tests about Unix sockets
    - Corrected a test using bad parameters
    tcalmant committed May 22, 2013
    Configuration menu
    Copy the full SHA
    1d51040 View commit details
    Browse the repository at this point in the history
  7. Python 3 compatibility - Second pass

    Passes all the tests from tests.py in both Python 2 and 3
    tcalmant committed May 22, 2013
    Configuration menu
    Copy the full SHA
    d34d523 View commit details
    Browse the repository at this point in the history
  8. Request IDs generated by UUID + code enhancement

    - random_id() method replaced by str(uuid.uuid4())
      => ensures ID uniqueness
    - JSON utility methods (jdumps, jloads) are defined according
      to what can be imported, instead of doing a test inside a
      single definition
    tcalmant committed May 22, 2013
    Configuration menu
    Copy the full SHA
    3ddaca6 View commit details
    Browse the repository at this point in the history
  9. setup.py file updated

    - New project name: jsonrpclib-pelix (not yet registered)
    tcalmant committed May 22, 2013
    Configuration menu
    Copy the full SHA
    653a1f8 View commit details
    Browse the repository at this point in the history
  10. README file updated

    tcalmant committed May 22, 2013
    Configuration menu
    Copy the full SHA
    a799329 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    45a10c2 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d075d88 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2013

  1. jsonclass: Replace "type() is" by isinstance()

    Allows to use custom dictionaries, ...
    tcalmant committed May 24, 2013
    Configuration menu
    Copy the full SHA
    ad83b6d View commit details
    Browse the repository at this point in the history
  2. New methods: dump(), load(), Fault.dump()

    - dump() returns the JSON-RPC dictionary instead of its string representation
    - dumps() calls dump()
    - same thing with load() and loads()
    - Fault.dump() is the dictionary equivalent of response()
    tcalmant committed May 24, 2013
    Configuration menu
    Copy the full SHA
    eacf435 View commit details
    Browse the repository at this point in the history
  3. New method: SimpleJSONRPCDispatcher._unmarshaled_dispatch

    - Takes a loaded dictionary as a parameter (jsonrpclib.load/s)
    - Returns a JSON-RPC dictionary (jsonrpclib.dump)
    - _marshaled_dispatch wraps _unmarshaled_dispatch (keeps its behaviour)
    tcalmant committed May 24, 2013
    Configuration menu
    Copy the full SHA
    2b5941f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    77b0a04 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    31253a5 View commit details
    Browse the repository at this point in the history
  6. Requests with ID 0 (int) are not notifications

    - Replaced a 'not id' by 'id not in (None, "")'
    - _unmarshaled_dispatch now throws a NoMulticallResult exception instead of returning ''
    tcalmant committed May 24, 2013
    Configuration menu
    Copy the full SHA
    8a28b9b View commit details
    Browse the repository at this point in the history

Commits on May 30, 2013

  1. Updated gitignore

    tcalmant committed May 30, 2013
    Configuration menu
    Copy the full SHA
    155aaa4 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2013

  1. Configuration menu
    Copy the full SHA
    0ac1d70 View commit details
    Browse the repository at this point in the history
  2. Enhanced JSON parser feeding

    JSONTarget: raw data is stored in the feeding list, the conversion to
    string (if required) is done only once all data has been received.
    This avoids errors decoding splitted wide-characters.
    tcalmant committed Jun 4, 2013
    Configuration menu
    Copy the full SHA
    65becf8 View commit details
    Browse the repository at this point in the history
  3. History becomes an optional parameter of ServerProxy

    * Removes the potential memory hog (history was never cleared)
    * Allows to have different instances of History for each ServerProxy
    * Tests updated
    tcalmant committed Jun 4, 2013
    Configuration menu
    Copy the full SHA
    0ed2bb8 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2013

  1. Configuration menu
    Copy the full SHA
    2f857f5 View commit details
    Browse the repository at this point in the history
  2. Less strict error response handling.

    This should support any types of error responses, including:
    
    - `{..., "error": {"code": -42, "message": "spam"}}`,
    - `{..., "error": {"reason": "spam"}}`,
    - `{..., "error": {"what_happened": "spam"}}`,
    - or even `{..., "error": "spam"}}`
    
    Conflicts:
    
    	jsonrpclib/jsonrpc.py
    drdaeman authored and tcalmant committed Jun 19, 2013
    Configuration menu
    Copy the full SHA
    4e6cd15 View commit details
    Browse the repository at this point in the history
  3. In case of a non-pre-defined error, raise an AppError and give access…

    … to error.data
    
    Conflicts:
    
    	jsonrpclib/__init__.py
    	jsonrpclib/jsonrpc.py
    tuomassalo authored and tcalmant committed Jun 19, 2013
    Configuration menu
    Copy the full SHA
    fd0468d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c02bf57 View commit details
    Browse the repository at this point in the history
  5. Content-Type can now be configured

    Modifying jsonrpclib.config.content_type (string)
    By default, it stays to "application/json-rpc", as the JSON-RPC specification indicates.
    tcalmant committed Jun 19, 2013
    Configuration menu
    Copy the full SHA
    f9920b5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    28d8d81 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2013

  1. Configuration menu
    Copy the full SHA
    c077855 View commit details
    Browse the repository at this point in the history
  2. Added tests for the additional headers

    Applied commits from https://github.com/dejw/jsonrpclib:
    - 53d38c3: Added tests for additional request headers feature.
    - 9e63239: Added test for notifications.
    - 0a3bbe6: Added test for nesting _additional_headers context.
    
    Tests have been modified to handle Python 2 / Python 3 compatibility
    tcalmant committed Jun 20, 2013
    Configuration menu
    Copy the full SHA
    20f5be4 View commit details
    Browse the repository at this point in the history
  3. Updated README file

    tcalmant committed Jun 20, 2013
    Configuration menu
    Copy the full SHA
    589c387 View commit details
    Browse the repository at this point in the history
  4. Added __version__ to all modules

    Version set to 0.1.5
    tcalmant committed Jun 20, 2013
    Configuration menu
    Copy the full SHA
    81da309 View commit details
    Browse the repository at this point in the history
  5. Updated version to 0.1.5

    tcalmant committed Jun 20, 2013
    Configuration menu
    Copy the full SHA
    6d89019 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2013

  1. Configuration menu
    Copy the full SHA
    3406fe2 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2013

  1. Configuration menu
    Copy the full SHA
    acc14f2 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2013

  1. Configuration menu
    Copy the full SHA
    7f00bb1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5b3d6b View commit details
    Browse the repository at this point in the history
  3. Small improvement in bean reconstruction

    Instead of filtering the __jsonclass__ entry, it is removed before the
    setattr() loop.
    tcalmant committed Oct 14, 2013
    Configuration menu
    Copy the full SHA
    2afbfc3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fa542fb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bb8b1c1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3fe6b2c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2d37bb8 View commit details
    Browse the repository at this point in the history
  8. Corrected tests on Python 2

    Python 2 has an io module, messing with StringIO
    tcalmant committed Oct 14, 2013
    Configuration menu
    Copy the full SHA
    fc13454 View commit details
    Browse the repository at this point in the history
  9. Added tox configuration

    tcalmant committed Oct 14, 2013
    Configuration menu
    Copy the full SHA
    e00eae4 View commit details
    Browse the repository at this point in the history
  10. Updated setup.py file

    tcalmant committed Oct 14, 2013
    Configuration menu
    Copy the full SHA
    e48938d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    da75a40 View commit details
    Browse the repository at this point in the history
  12. Config is not a singleton anymore

    - Multiple clients/servers can have different configurations
    - Still a (shared) default configuration object: jsonrpclib.config.DEFAULT
    - Previous API should still work as-is: the new parameters have always been
      added in last position, with the DEFAULT instance by default.
    - The version all modified modules has been increased to 0.1.6
    tcalmant committed Oct 14, 2013
    Configuration menu
    Copy the full SHA
    5b00e43 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4fba687 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2013

  1. Recursive loading of bean fields

    Fields of a bean loaded by jsonclass are also loaded through the same
    method. This allows to have beans containing beans.
    tcalmant committed Oct 22, 2013
    Configuration menu
    Copy the full SHA
    e9902ae View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2013

  1. Added Travis-CI configuration file

    Based on Tox, same as the iPOPO Travis configuration file.
    tcalmant committed Oct 25, 2013
    Configuration menu
    Copy the full SHA
    ad0ed6e View commit details
    Browse the repository at this point in the history
  2. Added __call__ and __close methods to ServerProxy

    - Allows to use the 'client("close")()' method to close the
      transport layer of a ServerProxy, even on Python 2.6
      => Fixes joshmarshall#2
    - Updated tests to _really_ close the transport layer
      (and not just to retrieve the closing method)
    tcalmant committed Oct 25, 2013
    Configuration menu
    Copy the full SHA
    c1508c9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d221c56 View commit details
    Browse the repository at this point in the history
  4. Version increment, related to issue joshmarshall#2

    Also added supported Python versions to setup.py
    tcalmant committed Oct 25, 2013
    Configuration menu
    Copy the full SHA
    7ba842c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cdb8f91 View commit details
    Browse the repository at this point in the history
  6. WSGI should decode incoming JSON

    Note that it seems that people don't declare the encoding in
    Content-Type so I'll just assume people want to use the encoding that
    the server uses internally :)
    dgilman committed Oct 25, 2013
    Configuration menu
    Copy the full SHA
    675d737 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2014

  1. Added CGIXMLRPCRequestHandler as a super class.

    I couldn't get CGI to work without this super class.
    Zectbumo committed Feb 6, 2014
    Configuration menu
    Copy the full SHA
    4626d80 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2014

  1. Configuration menu
    Copy the full SHA
    25f1db6 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2014

  1. mime-type application/json for Accept/Content-Type

    I like Roland's answer "reason: transport and contents are independent. so all the transport here needs to know is the format of the contents, and that's just json."
    https://groups.google.com/forum/#!topic/json-rpc/6OXOOm4fcC8
    Zectbumo committed Feb 12, 2014
    Configuration menu
    Copy the full SHA
    3a54c36 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2014

  1. Merge dgilman wsgi branch

    Conflicts:
    	jsonrpclib/SimpleJSONRPCServer.py
    	jsonrpclib/jsonclass.py
    	jsonrpclib/jsonrpc.py
    Zectbumo committed Feb 23, 2014
    Configuration menu
    Copy the full SHA
    1dbeb07 View commit details
    Browse the repository at this point in the history