This patch set adds a classmethod create to Content. http://codereview.appspot.com/6458084/diff/1/MoinMoin/items/_tests/test_Content.py File MoinMoin/items/_tests/test_Content.py (left): http://codereview.appspot.com/6458084/diff/1/MoinMoin/items/_tests/test_Content.py#oldcode30 MoinMoin/items/_tests/test_Content.py:30: ...
12 years, 4 months ago
(2012-08-06 03:08:25 UTC)
#1
This patch set adds a classmethod create to Content.
http://codereview.appspot.com/6458084/diff/1/MoinMoin/items/_tests/test_Conte...
File MoinMoin/items/_tests/test_Content.py (left):
http://codereview.appspot.com/6458084/diff/1/MoinMoin/items/_tests/test_Conte...
MoinMoin/items/_tests/test_Content.py:30: # only.
I removed this comment since even when testing content only, it's better to say
Item.create(name).content.
Content constantly relies on an associated Item instance (self.item of Content)
to perform actions, Thus a Content created with
Content.create(contenttype='foobar', item=None), (item=None being default
arguement value) is quite restricted.
Issue 6458084: Content.create
(Closed)
Created 12 years, 4 months ago by xiaq
Modified 12 years, 4 months ago
Reviewers: thomas.j.waldmann_googlemail.com, Reimar Bauer
Base URL:
Comments: 2