Hey Roja, 2008/12/1 roja <[EMAIL PROTECTED]>: > Quick question... > > i am making use of internalPathChanged to identify when someone > comes in from an unusual path however it appears to be called twice i.e. > > http://0.0.0.0:8080/#/cheese/ > > [2008-Dec-01 12:38:07.623266] 8498 [/ d5dwPDyL5BzmMD1h] [path] "/cheese" > [2008-Dec-01 12:38:07.654451] 8498 [/ d5dwPDyL5BzmMD1h] [path] "/cheese/" > > The log is generated from calling: > > log("path") << internalPath(); > > within the function connected to internalPathChanged. Now ignoring this > is trivial... i currently just do: > > if (!boost::iends_with(internalPath(), "/")) > return;
See my explanation here: http://thread.gmane.org/gmane.comp.web.witty.general/1836/focus=1837 > which ignores all path changes that don't end in a slash, however this > seems a little bit dirty plus without understanding the mechanism which > causes it i can't be confident that the solution is a valid one... As you will see from the other discussion, there are indeed some (and in my opinion), too many subtleties with this API. Regards, koen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
