[OGo-MacOSX] SOPEX Questions
Helge Hess
macosx@opengroupware.org
Mon, 24 Oct 2005 13:45:44 +0200
On Oct 24, 2005, at 3:24, Garry Watkins wrote:
> I finally got SOPEX up and running ok with debugging with Xcode 2.1.=A0=20=
> The problem was Xcode 2.2 PR(2-3).
:-)
> So everything is pretty good now, except within SOPEX when I try to=20
> debug something it is timing out before it finishes rendering, and=20
> then breaks the connection with the browser.=A0 I cannot reload the=20
> browser and have everything ok again.=A0 Is there some place that the=20=
> timeout can be set for a longer time frame?
There are two defaults which might be relevant:
WOHttpAdaptorReceiveTimeout (def 120)
WOHttpAdaptorSendTimeout (def 120)
I think the value is in seconds (2 minutes in this case).
But thinking about it, probably not. The browser is timinig out, not=20
the server, right?
One would need to search WebKit documentation to solve that.
> Second, javascript does not work in the SOPEX window.=A0 Any ideas how=20=
> this can be activated?
No, probably also a WebKit issue. I would have assumed that this works=20=
out of the box.
> As a workaround, is there a way to set it to use the same port each=20
> time that SOPEX starts?
Maybe the WOPort default works? (eg -WOPort 21021 as an argument) But=20
I'm not sure whether SOPE:X messes with that :-)
If you have generic SOPE questions now that it works on OSX they might=20=
be better placed on the developer list (more people can help with=20
non-OSX stuff :-)
> Finally, when using a WOConditional, where the condition is equal to a=20=
> string.
What do you mean by that? Something like this:
A: WOConditional {
condition =3D "true";
}
?
Or
A: WOConditional {
condition =3D bindingWhichReturnsAString;
}
?
> If the string is not null, shouldn't it return a true?
The boolValue of the string depends on its contents. 'true', 'YES', '1'=20=
etc will return YES, everything else 'no'.
With SOPE 4.5 you can use the "-isNotEmpty" or "-isNotNull" bindings,=20
eg:
HasLogin: WOConditional {
condition =3D account.login.isNotEmpty;
}
Another feature which is often handy is the 'value' binding:
IsRoot: WOConditional {
condition =3D account.login;
value =3D "root";
}
Greets,
Helge
--=20
http://docs.opengroupware.org/Members/helge/
OpenGroupware.org