13282: Remove some obsolete crunchv1 documenation from python sdk.
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Tue, 10 Apr 2018 14:24:12 +0000 (10:24 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 26 Apr 2018 17:09:55 +0000 (13:09 -0400)
Fix formatting of "websocket events" page.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

doc/_config.yml
doc/_includes/_events_py.liquid [deleted file]
doc/sdk/python/events.html.textile.liquid

index 404b90f357188a66dd3198940a86c56a929144ab..50a9f7a2cf9f5f78c70daa619fff284dd70e1a22 100644 (file)
@@ -75,7 +75,7 @@ navbar:
       - sdk/python/sdk-python.html.textile.liquid
       - sdk/python/example.html.textile.liquid
       - sdk/python/python.html.textile.liquid
-      - sdk/python/crunch-utility-libraries.html.textile.liquid
+    #  - sdk/python/crunch-utility-libraries.html.textile.liquid
       - sdk/python/arvados-fuse.html.textile.liquid
       - sdk/python/events.html.textile.liquid
       - sdk/python/cookbook.html.textile.liquid
diff --git a/doc/_includes/_events_py.liquid b/doc/_includes/_events_py.liquid
deleted file mode 100644 (file)
index 460fd42..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-{% comment %}
-Copyright (C) The Arvados Authors. All rights reserved.
-
-SPDX-License-Identifier: CC-BY-SA-3.0
-{% endcomment %}
-
-import arvados
-import arvados.events
-
-# 'ev' is a dict containing the log table record describing the change.
-def on_message(ev):
-    if ev.get("event_type") == "create" and ev.get("object_kind") == "arvados#collection":
-        print "A new collection was created: %s" % ev["object_uuid"]
-
-api = arvados.api("v1")
-ws = arvados.events.subscribe(api, [], on_message)
-ws.run_forever()
index 9960e668361aca9ac7e0645390b7f7d87cae3764..afbec20d950c518dd29c7882a503f88d1f530712 100644 (file)
@@ -12,6 +12,18 @@ SPDX-License-Identifier: CC-BY-SA-3.0
 
 Arvados applications can subscribe to a live event stream from the database.  Events are described in the "Log resource.":{{site.baseurl}}/api/methods/logs.html
 
-<notextile>
-{% code 'events_py' as python %}
-</notextile>
+{% codeblock as python %}
+#!/usr/bin/env python
+
+import arvados
+import arvados.events
+
+# 'ev' is a dict containing the log table record describing the change.
+def on_message(ev):
+    if ev.get("event_type") == "create" and ev.get("object_kind") == "arvados#collection":
+        print "A new collection was created: %s" % ev["object_uuid"]
+
+api = arvados.api("v1")
+ws = arvados.events.subscribe(api, [], on_message)
+ws.run_forever()
+{% endcodeblock %}