Omnis Studio and Python

Grzegorz (Greg) Pasternak grzegorz at niagara.com
Tue Dec 23 10:22:57 EST 2014


Witaj Andrew;

Yes, I was thinking about this and I am definitely going to do some work using REST, but that is for the later date.
Thanks for the suggestion though.

Greg

On Dec 23, 2014, at 9:49 AM, Andrew Stolarz <stolarz at gmail.com> wrote:

> Czesc Grzegorz,
> 
> Not sure if you have access to the new Omnis Studio 6.1 that was just
> released, here is a snippet
> 
> http://www.tigerlogic.com/tigerlogic/omnis/download/manuals/Whatsnew61.pdf
> 
> "Support for RESTful Web Services for client and server: you can create a
> user interface for RESTful web services, or expose your Omnis code on the
> Omnis App Server as a Web Service using the new component. In addition,
> there is a new JSON external component, called OJSON, that allows JSON
> based objects returned from RESTful resources to be manipulated".
> 
> 
> In my opinion, this is the best way to go if you want to interact with the
> Omnis web server.
> 
> 
> Andrew
> 
> 
> 
> On 23 December 2014 at 09:38, Grzegorz (Greg) Pasternak <
> grzegorz at niagara.com> wrote:
> 
>> Lou;
>> 
>> I am aware of the fact that Python is more popular, has lot's of resources
>> and may be easier to get help.
>> I wasn't aware of the fact that it may pay better though, which might be a
>> good reason to move into this direction in the future ;-)
>> 
>> However, the purpose of what I am doing has not much to do with using
>> better tool.  At this stage it is simply Python script talking to Omnis.
>> I am looking for easy way of exchanging data between those two.  The HTTP
>> is good for this I think.
>> 
>> Data can be formatted in variety of ways and XML is simply one way of
>> doing it.  I already have the simple parser for it so no need to look
>> around for anything else.
>> Further, I want to run tests in Omnis.  Python script is going to send
>> some info about the test and Omnis will run it, then return the results.
>> 
>> If there is a better way to have communication going between Omnis and
>> Python using different mechanism I would like to know and learn about
>> this.  I am open for any crazy idea as long as it works for the purpose.
>> At this stage ultra HTTP seems to work just fine and I don't particularly
>> care about data sent in URL string if there is no other way do to it.
>> However, again, if there is a better or different way to do it I would like
>> to look into this.
>> 
>> Greg
>> 
>> 
>> 
>> On Dec 23, 2014, at 8:14 AM, Lou Picciano <loupicciano at comcast.net> wrote:
>> 
>>> Greg,
>>> 
>>> Far from suggesting, I'm pounding on a drum! The drumbeat being: 'I'm
>> happy to see more ODs using Python'. (There are smaller tom-toms pounding
>> out messages about
>>> However, rather than consuming even more memory, returning a variable,
>> then trying to manage that whole blob (where, in Omnis?), why not use some
>> of the many tools python offers you to do this(1). Check out the XML and
>> etree stuff in python. Why try to do any of this in Omnis, when the python
>> modules offer you direct access to libxml2, libxslt, many others...
>>> 
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list