roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [17/24] roller git commit: Fix for: test weblogs not being created & added correctly.
Date Sun, 08 Oct 2017 17:33:10 GMT
Fix for: test weblogs not being created & added correctly.


Project: http://git-wip-us.apache.org/repos/asf/roller/repo
Commit: http://git-wip-us.apache.org/repos/asf/roller/commit/f57be53d
Tree: http://git-wip-us.apache.org/repos/asf/roller/tree/f57be53d
Diff: http://git-wip-us.apache.org/repos/asf/roller/diff/f57be53d

Branch: refs/heads/bootstrap-ui
Commit: f57be53dc3359c5e311e6dbe736f0203d468159d
Parents: b7b2d83
Author: Dave Johnson <snoopdave@gmail.com>
Authored: Sat Sep 30 10:05:15 2017 -0400
Committer: Dave Johnson <snoopdave@gmail.com>
Committed: Sat Sep 30 10:05:15 2017 -0400

----------------------------------------------------------------------
 .../scripting/groovy/examples/rollerapi/createtestdata.gy         | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/roller/blob/f57be53d/docs/examples/scripting/groovy/examples/rollerapi/createtestdata.gy
----------------------------------------------------------------------
diff --git a/docs/examples/scripting/groovy/examples/rollerapi/createtestdata.gy b/docs/examples/scripting/groovy/examples/rollerapi/createtestdata.gy
index 6dfc4f7..280003a 100644
--- a/docs/examples/scripting/groovy/examples/rollerapi/createtestdata.gy
+++ b/docs/examples/scripting/groovy/examples/rollerapi/createtestdata.gy
@@ -140,6 +140,9 @@ nisi. Duis lacinia enim id dui. Maecenas a leo. Duis lacus.""" ]
                 theme,
                 user.getLocale(),
                 user.getTimeZone());
+            roller.getWeblogManager().addWeblog(website)
+            roller.flush()
+
             def cat = new org.apache.roller.weblogger.pojos.WeblogCategory(
                 website, "cat1", "cat1", null);
             roller.getWeblogEntryManager().saveWeblogCategory(cat);


Mime
View raw message