예제 #1
0
 def __init__(self):
     super().__init__()
     self.caption = params.POSTDataParam('caption', False, str)
     self.link = params.POSTDataParam('link', False, str)
     self.source = params.POSTDataParam('source', False, str)
     self.data = params.POSTDataParam('data',
                                      False,
                                      list,
                                      getter_lambda=lambda x: ','.join(x))
     self.data64 = params.POSTDataParam('data', False, str)
예제 #2
0
 def __init__(self):
     super().__init__()
     self.title = params.POSTDataParam('title', False, str)
     self.url = params.POSTDataParam('url', True, str)
     self.description = params.POSTDataParam('description', False, str)
     self.thumbnail = params.POSTDataParam('thumbnail', False, str)
     self.excerpt = params.POSTDataParam('excerpt', False, str)
     self.author = params.POSTDataParam('author', False, str)
예제 #3
0
 def __init__(self):
     super().__init__()
     self.post_type = params.POSTDataParam('type', False, str)
     self.state = params.POSTDataParam('state', False, str)
     self.tags = params.POSTDataParam('tags',
                                      False,
                                      list,
                                      getter_lambda=lambda x: ','.join(x))
     self.tweet = params.POSTDataParam('tweet', False, str)
     self.date = params.POSTDataParam(
         'date',
         False,
         datetime,
         getter_lambda=lambda x: x.strftime('%Y-%m-%d %H:%M:%S'))
     self.post_format = params.POSTDataParam('format', False, str, str)
     self.slug = params.POSTDataParam('slug', False, str)
     self.native_inline_images = params.POSTDataParam(
         'native_inline_images',
         False,
         bool,
         getter_lambda=lambda x: 'true' if x else 'false')
예제 #4
0
 def __init__(self):
     super().__init__()
     self.post_id = params.POSTDataParam('id', True, str)
     self.reblog_key = params.POSTDataParam('reblog_key', True, str)
예제 #5
0
 def __init__(self):
     super().__init__()
     self.url = params.POSTDataParam('url', True, str)
예제 #6
0
 def __init__(self):
     super().__init__()
     self.post_id = params.POSTDataParam('id', True, int)
예제 #7
0
 def __init__(self):
     super().__init__()
     self.caption = params.POSTDataParam('caption', False, str)
     self.embed = params.POSTDataParam('embed', False, str)
     self.data = params.POSTDataParam('data', False, str)
예제 #8
0
 def __init__(self):
     super().__init__()
     self.title = params.POSTDataParam('title', False, str)
     self.conversation = params.POSTDataParam('conversation', True, str)
예제 #9
0
 def __init__(self):
     super().__init__()
     self.quote = params.POSTDataParam('quote', True, str)
     self.source = params.POSTDataParam('source', False, str)
예제 #10
0
 def __init__(self):
     super().__init__()
     self.title = params.POSTDataParam('title', False, str)
     self.body = params.POSTDataParam('body', True, str)