-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raise an error if function name is blank for New Plugin Model (Trac #770) #884
Comments
Trac update at The same issue applies to the Sum|Multi case too. |
Trac update at
Don't understand how starting out with a blank function name helps any though? Wouldn't it be better to test for an empty string? |
Trac update at |
Trac update at Indeed it would be better to start with a predefined (default) name - the less the user has to add/modify the more "friendly" the control is, I guess. |
Trac update at
|
Trac update at Do we need to worry about the backend? Will sasmodels catch attempts to pass ".py"? |
Trac update at In changeset ad1ac45:
|
Trac update at Replying to [comment:4 piotr]:
Reasons to leave the initial name blank:
Even if we do stay with a default name, the name "!MyFunction" does not match the underscore naming style of the new models. ^*^Override is currently True, which is bad since it can destroy the previously created model. The default was changed to from False in response to the error on "Apply" when the model was incorrect; it should be change back to False to avoid accidental deletion of models. |
Trac update at I tend to side with PaulK that NOT providing a name is best. But I think the issue here is that we don't provide any way from this window (or the Sum|Multi window) for the user to see what names are already in use - think how a normal load/save dialog box works. If we could let them see what was already there then PaulK's concern about my changing the default action of overwrite is also mitigated. But I found it, during testing, profoundly annoying that every little coding slip up required me to give a new model name until I understood what the overwrite box did. In which case, if you're providing an overwrite capability I don't see why you wouldn't enable it... |
Trac update at
In changeset 94f0873:
|
There is no error if the new plugin model name is blank, but the resulting function won't show up in the list of custom models.
Default the name to blank so that the user is required to provide a meaningful name.
Migrated from http://trac.sasview.org/ticket/770
The text was updated successfully, but these errors were encountered: