r19456 by jghali - 12572, patch 04/12: fix module name for objects created in scripter

scribus-commit scribus-commit at lists.scribus.net
Sat Aug 30 00:08:27 UTC 2014


Author: jghali
Date: Sat Aug 30 00:08:27 2014
New Revision: 19456

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19456
Log:
12572, patch 04/12: fix module name for objects created in scripter

Now help(scribus.PDFfile) prints first line as
Help on class PDFfile in module scribus:
instead of
Help on class PDFfile in module __builtin__:

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/objimageexport.cpp
    trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
    trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/objimageexport.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19456&path=/trunk/Scribus/scribus/plugins/scriptplugin/objimageexport.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/objimageexport.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/objimageexport.cpp Sat Aug 30 00:08:27 2014
@@ -206,7 +206,7 @@
 PyTypeObject ImageExport_Type = {
 	PyObject_HEAD_INIT(NULL)   // PyObject_VAR_HEAD
 	0,
-	const_cast<char*>("ImageExport"), // char *tp_name; /* For printing, in format "<module>.<name>" */
+	const_cast<char*>("scribus.ImageExport"), // char *tp_name; /* For printing, in format "<module>.<name>" */
 	sizeof(ImageExport),   // int tp_basicsize, /* For allocation */
 	0,  // int tp_itemsize; /* For allocation */
 	(destructor) ImageExport_dealloc, //	 destructor tp_dealloc;

Modified: trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19456&path=/trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp Sat Aug 30 00:08:27 2014
@@ -1223,7 +1223,7 @@
 PyTypeObject PDFfile_Type = {
 	PyObject_HEAD_INIT(NULL) // PyObject_VAR_HEAD
 	0,		      //
-	const_cast<char*>("PDFfile"), // char *tp_name; /* For printing, in format "<module>.<name>" */
+	const_cast<char*>("scribus.PDFfile"), // char *tp_name; /* For printing, in format "<module>.<name>" */
 	sizeof(PDFfile),     // int tp_basicsize, /* For allocation */
 	0,		    // int tp_itemsize; /* For allocation */
 

Modified: trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19456&path=/trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp Sat Aug 30 00:08:27 2014
@@ -529,7 +529,7 @@
 PyTypeObject Printer_Type = {
 	PyObject_HEAD_INIT(NULL)   // PyObject_VAR_HEAD
 	0,			 //
-	const_cast<char*>("Printer"), // char *tp_name; /* For printing, in format "<module>.<name>" */
+	const_cast<char*>("scribus.Printer"), // char *tp_name; /* For printing, in format "<module>.<name>" */
 	sizeof(Printer),   // int tp_basicsize, /* For allocation */
 	0,		       // int tp_itemsize; /* For allocation */
 




More information about the scribus-commit mailing list