> All this leads me to a few questions that I think that we need to
> address.
> 1) What is a valid TopicName?  <- the formatter currently has a
> definition, but other parts of the engine don't know or care about it.
> 
> 2) Who owns this information? <- this one is tricky because of the
> Formatter's parsing. It has to have some sort of Regex definition it
> can use (right now)

I think these two are the same question. I think there needs to be *one*
place that defines what a legal TopicName is. I think it should be the
TopicName class. After all, if TopicName won't take it, then no one else
should. 

Obviously, the question "what constitutes a legal TopicName?" is different
from the question of "what does the Formatter turn into a hyperlink?" So
from that standpoint I think two pieces of code are warranted. Probably the
Formatter shouldn't create a link to a topic with an illegal name, so one
piece of code will likely use the other. 
 
> 3) What do we want the behavior to be when the user tries to create an
> topic with an invalid name. <-It currently takes the user to the edit
> page with the topic text forced to "this is a bad name" and no save
> button displayed.

That seems reasonable. It might be nicer to put it in a tooltip, though,
just to save someone the clickthrough. 
 
> 4) what should happen when the user tries to create a "bad" topic
> through the web service?

An error should be returned. Unfortunately, we have a major backward-compat
issue here in terms of, so probably the best we can do is to throw an
exception. 
 
> 5) Is there a difference between FW behavior in the case of a bad
> topic vs. a missing NameSpace?

So, the question of what a "missing" namespace is has one subtlety: there's
no way to tell the difference between a namespace that doesn't exist and one
you have no read access to. That's by design. But I think in general the
answer to your question is "yes, there is a difference". I'm not sure I can
quantify it, but it seems to me that trying to create a topic with a valid
name in a nonexistent namespace is somehow different from trying to create a
topic with an invalid name in an existing namespace. But maybe the fact that
I can't tell you what the difference is indicates that there really isn't
one. 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users

Reply via email to