Links - shmolyneaux/SquareJam GitHub Wiki
Links can be created to objects (Lists, Dicts, Methods, and Objects) anywhere in the database.
An example of this can be seen in Setting up StorGUI where the attribute storgui
of the Object
_0_0_0_0
is set to Library.storgui
:
self.storgui = req.storage.Library.storgui;
Afterwards, users can use StorGUI by going to https://0.0.0.0:8001/storgui/storgui
. This allows multiple websites to access the same code base.
Other examples can be found in SPI Lab where their only is a single method to handle every user's blog, and it is simple linked to preserve the URL format - https://0.0.0.0:8001/User/root/blog
.
Use object_name.islink()
to check if it links to another object within the database.