[Bug 680] New: How do I render req.data["foo.bar"] as a macro?

View: New views
3 Messages — Rating Filter:   Alert me  

[Bug 680] New: How do I render req.data["foo.bar"] as a macro?

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=680

           Summary: How do I render req.data["foo.bar"] as a macro?
           Product: Helma
           Version: CVS trunk
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Web Support
        AssignedTo: helma-dev@...
        ReportedBy: interface@...


There are some APIs that require request parameters to be prefixed like
"foo.bar", e.g.

http://localhost/helma/api/?foo.bar=1&foo.foobar=2

Now I am looking a way to render such parameters in a skin:

   <% request.foo.bar %>

This, of course, does not work since bar is treated as a macro of foo.

   <% request.foo_bar %>

Sure, this actually renders a parameter called foo_bar.

   <% request[foo.bar] %>

Results in an [Unhandled macro: request[hub.url]]

Before I continue with trying too hilarious an idea, I’d rather pose the
question here.

And if there should be no possibility, yet, I am curious which one would be the
easiest to implement (if any).

Btw. the same problem arises e.g. with a call like renderSkin("main",
{"foo.bar": "Get me outta here!"});

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 680] How do I render req.data["foo.bar"] as a macro?

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=680


tobi <interface@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |1.7.0




--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 680] How do I render req.data["foo.bar"] as a macro?

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=680


Hannes Wallnoefer <hannes@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |hannes@...
         Resolution|                            |WONTFIX




--- Comment #1 from Hannes Wallnoefer <hannes@...>  2009-11-17 11:14:34 ---
I'm afraid there is no way to render parameters with dots in the name. The best
solution is probably to define some generic getter macro. Closing as wontfix.

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev