|
@@ -150,10 +150,10 @@ lang() -> ?CTX#cx.lang.
|
|
|
|
|
|
% Cookies
|
|
|
|
|
|
-cookies() -> n2o_cx:cookies().
|
|
|
+cookies() -> n4u_cx:cookies().
|
|
|
cookie(Name) -> lists:keyfind(Name,1,cookies()).
|
|
|
cookie(Name,Value) -> cookie(Name,Value,"/", 24 * 60 * 60).
|
|
|
-cookie(Name,Value,Path,TTL) -> n2o_cx:add_cookie(Name,Value,Path,TTL).
|
|
|
+cookie(Name,Value,Path,TTL) -> n4u_cx:add_cookie(Name,Value,Path,TTL).
|
|
|
|
|
|
% Bridge Information
|
|
|
|
|
@@ -251,17 +251,17 @@ temp_id() -> "auto" ++ integer_to_list(unique_integer() rem 1000000).
|
|
|
append(List, Key, Value) -> case Value of undefined -> List; _A -> [{Key, Value}|List] end.
|
|
|
render(X) -> wf_render:render(X).
|
|
|
|
|
|
-init_context(R)-> n2o_cx:init_context(R).
|
|
|
-actions() -> n2o_cx:actions().
|
|
|
-actions(Ac) -> n2o_cx:actions(Ac).
|
|
|
-script() -> n2o_cx:script().
|
|
|
-script(Script) -> n2o_cx:script(Script).
|
|
|
-context() -> n2o_cx:context().
|
|
|
-context(Cx) -> n2o_cx:context(Cx).
|
|
|
-context(Cx,Proto) -> n2o_cx:context(Cx,Proto).
|
|
|
-context(Cx,Proto,UserCx) -> n2o_cx:context(Cx,Proto,UserCx).
|
|
|
-add_action(Action) -> n2o_cx:add_action(Action).
|
|
|
-fold(Fun,Handlers,Ctx) -> n2o_cx:fold(Fun,Handlers,Ctx).
|
|
|
+init_context(R)-> n4u_cx:init_context(R).
|
|
|
+actions() -> get(actions).
|
|
|
+actions(Ac) -> put(actions, Ac).
|
|
|
+script() -> get(script).
|
|
|
+script(Script) -> put(script, Script).
|
|
|
+context() -> get(context).
|
|
|
+context(Cx) -> put(context, Cx).
|
|
|
+context(Cx,Proto) -> n4u_cx:context(Cx, Proto).
|
|
|
+context(Cx,Proto,UserCx) -> n4u_cx:context(Cx, Proto, UserCx).
|
|
|
+add_action(Action) -> n4u_cx:add_action(Action).
|
|
|
+fold(Fun,Handlers,Ctx) -> n4u_cx:fold(Fun,Handlers,Ctx).
|
|
|
|
|
|
config_multiple(Keys) -> [config(Key, "") || Key <- Keys].
|
|
|
config(Key) -> config(n4u, Key, "").
|