GNUnet 0.22.1
httpdomain.autohttp.flaskqref.QuickReferenceFlaskDirective Class Reference
Inheritance diagram for httpdomain.autohttp.flaskqref.QuickReferenceFlaskDirective:
[legend]
Collaboration diagram for httpdomain.autohttp.flaskqref.QuickReferenceFlaskDirective:
[legend]

Public Member Functions

def run (self)
 
def run (self)
 
- Public Member Functions inherited from httpdomain.autohttp.flask_base.AutoflaskBase
def endpoints (self)
 
def undoc_endpoints (self)
 
def blueprints (self)
 
def undoc_blueprints (self)
 
def modules (self)
 
def undoc_modules (self)
 
def order (self)
 
def make_rst (self, qref=False)
 
def endpoints (self)
 
def undoc_endpoints (self)
 
def blueprints (self)
 
def undoc_blueprints (self)
 
def modules (self)
 
def undoc_modules (self)
 
def order (self)
 
def make_rst (self, qref=False)
 

Static Public Attributes

list header
 
- Static Public Attributes inherited from httpdomain.autohttp.flask_base.AutoflaskBase
bool has_content = True
 
int required_arguments = 1
 
dictionary option_spec
 

Detailed Description

Definition at line 23 of file flaskqref.py.

Member Function Documentation

◆ run() [1/2]

def httpdomain.autohttp.flaskqref.QuickReferenceFlaskDirective.run (   self)

Definition at line 36 of file flaskqref.py.

36 def run(self):
37 node = nodes.section()
38 node.document = self.state.document
39 result = ViewList()
40 for line in QuickReferenceFlaskDirective.header:
41 result.append(line, '<qrefflask>')
42 table={}
43 table_sorted_names=[]
44
45 for table_row in self.make_rst(qref=True):
46 name = table_row['name']
47 if table.get(name) is None:
48 table[name]=[]
49 table[name].append(table_row)
50 if name not in table_sorted_names:
51 table_sorted_names.append(name)
52
53 table_sorted_names.sort()
54
55 for name in table_sorted_names:
56 # Keep table display clean by not repeating duplicate
57 # resource names and descriptions
58 display_name = name
59 previous_description=None
60 for row in table[name]:
61 result.append(' * - %s' % display_name, '<qrefflask>')
62 display_name =""
63 result.append(row['operation'], '<qrefflask>')
64 description = row['description']
65 if previous_description is not None and previous_description == description:
66 description =""
67 else:
68 previous_description = description
69
70 result.append(' - %s' % description, '<qrefflask>')
71
72 result.append('', '<qrefflask>')
73 nested_parse_with_titles(self.state, result, node)
74 return node.children
75
static void run(void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *c)
Main function that will be run by the scheduler.
Definition: gnunet-arm.c:916

References httpdomain.autohttp.bottle.AutobottleDirective.make_rst(), httpdomain.autohttp.tornado.AutoTornadoDirective.make_rst(), httpdomain.autohttp.flask_base.AutoflaskBase.make_rst(), GNUNET_CONVERSATION_Caller.state, GNUNET_CONVERSATION_Phone.state, GNUNET_CONVERSATION_Call.state, Operation.state, Set.state, CadetChannel.state, CadetConnection.state, MonitorNotifyMessage.state, GNUNET_FS_UnindexContext.state, DownloadRequest.state, Socks5Request.state, GNUNET_MESSENGER_SrvRoom.state, GNUNET_MESSENGER_SrvTunnel.state, MhdConnectionHandle.state, OIDC_Variables.state, MonitoredPeer.state, and PeerResolutionContext.state.

Here is the call graph for this function:

◆ run() [2/2]

def httpdomain.autohttp.flaskqref.QuickReferenceFlaskDirective.run (   self)

Definition at line 36 of file flaskqref.py.

36 def run(self):
37 node = nodes.section()
38 node.document = self.state.document
39 result = ViewList()
40 for line in QuickReferenceFlaskDirective.header:
41 result.append(line, '<qrefflask>')
42 table={}
43 table_sorted_names=[]
44
45 for table_row in self.make_rst(qref=True):
46 name = table_row['name']
47 if table.get(name) is None:
48 table[name]=[]
49 table[name].append(table_row)
50 if name not in table_sorted_names:
51 table_sorted_names.append(name)
52
53 table_sorted_names.sort()
54
55 for name in table_sorted_names:
56 # Keep table display clean by not repeating duplicate
57 # resource names and descriptions
58 display_name = name
59 previous_description=None
60 for row in table[name]:
61 result.append(' * - %s' % display_name, '<qrefflask>')
62 display_name =""
63 result.append(row['operation'], '<qrefflask>')
64 description = row['description']
65 if previous_description is not None and previous_description == description:
66 description =""
67 else:
68 previous_description = description
69
70 result.append(' - %s' % description, '<qrefflask>')
71
72 result.append('', '<qrefflask>')
73 nested_parse_with_titles(self.state, result, node)
74 return node.children
75

References httpdomain.autohttp.bottle.AutobottleDirective.make_rst(), httpdomain.autohttp.tornado.AutoTornadoDirective.make_rst(), httpdomain.autohttp.flask_base.AutoflaskBase.make_rst(), GNUNET_CONVERSATION_Caller.state, GNUNET_CONVERSATION_Phone.state, GNUNET_CONVERSATION_Call.state, Operation.state, Set.state, CadetChannel.state, CadetConnection.state, MonitorNotifyMessage.state, GNUNET_FS_UnindexContext.state, DownloadRequest.state, Socks5Request.state, GNUNET_MESSENGER_SrvRoom.state, GNUNET_MESSENGER_SrvTunnel.state, MhdConnectionHandle.state, OIDC_Variables.state, MonitoredPeer.state, and PeerResolutionContext.state.

Here is the call graph for this function:

Field Documentation

◆ header

list httpdomain.autohttp.flaskqref.QuickReferenceFlaskDirective.header
static
Initial value:
= [ '',
'.. list-table::',
' :widths: 20 45 35',
' :header-rows: 1',
'',
' * - Resource',
' - Operation',
' - Description'
]

Definition at line 26 of file flaskqref.py.


The documentation for this class was generated from the following files: