[OGo-MacOSX] How can I have the application running in the background without using the windows server

Helge Hess macosx@opengroupware.org
Tue, 4 Apr 2006 01:37:48 +0200


On 4. Apr 2006, at 01:19 Uhr, Marcus M=FCller wrote:
> Is this some future extension - or is this already possible?

Not sure what you mean, but everything outlined should be "already =20
possible".

> Is this correct? You provide some value class which itself doesn't =20
> implement anything as it's defining methods which get redirected to =20=

> the BMSOPEAction class. Or did you skip (overlook) that part of the =20=

> definition and meant something different?

Get the Zope/SOPE concept ;-) The given class (SoClass) *does* have a =20=

method. That the method in turn is implemented as a direct action and =20=

not a regular ObjC method is just a minor difference. (a SoMethod is =20
anything "callable").

Thats Python/Zope style. Implementation doesn't matter. Everything =20
which is 'callable' can be a method, be it a WOComponent, a =20
WODirectAction or a plain ObjC selector (or a SQLMethod which =20
executes SQL or a PythonMethod etc etc).

> Packaging everything depending on URLs is cool, but not very =20
> intuitive to use in other client side implementations.

Reread my initial response. You don't need to use URLs, you can also =20
use XML-RPC namespaces. Processing is exactly the same. Either use

   server =3D Server("http://host/MyApp")
   server.events.deleteEvent(12345)
or use
   server =3D Server("http://host/MyApp/so/events")
   server.deleteEvent(12345)

Its your choice. For the app developer it doesn't matter.

> In python's xmlrpclib module, you need different server objects for =20=

> different URLs.

No, you don't.

>> A bit more obscure is the ability to address individual objects =20
>> with XML-RPC. But still quite cool IMHO.
> What do you mean?

Well, object oriented programming ;-) Say you have an event object =20
living at (mapped to):

   http://host/zidestore/so/helge/Calendars/12634

you can run XML-RPC "methods" on it. (XML-RPC "methods" are not =20
really methods but just functions, unless you map "self" to the URL ...)

Greets,
   Helge
--=20
http://docs.opengroupware.org/Members/helge/
OpenGroupware.org