Warning: session_start(): open(/var/lib/php/sessions/sess_vtvev975dm5g1apnr1q75okmr4, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
static L webs;
p {
makeForm(allWebsFromCE(), "an email");
}
svoid makeForm(L webs, S what) {
new L form;
printWeb(first(webs));
print("Looking for: " + what);
for (S thing : webs_findNodeAndRelationB(webs, what, "has")) {
S whichIs = first(webs_findNodeAndRelationB(webs, thing, "which is"));
S renderAs = first(webs_findNodeAndRelationB(webs, whichIs, "render as"));
S function = first(webs_findNodeAndRelationB(webs, renderAs, "made by function"));
print(thing + " (" + whichIs + ") -> " + renderAs + " -> " + function);
if (function != null)
addAll(form, thing, makeAndCall(function));
}
form.add(func { infoBox("Hello world!"); false; });
showForm(asObjectArray(form));
}