Hi Alexandro,

Thank you very much for the links but, sorry, I was not clear (my english is
very weak).

I'm talking about scripting framework py files without any explicit defined
class (so, no XJob / XJobExecutor). My script has only two functions (func1
and
func2).
If I add an addons.xcu file to the uno pkg I get an menu entry, as expected,
but nothing happens when it's "fired".

Here's some urls that do not work:
- service:org.openoffice.script.fooPyComponent?execute
- service:org.openoffice.script.fooPyComponent?execute$func1
- service:org.openoffice.script.fooPyComponent?func1
- service:org.openoffice.script.fooPyComponent?dummyScript.py$func1

So, is it possible to deploy this _kind_ of script as add-on ? If yes, what
is
the url to fire a function ?

Thank you.
--
Noelson

----- Original Message ----- 
From: "Alexandro Colorado" <[EMAIL PROTECTED]>
To: <dev@api.openoffice.org>
Sent: Saturday, December 08, 2007 12:04 AM
Subject: Re: [api-dev] How to deploy Python macros as Addon


> On Fri, 07 Dec 2007 18:37:35 -0600, Noelson Duarte
> <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> >
> > I've a py script with only two functions (no class) . From PyUNO docs I
> > know that is possible to deploy scripting framework py files as UNO
> > packages. All right.
> >
> > I want to know if is it possible to deploy it as an Addon and, if yes,
> > what
> > is the URL used within addons.xcu to call func1 ?
> >
> > Sorry my english and thanks.
> > --
> > Noelson
>
> You can generate your own Addon.xcu (is an XML), you will define the menu,
> options and other parameters. In the end you will need to send the execute
> to the function a good explanation of the addon is on the wiki.
>
> then just zip it and rename to an oxd so you can install as a package
> manager.
>
http://wiki.services.openoffice.org/wiki/UNO_component_packaging#Addons.xcu
>
> http://wiki.services.openoffice.org/wiki/Extension_Deployement
>
>
>
> -- 
> Alexandro Colorado
> Help the Tabasco Relief efforts:
>
http://rootcoffee.blogspot.com/2007/11/race-to-save-mexico-flood-victims.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date:
6/12/2007 23:15
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to