diff --git a/docs/2.x/.buildinfo b/docs/2.x/.buildinfo index b0b326558c..9ee4cf3d7b 100644 --- a/docs/2.x/.buildinfo +++ b/docs/2.x/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 744690952e38d629afbba23fb3c0fb88 +config: 8d5d87576a75494dfd2a41f78d5d8119 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/2.x/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Python-classes-and-objects.html b/docs/2.x/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Python-classes-and-objects.html index a0353d6046..1338432037 100644 --- a/docs/2.x/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Python-classes-and-objects.html +++ b/docs/2.x/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Python-classes-and-objects.html @@ -190,12 +190,11 @@ all one by one:

If there were a lot of functions, you could instead just import test and get the function from there when you need (without having to give the full world.test every time):

-
> from world import test ; test.hello_world(me
+
> from world import test ; test.hello_world(me)
 Hello World!
 
-

You can also rename stuff you import. Say for example that the module you import to already -has a function hello_world but we also want to use the one from world/test.py:

+

You can also rename stuff you import. Say for example that the module you import to already has a function hello_world but we also want to use the one from world/test.py:

from world.test import hello_world as test_hello_world
 
diff --git a/docs/2.x/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.html b/docs/2.x/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.html index e3c616a109..64982e8401 100644 --- a/docs/2.x/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.html +++ b/docs/2.x/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.html @@ -129,27 +129,26 @@

11. Searching for things

-

We have gone through how to create the various entities in Evennia. But creating something is of little use -if we cannot find and use it afterwards.

+

We have gone through how to create the various entities in Evennia. But creating something is of little use if we cannot find and use it afterwards.

11.1. Main search functions

The base tools are the evennia.search_* functions, such as evennia.search_object.

import evennia 
 
-roses = evennia.search_object(key="rose")
-accts = evennia.search_account(key="MyAccountName", email="foo@bar.com")
+roses = evennia.search_object("rose")
+accts = evennia.search_account("MyAccountName", email="foo@bar.com")
 
-

Strings are always case-insensitive, so searching for "rose", "Rose" or "rOsE" give the same results. It’s important to remember that what is returned from these search methods is a listing of zero, one or more elements - all the matches to your search. To get the first match:

+

This searches by key of the object. Strings are always case-insensitive, so searching for "rose", "Rose" or "rOsE" give the same results. It’s important to remember that what is returned from these search methods is a listing of zero, one or more elements - all the matches to your search. To get the first match:

rose = roses[0]
 

Often you really want all matches to the search parameters you specify. In other situations, having zero or more than one match is a sign of a problem and you need to handle this case yourself.

-
    the_one_ring = evennia.search_object(key="The one Ring")
+
    the_one_ring = evennia.search_object("The one Ring")
     if not the_one_ring:
         # handle not finding the ring at all
     elif len(the_one_ring) > 1:
@@ -165,39 +164,40 @@ if we cannot find and use it afterwards.