I was more concerned with the use case where more having than one app on
the page was trampling command history. In that scenario canvas.id must
be unique. The rest of the time it seems you'd want as much command
history as possible to persist, so having canvas.id be the same across
apps/sessions is a good thing. It sounds like appuid may be a little
too specific in this case...
Regards,
Max Carlson
OpenLaszlo.org
On 4/1/10 6:37 AM, Henry Minsky wrote:
It does work for me, but I'm confused how 'canvas.id <http://canvas.id>'
is unique, it always seems to be the string
'lzapp' no matter what app I look in. I guess the persistent object keys
off of the URL internally
already, so it will be doing the right thing by retrieving data for this
URL.
note:
I see that the debug console gets passed a "appuid" from the server,
which looks like a unique number, but it looks like we're
not passing that into the app, and that would not be the right key for
persistent data anyway
because we want it to be the same value for the same app URL, even if
the page gets reloaded.
I think at one point I was going
to use that appuid as the 'rendevouz' for the LocalConnection when you
run the debugger in
'console remote' mode, so that that specific debug console would be
matched to the specific instance
of the app page that it was generated for, so you could in theory use
the remote debugger to debug two instances of the same app at the same
time. But for now it just uses the app URL.
On Wed, Mar 31, 2010 at 2:01 PM, Max Carlson <[email protected]
<mailto:[email protected]>> wrote:
Change 20100331-maxcarlson-f by maxcarl...@bank on 2010-03-31
10:58:51 PDT
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Turn on debugger command history, restrict based on app ID
Bugs Fixed: LPP-8868 - Debugger command history not working in swf9/10
Technical Reviewer: hminsky
QA Reviewer: ptw
Details: Default persist to true, use app ID as part of persist
object ID, to keep separate app contexts from trampling each other.
Tests: Command history now works in swf9/10
Files:
M lps/components/debugger/debugger.lzx
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20100331-maxcarlson-f.tar
--
Henry Minsky
Software Architect
[email protected] <mailto:[email protected]>