Changeset 10226:51ef9a6f5241 in orange


Ignore:
Timestamp:
02/15/12 10:54:53 (2 years ago)
Author:
Janez Demšar <janez.demsar@…>
Branch:
default
Message:

Core classes that are not exported are now displayed as Orange.core.<classname>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/pyxtract/pyxtract.py

    r10220 r10226  
    746746    outfile.write('  PyObject_HEAD_INIT((_typeobject *)&PyType_Type)\n') 
    747747    outfile.write('  0,\n') 
    748     if getattr(fields, "displayname", None): 
    749         outfile.write('  "%s",\n' % fields.displayname) 
    750     else: 
    751         outfile.write('  "%s.%s",\n' % (modulename, type)) 
     748    displayname = getattr(fields, "displayname", "Orange.core."+type) # was: <modulename>.<type> 
     749    outfile.write('  "%s",\n' % displayname) 
    752750    outfile.write('  sizeof(%s), 0,\n' % fields.datastructure) 
    753751    innulls=writeslots(specialmethods, 1) 
Note: See TracChangeset for help on using the changeset viewer.