The problem we have is we deliberately decided not to do any validation
on the scopes API side and leave it up to the unity (even the shell
plugin doesn't care much about what's inside the preview widgets).

The downside is in many cases scope author is clueless if widget doesn't
show up or look as expected.

On the upside, support for new widgets can be added to the shell or
existing widgets can be enhanced to support new attributes without
affecting the lower layers.

Now, the problem of not having a clue as a scope author if something
goes wrong is and important issue, so perhaps we should look for a
middle ground. How about adding a simple validation and only output cerr
warnings if we see something we don't know (and never throw, unless we
find cases where we really know thw widget is totally broken)?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381891

Title:
  Setting invalid widget attribute does not raise exception

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1381891/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to