Re: [api-dev] Translating Examples to Python

2005-09-27 Thread Jürgen Schmidt


Laurent Godard wrote:

Hi Jurgen

Kim i would suggest that we create a new sample directory python in 
the SDK structure and concentrate us primarily on the Developer's 
Guide examples because i will clean up the examples for the next 
version of the SDK to elimintate redundant examples.




+1
adding python inside the sdk is definitivelly a good idea

The code snippet base is also a good place for this converted 
examples. I would like to see that all snippets would be avalaible in 
all supported languages and that we can extend the collection.




Yes code snippets has to be extended to all languages supported by OOo
But remember these are snippets !
It is not the place imho to put full example but only test cases that 
illustrate one API call or one concept at a time to be used as a quick 
ref for newcommers


i want to extend this place to a place for more complex examples as well 
if possible. Tom would know if he has any space limitations on the 
server and if we have this limitation we may need to find another place. 
But important is that all this resources are available from the same 
entry point and that is for me currently the codesnippet page or the api 
project page. I think it is important to have one entry point for 
developers to find good and useful stuff (examples, snippets, 
documentation, ...) and we should work together to provide a common 
entry point. Everything else will be confusing and potential new 
developers get maybe lost on various sides. It is also important that we 
establsih some kind of QA for all examples, the snippets and the 
documentation as well that we can guarantee the correctness of these 
stuff. And more important for me is that we show the best practise to 
program extensions for OO.org.


- Juergen




Full examples may have their dedicated places in the SDK
They will often need some developped explanations and then not be 
'snippets'

Yes a dedicated location for them is a good idea.
Btw, i think ChristianJunker is rewiewing the docstrings of the already 
exsiting uno*.py files and Bernard Marcelly, author of Xray, is actually 
writting an helper module allowing switching easilly from OOoBasic to pyUNo


thanks again Jurgen

Laurent



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



Re: [api-dev] Translating Examples to Python

2005-09-27 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jürgen Schmidt wrote:
 
 Laurent Godard wrote:
 

[...]

 i want to extend this place to a place for more complex examples as well
 if possible. Tom would know if he has any space limitations on the
 server and if we have this limitation we may need to find another place.
 But important is that all this resources are available from the same
 entry point and that is for me currently the codesnippet page or the api
 project page. I think it is important to have one entry point for
 developers to find good and useful stuff (examples, snippets,
 documentation, ...) and we should work together to provide a common
 entry point. Everything else will be confusing and potential new
 developers get maybe lost on various sides. It is also important that we
 establsih some kind of QA for all examples, the snippets and the
 documentation as well that we can guarantee the correctness of these
 stuff. And more important for me is that we show the best practise to
 program extensions for OO.org.
 

We don't have any space limitations on the server  ;-) . It's not the
first time we are talking about this Ian started up once with an
web-oo-extension-installer.

What we need to think about is:
- - - how we can present larger-scale examples
- - - how we can manage OO-Extensions. there is an Issue about this but I
  cann't find it at the moment

Tom

[...]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFDOQ6JkVPeOFLgZFIRAucGAJ9pzd6pYW+7xci/zz2Z1YKmUIYxpACfYs5g
q+nM/8DFkHvbnuhVkEKUSR8=
=35rZ
-END PGP SIGNATURE-

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



Re: [api-dev] Translating Examples to Python

2005-09-26 Thread Jürgen Schmidt

Hi,

i think Kim mentioned the Java examples from the SDK. So it would make 
sense to integrate the examples in the SDK as well to have them in the 
same place. But when we do that we would need an appropriate 
documentation for the language binding as well (any volunteers).
Kim i would suggest that we create a new sample directory python in the 
SDK structure and concentrate us primarily on the Developer's Guide 
examples because i will clean up the examples for the next version of 
the SDK to elimintate redundant examples.


The code snippet base is also a good place for this converted examples. 
I would like to see that all snippets would be avalaible in all 
supported languages and that we can extend the collection.


Juergen


Ian Laurenson wrote:

On Sun, 2005-09-11 at 11:17 -0700, Kim Kulak wrote:


I've been writing an application in Python using OOo and it's great!
Time to give back and I'd like to do this by translating the examples
from Java into Python. The examples have been irreplaceable, even
written in Java, in helping me to get my programs running.

I've started, of course, with FirstUnoContact.py. It's ready to go and
I'll append it to this email but first I have a few questions and comments:

