summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2011-11-10specparser: complain if tp:mapping's specified type is a lieJonny Lamb1-0/+7
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-08-26specparser: when errant text is encountered, print itWill Thompson1-2/+2
It's impossible to figure out where the offending unguarded text is if you don't get told what the text *is*. :)
2011-08-26specparser: warn on encountering old-style propsWill Thompson1-0/+8
2011-08-25specparser: tidy up getting EmitsChangedSignal annotationWill Thompson1-21/+39
I think this is neater; it also adds a nice warning that would have caught a mistake I made.
2011-07-19Merge branch 'call'David Laban1-0/+31
For full discussion, see bugs.fd.o#38986 and the whiteboard string "Call" on bugs.fd.o. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Reviewed-by: Olivier CrĂȘte <olivier.crete@collabora.co.uk>
2011-07-14Make tp:value-ref's type attribute optionalDavid Laban1-9/+22
* Also: don't ever rewrite the node's text. This means: * If you want the long-form, use: <tp:value-ref>Type_Name_Value</tp:value-ref> * If you want the short form, use: <tp:value-ref type="Type_Name">Value</tp:value-ref> This changes the html output of all current value-refs to use the short form.
2011-07-14<tp:value-ref> for semantic enumvalues.David Laban1-0/+18
This should ensure that our enum value names don't go out of sync with the references to them. Note that the links don't *quite* go to the actual value, but it should be within view once the link is clicked. This is not a regression.
2011-06-23Add a favicon to the generated HTML spec (#38594)Guillaume Desmottes1-0/+1
2010-12-16Make the generation of the generic-types and errors pages dependent onAlex Merry1-2/+4
there being content for them.
2010-12-15Make some of the specparser.py logic clearer.Alex Merry1-6/+7
Also, PEPify constant assignment
2010-12-14Move some HTML from specparser.py into the templateAlex Merry1-26/+0
See http://bugs.freedesktop.org/show_bug.cgi?id=32353#c1
2010-12-14Minor specparser.py changes in annotation support.Alex Merry1-6/+6
See http://bugs.freedesktop.org/show_bug.cgi?id=32353#c1
2010-12-13Make a note of annotations when parsing the spec.Alex Merry1-2/+79
2010-12-13specparser: allow <annotation>s on interfaces.Alex Merry1-0/+1
Annotations are valid for interfaces. Specifically, they are inherited by methods, properties and signals. Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
2010-12-03Produce two devhelp index entries for each symbolSimon McVittie1-1/+14
The first is what we always used to produce, and contains the full name. The second is inspired by Python's documentation index, e.g. "gethostname() (in module socket)", and *starts* with the name of the symbol itself. Some examples include: Interface org....Connection.Interface.Contacts Connection.Interface.Contacts (Interface in org....) Mapping String_Variant_Map String_Variant_Map (Mapping in org...) Property org...StorageRestrictions StorageRestrictions (Property in Account.Interface.Storage)
2010-12-01Add support for properties being sometimes-immutableSimon McVittie1-1/+4
2010-12-01Add a Base.get_anchor() method, to be used in HTML anchors.Danielle Madeley1-3/+8
Update get_url() to use get_anchor(). This removes the duplicate construction of anchors, once in the templates and once in the get_url() method and move it into one place. This allows us to easily change the way anchors are constructed for a given type. The way anchors are constructed has been changed to include the type name at the beginning, i.e. Type-Name:Short_Name, to prevent potential namespace collisions between client interests and capability tokens.
2010-12-01Make ClientInterest inherit from TokenBase, it's a token typeDanielle Madeley1-2/+8
Omit name attribute from tp:client-interest if the name is simply the interface name.
2010-11-30Add parser support for <tp:client-interest>Danielle Madeley1-12/+23
2010-11-18specparser: improve error for multiple <tp:added>sWill Thompson1-2/+3
2010-11-09Merge branch 'pruning'Simon McVittie2-62/+0
Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-11-09Remove generation of .name, .camel, .upper, .lower filesSimon McVittie1-11/+0
We haven't used these for a very long time.
2010-11-09Remove spec-to-introspect.xsl and its invocation and testsSimon McVittie1-51/+0
This was used for code generation in libtelepathy, a long time ago.
2010-11-05specparser: add markup for sometimes-requestable propertiesWill Thompson1-1/+5
2010-10-22specparser: add support for tp:xor-requiresJonny Lamb1-9/+23
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-13specparser: make power of two checking nicerJonny Lamb1-7/+2
What a neat trick! Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-13specparser: note which errors do make senseJonny Lamb1-1/+2
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-13specparser: use BadFlagsType, not UnsupportedArrayJonny Lamb1-1/+2
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-13specparser: complain when a bad tp:flag value is givenJonny Lamb1-0/+15
They should always be powers of two, so open up a can of whoop-ass when they're not. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-13specparser: complain when we get a tp:flags of type != "u"Jonny Lamb1-0/+4
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-13specparser: check for duplicate enum valuesJonny Lamb1-0/+16
AND LET THE BAD SPEC WRITER KNOW... Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-12interface: give a different message for channel propertiesJonny Lamb1-0/+2
So now we can use tp:immutable on non-channel properties and it won't talk about the channel being created and blah blah blah. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-11specparser: add an option to allow or disallow using the External classJonny Lamb2-4/+23
Make this option default to false though, as tp-spec doesn't need (or even want) it on. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-11specparser: don't hardcode the Telepathy error namespaceJonny Lamb1-1/+2
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-08Merge branch 'call'Jonny Lamb1-0/+17
2010-10-08specparser: add a tp:error-ref elementJonny Lamb1-0/+17
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-07specparser: add tp:immutable and tp:requestable attributesJonny Lamb1-0/+16
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-10-06specparser: warn on unknown elementsJonny Lamb1-0/+37
Call.Stream.Interface.Media had a tp:method for ages which of course wasn't picked up and didn't do anything. This patch will warn with unknown elements in interfaces. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-09-30List known DBus_Property parameters with well-known namesWill Thompson1-0/+29
2010-09-30Replace parseString() calls with createElement()Will Thompson1-11/+23
This seems cleaner... I'm not sure if it actually is, but hey.
2010-09-30specparser: keep Document object around.Will Thompson1-0/+2
We need the Document object to be able to cleanly create new elements.
2010-09-30specparser: Improve ofdT abbreviation handlingWill Thompson1-2/+3
Previously you could only abbreviate org.freedesktop.Telepathy to ofdT if you followed it with a period. So if you wanted to link to Account, you couldn't abbreviate. This patch allows namespace='ofdT'.
2010-09-30Add a tp:is-connection-parameter property annotationWill Thompson1-0/+3
We have an increasing number of standard connection properties which are also connection parameters with the DBus_Property flag. They all tend to have some copy-pasta blurb explaining that clients should basically ignore the property and frob the parameter on the Account instead; I think it's time to add some markup for this.
2010-09-30Genericise added/changed/deprecated CSSWill Thompson1-1/+1
2010-07-22fd.o #27393: specparser.Base._convert_to_html: interpret <tp:token-ref>Simon McVittie1-3/+36
Supported usages: <tp:token-ref>subscribe</tp:token-ref> <tp:token-ref namespace="ofdT.Connection">contact-id</tp:token-ref> <tp:token-ref namespace="ofdT.Connection.Interface">ContactList/contact-id</tp:token-ref> <tp:token-ref>org.freedesktop.Telepathy.Connection.Interface.ContactList/contact-id</tp:token-ref> Also fix double use of "namespace" with different scopes.
2010-07-14Give more context for broken referencesWill Thompson1-6/+8
2010-07-13The Office of the Federal Detention Trustee might complainWill Thompson1-1/+2
2010-07-13Add shorthand for namespace='org.freedesktop.Telepathy'Will Thompson1-0/+3
Seriously I have typed this too many times in my life.
2010-07-06Blow up if a spec contains nested rationales.Will Thompson1-0/+19
I just did this and couldn't understand what was going on.
2010-06-30Add expander triangles besides rationale headers.Will Thompson1-0/+1