Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Attributes | List of all members
main.Section Class Reference
Inheritance diagram for main.Section:

Public Member Functions

def fixedTitle (self)
 
def encode (self, enc, articleKeys=None)
 

Static Public Attributes

 title = db.TextProperty()
 
 feeds = db.ListProperty(db.Key)
 

Detailed Description

Definition at line 45 of file main.py.

Member Function Documentation

◆ encode()

def main.Section.encode (   self,
  enc,
  articleKeys = None 
)

Definition at line 52 of file main.py.

52 def encode(self, enc, articleKeys=None):
53 # TODO(jimhug): Need to optimize format and support incremental updates.
54 enc.writeString(self.key().name())
55 enc.writeString(self.fixedTitle())
56 enc.writeInt(len(self.feeds))
57 for feed in db.get(self.feeds):
58 feed.ensureEncodedFeed()
59 enc.writeRaw(feed.encodedFeed3)
60 if articleKeys is not None:
61 articleKeys.extend(feed.topArticles)
62
63
static void encode(uint8_t output[16], const uint32_t input[4])
Definition: SkMD5.cpp:240
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

◆ fixedTitle()

def main.Section.fixedTitle (   self)

Definition at line 49 of file main.py.

49 def fixedTitle(self):
50 return self.title.split('_')[0]
51

Member Data Documentation

◆ feeds

main.Section.feeds = db.ListProperty(db.Key)
static

Definition at line 47 of file main.py.

◆ title

main.Section.title = db.TextProperty()
static

Definition at line 46 of file main.py.


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