mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 07:19:25 -05:00
Make _defaults dicts more diffable
This commit is contained in:
committed by
Logan Hanks
parent
38eef5483e
commit
8b1911d09b
@@ -579,9 +579,11 @@ class PromotedLink(Link):
|
||||
|
||||
class Comment(Thing, Printable):
|
||||
_data_int_props = Thing._data_int_props + ('reported',)
|
||||
_defaults = dict(reported = 0, parent_id = None,
|
||||
moderator_banned = False, new = False,
|
||||
banned_before_moderator = False)
|
||||
_defaults = dict(reported=0,
|
||||
parent_id=None,
|
||||
moderator_banned=False,
|
||||
new=False,
|
||||
banned_before_moderator=False)
|
||||
_essentials = ('link_id', 'author_id')
|
||||
|
||||
def _markdown(self):
|
||||
@@ -924,9 +926,16 @@ class MoreChildren(MoreComments):
|
||||
pass
|
||||
|
||||
class Message(Thing, Printable):
|
||||
_defaults = dict(reported=0, was_comment=False, parent_id=None, new=False,
|
||||
first_message=None, to_id=None, sr_id=None,
|
||||
to_collapse=None, author_collapse=None, from_sr=False)
|
||||
_defaults = dict(reported=0,
|
||||
was_comment=False,
|
||||
parent_id=None,
|
||||
new=False,
|
||||
first_message=None,
|
||||
to_id=None,
|
||||
sr_id=None,
|
||||
to_collapse=None,
|
||||
author_collapse=None,
|
||||
from_sr=False)
|
||||
_data_int_props = Thing._data_int_props + ('reported', )
|
||||
_essentials = ('author_id',)
|
||||
cache_ignore = set(["to", "subreddit"]).union(Printable.cache_ignore)
|
||||
|
||||
Reference in New Issue
Block a user