Skip to content

Commit

Permalink
fixes - added datafile
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarer committed Nov 6, 2023
1 parent c908340 commit b1f0426
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions _sources/web/writeCode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ xml tags to define the books in a bookstore.

</bookstore>

.. datafile:: books.xml
:fromfile: books.xml
:hide:

.. activecode:: web_get_book_info_xml
:language: python3
:nocodelens:
Expand Down Expand Up @@ -99,6 +103,9 @@ xml tags to define news stories.
</body>
</nitf>

.. datafile:: news.xml
:fromfile: news.xml
:hide:

.. activecode:: web_get_news_info_xml
:language: python3
Expand Down Expand Up @@ -158,6 +165,9 @@ xml tags to define weather observations.

</current_observation>

.. datafile:: weather.xml
:fromfile: weather.xml
:hide:

.. activecode:: web_get_weather_info_xml
:language: python3
Expand All @@ -177,7 +187,7 @@ xml tags to define weather observations.
The file ``email.json`` below contains JSON data for people including their first_name, last_name
and email address.

.. reveal:: emailr.json
.. reveal:: email_data
:showtitle: Show
:hidetitle: Hide

Expand Down Expand Up @@ -214,6 +224,10 @@ and email address.
"ip_address": "67.76.188.26"
}]

.. datafile:: email.json
:fromfile: email.json
:hide:

.. activecode:: web_email_json_write
:language: python3
:nocodelens:
Expand All @@ -231,7 +245,7 @@ and email address.
The file ``person.json`` below contains JSON data for a person in a dictionary including their first name,
last name, address, and phone numbers.

.. reveal:: person2.json
.. reveal:: person_data
:showtitle: Show
:hidetitle: Hide

Expand Down Expand Up @@ -267,6 +281,10 @@ last name, address, and phone numbers.
"spouse": null
}

.. datafile:: person.json
:fromfile: person.json
:hide:

.. activecode:: web_email_person_write
:language: python3
:nocodelens:
Expand Down

0 comments on commit b1f0426

Please sign in to comment.