Ugh, sorry about that Edwin, it was my bad--the code I added to allow
RegExps to be used as noun-types caused the error you got.  I wish I
could give you your 2 hours back. :(

Next best thing though is that I've fixed the bug in the "graceful
degradation" way Blair suggested, so using "takes: {}" will have the
same effect as not specifying "takes" at all:

  https://ubiquity.mozilla.com/trac/ticket/634

- Atul

On Apr 2, 4:00 am, Blair McBride <[email protected]> wrote:
> Yes... but it still shouldn't throw like it does. The exception should
> at least be useful (or even better, degrade gracefully).
>
> - Blair
>
> On 2/04/2009 5:51 PM, satyr wrote:
>
>
>
> > The relevant part of CreateCommand's document:
>
> >   {{{ options.takes }}} Defines the primary argument of the command,
> >   a.k.a. the direct-object of the verb.  A dictionary object with a
> >   single property.  The name of the property will be the display name
> >   of the primary argument.  The value of the property must be either a
> >   noun type (see
> >  https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.1_Nountypes_Reference
> >   ) which defines what type of values are valid for the argument, or
> >   a regular expression that filters what the argument can consist of.
>
> > Since it explicitly says "A dictionary object with a single property",
> > `takes:{}' seems invalid.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to