~ubuntu-branches/ubuntu/raring/sflphone/raring

« back to all changes in this revision

Viewing changes to daemon/doc/dbus-api/doc/templates/fullindex.html

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2011-11-25 13:24:12 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20111125132412-dc4qvhyosk74cd42
Tags: 1.0.1-4
Don't assume that arch:all packages will get built (closes: #649726)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#from itertools import groupby
 
2
<?xml version="1.0" encoding="utf-8"?>
 
3
<!DOCTYPE html PUBLIC "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" "">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 
5
 <head>
 
6
  <title>Full Index</title>
 
7
  <link rel="stylesheet" href="style.css" type="text/css"/>
 
8
 </head>
 
9
 
 
10
#set $star = []
 
11
#for $item in $spec.everything.values() + $spec.errors.values() + $spec.generic_types
 
12
 #echo $star.append(($item.short_name, $item))
 
13
 #slurp
 
14
#end for
 
15
#echo $star.sort(key = lambda t: t[0].title())
 
16
#slurp
 
17
## one use iterators...
 
18
#set $groups = [ (l, list(g)) for l, g in (groupby($star, key = lambda t: t[0][0].upper())) ]
 
19
#set $letters = set(map(lambda t: t[0], groups))
 
20
 
 
21
 <body>
 
22
  <div class="header">
 
23
   <h1>Full Index</h1>
 
24
   <a href="index.html">Interface Index</a>
 
25
   (<a href="interfaces.html">Compact</a>)
 
26
   #for $a in map(chr, xrange(ord('A'), ord('Z')+1))
 
27
    #if $a in $letters
 
28
     | <a href="#$a">$a</a>
 
29
    #else
 
30
     | $a
 
31
    #end if
 
32
   #end for
 
33
  </div>
 
34
 
 
35
  <div class="main">
 
36
   <table class="summary">
 
37
   #for l, g in $groups
 
38
    <tr><th colspan="3"><a name="$l"></a>$l</th></tr>
 
39
    #for $n in $g
 
40
     #if $n[1].deprecated
 
41
      <tr class="deprecated">
 
42
     #else
 
43
      <tr>
 
44
     #end if
 
45
      <td>
 
46
       <a href="$n[1].get_url()" title="$n[1].get_title()">$n[0]</a>
 
47
       #if $n[1].deprecated: (deprecated)
 
48
      </td>
 
49
      <td>$n[1].get_type_name()</td>
 
50
      <td>
 
51
       #if $n[1].parent.__class__.__name__ == 'Interface': $n[1].parent.name
 
52
      </td>
 
53
     </tr>
 
54
    #end for
 
55
   #end for
 
56
   <table>
 
57
  </div>
 
58
 
 
59
 </body>
 
60
</html>