1. Is there some place I can upload these files rather than sending them
in an email? How would you prefer to receive them? Especially as they
get larger!



I don't have any official standing but the following is what I am aware
of:

There is codes snippets:
http://codesnippets.services.openoffice.org/

and a forum:
http://www.oooforum.org/forum/viewforum.phtml?f=11

And for a more tutorial style of approach a wiki:
http://ext.openoffice.org.nz/doku.php

Currently the wiki concentrates on BASIC, but some python work has been
added and more is welcome.

[remainder snipped]

Thanks, Ian



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



Re: [api-dev] Translating Examples to Python

2005-09-26 Thread Laurent Godard

Hi Jurgen

Kim i would suggest that we create a new sample directory python in the 
SDK structure and concentrate us primarily on the Developer's Guide 
examples because i will clean up the examples for the next version of 
the SDK to elimintate redundant examples.




+1
adding python inside the sdk is definitivelly a good idea

The code snippet base is also a good place for this converted examples. 
I would like to see that all snippets would be avalaible in all 
supported languages and that we can extend the collection.




Yes code snippets has to be extended to all languages supported by OOo
But remember these are snippets !
It is not the place imho to put full example but only test cases that 
illustrate one API call or one concept at a time to be used as a quick 
ref for newcommers


Full examples may have their dedicated places in the SDK
They will often need some developped explanations and then not be 'snippets'
Yes a dedicated location for them is a good idea.
Btw, i think ChristianJunker is rewiewing the docstrings of the already 
exsiting uno*.py files and Bernard Marcelly, author of Xray, is actually 
writting an helper module allowing switching easilly from OOoBasic to pyUNo


thanks again Jurgen

Laurent

--
Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org
Indesko  http://www.indesko.com
Nuxeo CPS  http://www.nuxeo.com - http://www.cps-project.org
Livre Programmation OpenOffice.org, Eyrolles 2004

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



Re: [api-dev] Translating Examples to Python

2005-09-26 Thread Rony G. Flatscher


i think Kim mentioned the Java examples from the SDK. So it would make 
sense to integrate the examples in the SDK as well to have them in the 
same place. But when we do that we would need an appropriate 
documentation for the language binding as well (any volunteers).
Kim i would suggest that we create a new sample directory python in 
the SDK structure and concentrate us primarily on the Developer's 
Guide examples because i will clean up the examples for the next 
version of the SDK to elimintate redundant examples.


The code snippet base is also a good place for this converted 
examples. I would like to see that all snippets would be avalaible in 
all supported languages and that we can extend the collection.


Would offer to do the same for ooRexx (following the Java snippets), if you are 
interested. If so, please advise.

Regards,

---rony

P.S.: A formal announcement of the ooRexx scripting language (opensource and 
multiplatform) is pending (did change the support to generically support/employ 
UNO components), still waiting on a student to finalize the documented nutshell 
examples which then would make it easier to look at the language and at the way 
it integrates with OOo via the commandline. Support for scripting framework is 
there also, although I have been contemplating how to make the 
scriptContext-object available, as an argument or making it implicitly 
available via the ooRexx local runtime environment (very much like ActiveX on 
Windows).




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



Re: [api-dev] Translating Examples to Python

2005-09-11 Thread Ian Laurenson
On Sun, 2005-09-11 at 11:17 -0700, Kim Kulak wrote:
 I've been writing an application in Python using OOo and it's great!
 Time to give back and I'd like to do this by translating the examples
 from Java into Python. The examples have been irreplaceable, even
 written in Java, in helping me to get my programs running.
 
 I've started, of course, with FirstUnoContact.py. It's ready to go and
 I'll append it to this email but first I have a few questions and comments:
 
 1. Is there some place I can upload these files rather than sending them
 in an email? How would you prefer to receive them? Especially as they
 get larger!
 
I don't have any official standing but the following is what I am aware
of:

There is codes snippets:
http://codesnippets.services.openoffice.org/

and a forum:
http://www.oooforum.org/forum/viewforum.phtml?f=11

And for a more tutorial style of approach a wiki:
http://ext.openoffice.org.nz/doku.php

Currently the wiki concentrates on BASIC, but some python work has been
added and more is welcome.

[remainder snipped]

Thanks, Ian

-- 
Ian Laurenson [EMAIL PROTECTED]
Hillview


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