pyuno.cxx (5c3821d8) pyuno.cxx (564d9007)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 427 unchanged lines hidden (view full) ---

436 PyThreadDetach antiguard;
437 buf.append( "pyuno object " );
438
439 OUString s = val2str( (void*)me->members->wrappedObject.getValue(),
440 me->members->wrappedObject.getValueType().getTypeLibType() );
441 buf.append( OUStringToOString(s,RTL_TEXTENCODING_ASCII_US) );
442 }
443
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 427 unchanged lines hidden (view full) ---

436 PyThreadDetach antiguard;
437 buf.append( "pyuno object " );
438
439 OUString s = val2str( (void*)me->members->wrappedObject.getValue(),
440 me->members->wrappedObject.getValueType().getTypeLibType() );
441 buf.append( OUStringToOString(s,RTL_TEXTENCODING_ASCII_US) );
442 }
443
444 return PyString_FromString( buf.getStr());
444 return PyBytes_FromString( buf.getStr());
445}
446
447PyObject* PyUNO_getattr (PyObject* self, char* name)
448{
449 PyUNO* me;
450
451 try
452 {

--- 189 unchanged lines hidden (view full) ---

642 PyVarObject_HEAD_INIT(&PyType_Type, 0)
643 const_cast< char * >("pyuno"),
644 sizeof (PyUNO),
645 0,
646 (destructor) PyUNO_del,
647 (printfunc) 0,
648 (getattrfunc) PyUNO_getattr,
649 (setattrfunc) PyUNO_setattr,
445}
446
447PyObject* PyUNO_getattr (PyObject* self, char* name)
448{
449 PyUNO* me;
450
451 try
452 {

--- 189 unchanged lines hidden (view full) ---

642 PyVarObject_HEAD_INIT(&PyType_Type, 0)
643 const_cast< char * >("pyuno"),
644 sizeof (PyUNO),
645 0,
646 (destructor) PyUNO_del,
647 (printfunc) 0,
648 (getattrfunc) PyUNO_getattr,
649 (setattrfunc) PyUNO_setattr,
650 (cmpfunc) PyUNO_cmp,
650 PyUNO_cmp,
651 (reprfunc) PyUNO_repr,
652 0,
653 0,
654 0,
655 (hashfunc) 0,
656 (ternaryfunc) 0,
657 (reprfunc) PyUNO_str,
658 (getattrofunc)0,

--- 81 unchanged lines hidden ---
651 (reprfunc) PyUNO_repr,
652 0,
653 0,
654 0,
655 (hashfunc) 0,
656 (ternaryfunc) 0,
657 (reprfunc) PyUNO_str,
658 (getattrofunc)0,

--- 81 unchanged lines hidden ---