https://bugzilla.wikimedia.org/show_bug.cgi?id=44057

       Web browser: ---
            Bug ID: 44057
           Summary: Content interface should specify a validate() method
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: ContentHandler
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Via Wikitech-l:

On Sunday, January 13, 2013 at 4:36 AM, Daniel Kinzler wrote:

> On 13.01.2013 01:35, Ori Livneh wrote:

> > * The way validation is handled is a bit mysterious. Content defines
> > an isValid interface and (if I recall correctly) a return value of
> > false would prevent the content from getting saved. But in such
> > cases you want a helpful error.

> You are right, it would be better to have a validate() method that
> returns a Status object. isValid() could then just call that and return
> $status->isOK(), for compatibility. If you like, file a bug for that -
> or just write it :)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to