Bug #1017

Registering RPC method with return type None in Python fails

Added by J.-C. Seele almost 12 years ago. Updated almost 12 years ago.

Status:ResolvedStart date:06/21/2012
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:Python
Target version:rsb-0.7

Description

using this method threw a ValueError because return type handling is broken:

createServer(Scope(RSB_SCOPE), object = self, expose = [ ('stopRunner', type(None), type(None)) ])

Associated revisions

Revision fa3826ba
Added by J. Moringen almost 12 years ago

Fixed handling of noarg/noreturn methods in rsb/patterns/__init__.py
fixes #1017
  • rsb/patterns/__init__.py: handle callbacks implementing methods
    without argument and/or without return value properly; allow calling
    remote methods without arguments

Revision ef50aa2c
Added by J. Moringen almost 12 years ago

Fix for commit r3614
refs #1017
  • rsb/patterns/__init__.py: use requestType property correctly in
    LocalMethod._handleRequest

Revision b48d0c97
Added by J. Moringen almost 12 years ago

backported r3618, r3614 from trunk, refs #1017

History

#1 Updated by J. Moringen almost 12 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3614.

#2 Updated by J. Moringen almost 12 years ago

  • Category set to Python
  • Status changed from Resolved to Feedback
  • Target version set to rsb-0.7

Please check, whether the change fixes the issue.

#3 Updated by J.-C. Seele almost 12 years ago

Nothing changed on rsb-python 0.6 reinstalled with gar-installer. Is this the version that was fixed?

#4 Updated by J. Moringen almost 12 years ago

The fix is in the trunk version.

#5 Updated by J. Moringen almost 12 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF