Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hello,

I've tried your patch and it works perfectly. What i'm trying now is to
import from CallWizard.py another file.
Let's imagine I have a file in fax/ called Test.py that looks like this:

class Test():

    def __init__(self):
        print "it works"

I add it to Pyuno_fax.mk

$(eval $(call gb_Pyuno_add_files,fax,\
    CallWizard.py \
    Test.py \
))

and then I import it in CallWizard.py like: from Test import Test but it
doesn't work ( I've also tried from com.sun.star.wizards.fax.Test import
Test )

any idea ?

2011/9/7 Caolán McNamara <caolanm@redhat.com>

On Wed, 2011-09-07 at 11:24 +0100, Caolán McNamara wrote:
On Tue, 2011-09-06 at 19:49 +0200, Xisco Faulí wrote:
Hello,


I've tried to follow your steps but placing the code in
wizards/com/sun/star/wizards/fax/CallWizard.py. So far I haven't been
able to build it successfully. It complains and says: ERROR: File not
found: CallWizard.py

I see that wizards has been converted to gmake in the meantime, so it no
longer uses dmake makefile.mk stuff, we need some gbuild support for
copying .py files into their final locations with some form of
pyuno .component file support support.

dtardon was good enough to put together the gmake stuff needed to get
this bootstrapped, which are now committed to master.

So here's your patch back again, except "gbuildified" so this should
work to make wizards->fax stick hello world into writer.

There's still a lot of nasty things, dumping the .py directly into
"program" as opposed to making some sort of subdir into which they can
go, but maybe it'll help

C.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.