Flutter Engine
The Flutter Engine
|
Classes | |
class | AllFeedsCollector |
class | Article |
class | DataHandler |
class | Feed |
class | FeedCollector |
class | HtmlFile |
class | MainHandler |
class | OAuthHandler |
class | Section |
class | SetDefaultFeeds |
class | SetTestFeeds |
class | TopHandler |
class | UpdateHtml |
class | UploadFeed |
class | UserData |
class | UserLoginHandler |
Functions | |
findSectionByTitle (title) | |
collectFeed (feed, data, continuation=None) | |
collectArticle (feed, data) | |
unescape (html) | |
getFeedIcon (url) | |
findImage (text) | |
findImgTag (text, extensions) | |
findVideoTag (text) | |
makeThumbnail (text) | |
generateThumbnail (url) | |
main () | |
Main (root_directory) | |
GetAllFilepaths (root_directory) | |
ReportWarning (text) | |
ReportError (text) | |
ReadFileIntoString (filepath) | |
WriteStringToFile (string, filepath) | |
ConfirmAllowedCopyrightHolder (holder) | |
Variables | |
tuple | THUMB_SIZE = (57, 57) |
str | READER_API = 'http://www.google.com/reader/api/0' |
int | MAX_SECTIONS = 5 |
int | MAX_ARTICLES = 20 |
int | UPDATE_COUNT = 4 |
int | INITIAL_COUNT = 40 |
int | SNIPPET_SIZE = 180 |
list | ALLOWED_COPYRIGHT_HOLDERS |
Copyright 2011 Google Inc. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
main.collectArticle | ( | feed, | |
data | |||
) |
Reads an article from the given JSON object and populates the datastore with it.
Definition at line 614 of file main.py.
main.collectFeed | ( | feed, | |
data, | |||
continuation = None |
|||
) |
Reads a feed from the given JSON object and populates the given feed object in the datastore with its data.
Definition at line 585 of file main.py.
main.ConfirmAllowedCopyrightHolder | ( | holder | ) |
Returns True if this is one of our allowed copyright holders. @param holder copyright holder as a string
Definition at line 108 of file main.py.
main.findImage | ( | text | ) |
main.findImgTag | ( | text, | |
extensions | |||
) |
main.findSectionByTitle | ( | title | ) |
main.findVideoTag | ( | text | ) |
main.generateThumbnail | ( | url | ) |
Definition at line 712 of file main.py.
main.GetAllFilepaths | ( | root_directory | ) |
Return a list of all files (absolute path for each one) within a tree. @param root_directory root directory within which to find all files
Definition at line 68 of file main.py.
main.getFeedIcon | ( | url | ) |
main.main | ( | ) |
Definition at line 758 of file main.py.
main.Main | ( | root_directory | ) |
Run everything. @param root_directory root directory within which to modify all files
Definition at line 33 of file main.py.
main.makeThumbnail | ( | text | ) |
main.ReadFileIntoString | ( | filepath | ) |
main.ReportError | ( | text | ) |
main.ReportWarning | ( | text | ) |
main.unescape | ( | html | ) |
Definition at line 658 of file main.py.
main.WriteStringToFile | ( | string, | |
filepath | |||
) |
list main.ALLOWED_COPYRIGHT_HOLDERS |