#18289: Make graph display configurable
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.7
Component: graph theory | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers: Nathann Cohen
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vbraun/graph_preference | 40e6f7c6dadf251d92e67ed980cae7b575c9d1b8
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by vbraun):
The `DisplayPreferences` right now does the following:
{{{
sage: prefs = DisplayPreferences()
sage: prefs.text = 'ascii_art' # dot-notation for tab completion
sage: prefs # nice output
Display preferences:
* graphics is not specified
* text = ascii_art
sage: prefs.text? # help documents setting and lists allowed
values
sage: prefs.text = 'foo' # validates
Traceback (most recent call last)
...
ValueError: value must be unset (None) or one of ('plain', 'ascii_art',
'latex'), got foo
}}}
What is IMHO missing is a nice syntax to declare your own preferences and
validation for anything that is not a choice out of a finite list of
strings. I'd rather have tab-completion and built-in help with `?` than
dictionary notation.
--
Ticket URL: <http://trac.sagemath.org/ticket/18289#comment:90>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.