PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 902 - Expose Shiboken functionality through a Python module
: Expose Shiboken functionality through a Python module
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: PC Linux
: P4 enhancement
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-06-28 00:31 EEST by Thomas Perl
Modified: 2012-01-02 21:44 EET (History)
10 users (show)

See Also:


Attachments
shiboken module type system (1.60 KB, text/plain)
2011-08-04 22:11 EEST, Hugo Parente Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Perl 2011-06-28 00:31:15 EEST
As discussed on the mailing list, it would be good if we would have some
functionality of Shiboken exposed as a separate Python module, so that advanced
use cases (such as Maya integration, etc..) can be implemented with PySide as
well.

As suggested by Hugo, here are some functions that the module should provide (I
changed the camelCase function names to the python_style to make it more
pythonic):

# returns true if the python object is valid
shiboken.is_valid(obj)

# create an instance based on the given address and type
shiboken.wrap_instance(long, type)

# prints internal information about the object to stderr,
# just for debugging purposes.
shiboken.print_info(obj)
Comment 1 Thomas Perl 2011-06-28 00:33:34 EEST
Discussion thread on the mailing list:
http://lists.pyside.org/pipermail/pyside/2011-June/002622.html

PyQt-related code examples for the Maya use case:
http://nathanhorne.com/?p=298

Example binding code by Hugo:
http://lists.pyside.org/pipermail/pyside/2011-June/002627.html
Comment 2 Hugo Parente Lima 2011-08-03 17:28:48 EEST
*** Bug 536 has been marked as a duplicate of this bug. ***
Comment 3 Hugo Parente Lima 2011-08-04 22:11:23 EEST
Created attachment 387 [details]
shiboken module type system

I did a initial set of functions for this module, the type system is attached.
Those functions aren't written on a rock, so we can add other functions in the
future if needed or change them before the release.

Comments?
Comment 4 Thomas Perl 2011-08-15 16:37:17 EEST
Related link to PSEP-0106 which discusses this feature:

http://www.pyside.org/docs/pseps/psep-0106.html
Comment 5 Hugo Parente Lima 2011-08-30 00:31:19 EEST
Fixed in commits:

shiboken/52d637fe4c114a6562afaba0893115830d0da4c7 (docs)
shiboken/bc8448d7fb91733ff08c2a6a3a878702c14a24e0
Comment 6 renato filho 2011-09-21 20:49:25 EEST
Release 1.0.7
Comment 7 Hugo Parente Lima 2011-09-21 21:27:10 EEST
Waiting for the PSEP approval.
Comment 8 Tony Barbieri 2011-12-07 01:23:44 EET
Has this functionality been totally removed?  I had compiled shiboken awhile
ago from github and it did create a module.  Now I can't seem to create one
with the newest head.

thanks!

-tony
Comment 9 Hugo Parente Lima 2011-12-09 15:10:56 EET
(In reply to comment #8)
> Has this functionality been totally removed?  I had compiled shiboken awhile
> ago from github and it did create a module.  Now I can't seem to create one
> with the newest head.

The commit implementing it was removed (reverted in git) before the release
because the PSEP wasn't ready at the time of the release. The PSEP got ready 2
months later, so now we need to do some adjustments on the current
implementation to fit the PSEP requirements then commit it again into mainline.

> thanks!
> 
> -tony
Comment 10 Tony Barbieri 2011-12-09 19:29:10 EET
That's great news that it will be added back in.  It's a big help for
integrating PySide within the various applications we use such as Autodesk
Maya.

thanks again,

-tony
Comment 11 Hugo Parente Lima 2011-12-10 00:14:22 EET
PSEP 0106 implemented in commit:

shiboken/ca34e36bb1c9a017a9bf11ae3769afb059194788