Ignore:
Timestamp:
02/06/12 11:53:14 (2 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
rebase_source:
d7e1c777735ab919624f90e840311ca79d0a6af8
Message:

Renamed Orange to OrangeBase (only as seen from Python)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/pyxtract/pyxtract.py

    r9505 r9677  
    929929  if len(myclasses): 
    930930    for classname in ks: 
     931      exportedname = "OrangeBase" if classname=="Orange" else classname 
    931932      if not classdefs[i].hidden: 
    932         functionsfile.write('     PyModule_AddObject(mod, "%s", (PyObject *)&PyOr%s_Type);\n' % (classname, classname)) 
     933        functionsfile.write('     PyModule_AddObject(mod, "%s", ' \ 
     934                            '(PyObject *)&PyOr%s_Type);\n' % 
     935                            (exportedname, classname)) 
    933936 
    934937  for type, fields in myclasses.items(): 
Note: See TracChangeset for help on using the changeset viewer.