<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://etcwiki.org/index.php?action=history&amp;feed=atom&amp;title=Girder_persistent_varibles_using_ptables</id>
	<title>Girder persistent varibles using ptables - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://etcwiki.org/index.php?action=history&amp;feed=atom&amp;title=Girder_persistent_varibles_using_ptables"/>
	<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Girder_persistent_varibles_using_ptables&amp;action=history"/>
	<updated>2026-05-13T19:02:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://etcwiki.org/index.php?title=Girder_persistent_varibles_using_ptables&amp;diff=3642&amp;oldid=prev</id>
		<title>Ddxfish at 15:26, 25 July 2015</title>
		<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Girder_persistent_varibles_using_ptables&amp;diff=3642&amp;oldid=prev"/>
		<updated>2015-07-25T15:26:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:26, 25 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot;&gt;Line 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The response should be your variable.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The response should be your variable.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Girder]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ddxfish</name></author>
	</entry>
	<entry>
		<id>http://etcwiki.org/index.php?title=Girder_persistent_varibles_using_ptables&amp;diff=2798&amp;oldid=prev</id>
		<title>Ddxfish at 14:51, 19 April 2010</title>
		<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Girder_persistent_varibles_using_ptables&amp;diff=2798&amp;oldid=prev"/>
		<updated>2010-04-19T14:51:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This will describe how to set variables in Girder (LUA script) using ptables. The new variable will be stored in the system registry and can be accessed even after restarts of LUA, girder, and the system. These variables do not show in Girder&amp;#039;s variable inspector, but can be viewed using methods below.&lt;br /&gt;
&lt;br /&gt;
==Setting permanent variables in Girder==&lt;br /&gt;
# create new scripting action and add this to the code section:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
require(&amp;#039;ptable&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
myptable = ptable:New(&amp;quot;myvariables&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
myptable.setting1 = &amp;quot;Dark&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Make sure you execute this action (use the test button in girder)&lt;br /&gt;
&lt;br /&gt;
==Girder variables on website==&lt;br /&gt;
#edit your girder website file events.html (in your girder directory, in the httpd folder)&lt;br /&gt;
#scroll down to just below the /h2 tag and enter this code in its own line&lt;br /&gt;
## &amp;lt;% webserver:print(myptable.setting1) %&amp;gt;&lt;br /&gt;
#navigate to your events.html page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Print girder variable in lua console==&lt;br /&gt;
Enter the Interactive LUA console and type the following:&lt;br /&gt;
&lt;br /&gt;
print (myptable.setting1)&lt;br /&gt;
&lt;br /&gt;
The response should be your variable.&lt;/div&gt;</summary>
		<author><name>Ddxfish</name></author>
	</entry>
</feed>