Definition at line 98 of file main.py.
◆ encodeHeader()
def main.Article.encodeHeader |
( |
|
self | ) |
|
Definition at line 117 of file main.py.
117 def encodeHeader(self):
118
120 enc.writeString(self.key().
name())
121 enc.writeString(
unescape(self.title))
122 enc.writeString(self.srcurl)
123 enc.writeBool(self.thumbnail is not None)
124 enc.writeString(self.author)
125 enc.writeInt(self.date)
126 enc.writeString(
unescape(self.snippet))
127 return enc.getRaw()
128
129
DEF_SWITCHES_START aot vmservice shared library name
◆ ensureThumbnail()
def main.Article.ensureThumbnail |
( |
|
self | ) |
|
Definition at line 110 of file main.py.
110 def ensureThumbnail(self):
111
112 if self.thumbnailSize != str(THUMB_SIZE):
114 self.thumbnailSize = str(THUMB_SIZE)
115 self.put()
116
◆ author
main.Article.author = db.TextProperty() |
|
static |
◆ content
main.Article.content = db.TextProperty() |
|
static |
◆ date
main.Article.date = db.IntegerProperty() |
|
static |
◆ feed
main.Article.feed = db.ReferenceProperty(Feed) |
|
static |
◆ snippet
main.Article.snippet = db.TextProperty() |
|
static |
◆ srcurl
main.Article.srcurl = db.TextProperty() |
|
static |
◆ thumbnail
main.Article.thumbnail = db.BlobProperty() |
|
static |
◆ thumbnailSize
main.Article.thumbnailSize = db.TextProperty() |
|
static |
◆ title
main.Article.title = db.TextProperty() |
|
static |
The documentation for this class was generated from the following file:
- third_party/dart-lang/sdk/pkg/compiler/test/codesize/swarm/appengine/main.py