def reply_post_1(request, participant2_user, discussion, root_post_1, test_session): """ From participant2_user, in reply to root_post_1 """ from assembl.models import Post, LangString p = Post(discussion=discussion, creator=participant2_user, subject=LangString.create(u"re1: root post"), body=LangString.create(u"post body"), creation_date=datetime(year=2000, month=1, day=4), type="post", message_id="*****@*****.**") test_session.add(p) test_session.flush() p.set_parent(root_post_1) test_session.flush() def fin(): print "finalizer reply_post_1" test_session.delete(p) test_session.flush() request.addfinalizer(fin) return p
def reply_post_1(request, participant2_user, discussion, root_post_1, test_session): """ From participant2_user, in reply to root_post_1 """ from assembl.models import Post, LangString p = Post( discussion=discussion, creator=participant2_user, subject=LangString.create(u"re1: root post"), body=LangString.create( u"post body with some text so we can test harvesting features. I'm writing a very topical comment with an unrelated source, hoping it would make people angry and make them write answers. I have read in '17O Solid-State NMR Spectroscopy of Functional Oxides for Energy Conversion' thesis by Halat, D. M. (2018) that variable-temperature spectra indicate the onset of oxide-ion motion involving the interstitials at 130 °C, which is linked to an orthorhombic−tetragonal phase transition. For the V-doped phases, an oxide-ion conduction mechanism is observed that involves oxygen exchange between the Bi-O sublattice and rapidly rotating VO4 tetrahedral units. The more poorly conducting P-doped phase exhibits only vacancy conduction with no evidence of sublattice exchange, a result ascribed to the differing propensities of the dopants to undergo variable oxygen coordination. So I think it would be a very bad idea to allow hot beverages in coworking spaces. But it looks like people don't really care about scientific evidence around here." ), creation_date=datetime(year=2000, month=1, day=4), type="post", message_id="*****@*****.**") test_session.add(p) test_session.flush() p.set_parent(root_post_1) test_session.flush() def fin(): print("finalizer reply_post_1") test_session.delete(p) test_session.flush() request.addfinalizer(fin) return p
def reply_deleted_post_4(request, participant2_user, discussion, reply_post_1, test_session): """ From participant2_user, in reply to reply_post_1 """ from assembl.models import Post, LangString, PublicationStates p = Post(discussion=discussion, creator=participant2_user, subject=LangString.create(u"re2: root post"), body=LangString.create(u"post body"), publication_state=PublicationStates.DELETED_BY_ADMIN, type="post", message_id="*****@*****.**") test_session.add(p) test_session.flush() p.set_parent(reply_post_1) test_session.flush() def fin(): print "finalizer reply_deleted_post_4" test_session.delete(p) test_session.flush() request.addfinalizer(fin) return p
def reply_post_3(request, participant2_user, discussion, root_post_1, test_session): """ From participant2_user, in reply to reply_post_2 """ from assembl.models import Post p = Post( discussion=discussion, creator=participant2_user, subject=u"re2: root post", body=u"post body", type="post", message_id="msg4") test_session.add(p) test_session.flush() p.set_parent(root_post_1) test_session.flush() def fin(): print "finalizer reply_post_3" test_session.delete(p) test_session.flush() request.addfinalizer(fin) return p
def reply_post_2(request, participant1_user, discussion, reply_post_1, test_session): """ From participant1_user, in reply to reply_post_1 """ from assembl.models import Post p = Post( discussion=discussion, creator=participant1_user, subject=u"re2: root post", body=u"post body", creation_date=datetime(year=2000, month=1, day=5), type="post", message_id="msg3") test_session.add(p) test_session.flush() p.set_parent(reply_post_1) test_session.flush() def fin(): print "finalizer reply_post_2" test_session.delete(p) test_session.flush() request.addfinalizer(fin) return p
def reply_to_deleted_post_5( request, participant1_user, discussion, reply_deleted_post_4, test_session): """ From participant2_user, in reply to root_post_1 """ from assembl.models import Post, LangString p = Post( discussion=discussion, creator=participant1_user, subject=LangString.create(u"re3: root post"), body=LangString.create(u"post body"), type="post", message_id="*****@*****.**") test_session.add(p) test_session.flush() p.set_parent(reply_deleted_post_4) test_session.flush() def fin(): print "finalizer reply_to_deleted_post_5" test_session.delete(p) test_session.flush() request.addfinalizer(fin) return p
def reply_deleted_post_4(request, participant2_user, discussion, reply_post_1, test_session): """ From participant2_user, in reply to reply_post_1 """ from assembl.models import Post, LangString, PublicationStates p = Post( discussion=discussion, creator=participant2_user, subject=LangString.create(u"re2: root post"), body=LangString.create(u"post body"), publication_state=PublicationStates.DELETED_BY_ADMIN, type="post", message_id="*****@*****.**") test_session.add(p) test_session.flush() p.set_parent(reply_post_1) test_session.flush() def fin(): print "finalizer reply_deleted_post_4" test_session.delete(p) test_session.flush() request.addfinalizer(fin) return p
def reply_post_1(request, participant2_user, discussion, root_post_1, test_session): """ From participant2_user, in reply to root_post_1 """ from assembl.models import Post, LangString p = Post( discussion=discussion, creator=participant2_user, subject=LangString.create(u"re1: root post"), body=LangString.create(u"post body with some text so we can test harvesting features. I'm writing a very topical comment with an unrelated source, hoping it would make people angry and make them write answers. I have read in '17O Solid-State NMR Spectroscopy of Functional Oxides for Energy Conversion' thesis by Halat, D. M. (2018) that variable-temperature spectra indicate the onset of oxide-ion motion involving the interstitials at 130 °C, which is linked to an orthorhombic−tetragonal phase transition. For the V-doped phases, an oxide-ion conduction mechanism is observed that involves oxygen exchange between the Bi-O sublattice and rapidly rotating VO4 tetrahedral units. The more poorly conducting P-doped phase exhibits only vacancy conduction with no evidence of sublattice exchange, a result ascribed to the differing propensities of the dopants to undergo variable oxygen coordination. So I think it would be a very bad idea to allow hot beverages in coworking spaces. But it looks like people don't really care about scientific evidence around here."), creation_date=datetime(year=2000, month=1, day=4), type="post", message_id="*****@*****.**") test_session.add(p) test_session.flush() p.set_parent(root_post_1) test_session.flush() def fin(): print "finalizer reply_post_1" test_session.delete(p) test_session.flush() request.addfinalizer(fin) return p
def reply_post_1(request, participant2_user, discussion, root_post_1, test_session): """ From participant2_user, in reply to root_post_1 """ from assembl.models import Post, LangString p = Post( discussion=discussion, creator=participant2_user, subject=LangString.create(u"re1: root post"), body=LangString.create(u"post body"), creation_date=datetime(year=2000, month=1, day=4), type="post", message_id="*****@*****.**") test_session.add(p) test_session.flush() p.set_parent(root_post_1) test_session.flush() def fin(): print "finalizer reply_post_1" test_session.delete(p) test_session.flush() request.addfinalizer(fin) return p