# --- Purge all global scrips before importing ours. --- # vim: filetype=xml
my $scrips = RT::Scrips->new($RT::SystemUser);
$scrips->LimitToGlobal; $_->Delete for @{ $scrips->ItemsArrayRef || [] };
my $queue = RT::Queue->new($RT::SystemUser); $queue->Load(1); $queue->SetDisabled(1);
no strict; use XML::Simple; *_ = XMLin(do { local $/; readline(DATA) }, ForceArray => [qw(
 Users Groups Queues ScripActions ScripConditions Templates Scrips ACL CustomFields Values
)], NoAttr => 1, SuppressEmpty => ''); *$_ = ($_{$_} || []) for keys %_; 1; # vim: ft=xml
__DATA__
<?xml version="1.0" encoding="UTF-8"?>
<InitialData>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Everyone</GroupType>
    <Queue>NewUser</Queue>
    <Right>CommentOnTicket</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Everyone</GroupType>
    <Queue>NewUser</Queue>
    <Right>ReplyToTicket</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>AdminCustomFields</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>AdminQueue</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>CommentOnTicket</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>CreateTicket</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>DeleteTicket</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>ModifySelf</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>ModifyTicket</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>OwnTicket</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>ReplyToTicket</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>SeeQueue</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>ShowTicket</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>ShowTicketComments</Right>
  </ACL>
  <ACL>
    <GroupDomain>SystemInternal</GroupDomain>
    <GroupType>Privileged</GroupType>
    <Right>Watch</Right>
  </ACL>
  <CustomFields>
    <Description>Resolution</Description>
    <Name>Resolution</Name>
    <Queue>0</Queue>
    <SortOrder>1</SortOrder>
    <Type>SelectResolution</Type>
    <Values>
      <Description>FIXED</Description>
      <Name>FIXED</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>LATER</Description>
      <Name>LATER</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>INVALID</Description>
      <Name>INVALID</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>WONTFIX</Description>
      <Name>WONTFIX</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>WORKSFORME</Description>
      <Name>WORKSFORME</Name>
      <SortOrder>5</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <OnCreate>readonly</OnCreate>
    </Attributes>
    <Description>Type</Description>
    <Name>Type</Name>
    <Queue>0</Queue>
    <SortOrder>2</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>defect</Description>
      <Name>defect</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>patch</Description>
      <Name>patch</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>task</Description>
      <Name>task</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>feature</Description>
      <Name>feature</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>enhancement</Description>
      <Name>enhancement</Name>
      <SortOrder>5</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Description>Subcomponent</Description>
    <Name>Subcomponent</Name>
    <Queue>0</Queue>
    <SortOrder>3</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>Backend</Description>
      <Name>Backend</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>Interface</Description>
      <Name>Interface</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Other</Description>
      <Name>Other</Name>
      <SortOrder>3</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Description>Architecture</Description>
    <Name>Architecture</Name>
    <Queue>0</Queue>
    <SortOrder>4</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>All Architectures</Description>
      <Name>All</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>i386 PC</Description>
      <Name>PC</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Mac</Description>
      <Name>Mac</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>Other</Description>
      <Name>Other</Name>
      <SortOrder>4</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Description>Platform</Description>
    <Name>Platform</Name>
    <Queue>0</Queue>
    <SortOrder>5</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>All Platforms</Description>
      <Name>All</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>Linux</Description>
      <Name>Linux</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>MS Windows</Description>
      <Name>Win32</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>FreeBSD</Description>
      <Name>FreeBSD</Name>
      <SortOrder>5</SortOrder>
    </Values>
    <Values>
      <Description>Macintosh</Description>
      <Name>Mac</Name>
      <SortOrder>6</SortOrder>
    </Values>
    <Values>
      <Description>Other</Description>
      <Name>Other</Name>
      <SortOrder>7</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <OnCreate>hidden</OnCreate>
    </Attributes>
    <Description>Severity</Description>
    <Name>Severity</Name>
    <Queue>0</Queue>
    <SortOrder>6</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>Most Important</Description>
      <Name>P1</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>Important</Description>
      <Name>P2</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Normal</Description>
      <Name>P3</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>Less Important</Description>
      <Name>P4</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>Least Important</Description>
      <Name>P5</Name>
      <SortOrder>5</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Description>Version</Description>
    <Name>Version</Name>
    <Queue>0</Queue>
    <SortOrder>7</SortOrder>
    <Type>SelectVersion</Type>
  </CustomFields>
  <CustomFields>
    <Description>TargetVersion</Description>
    <Name>TargetVersion</Name>
    <Queue>0</Queue>
    <SortOrder>8</SortOrder>
    <Type>SelectVersion</Type>
  </CustomFields>
  <CustomFields>
    <Description>Attachments</Description>
    <Name>Attachments</Name>
    <Queue>0</Queue>
    <SortOrder>9</SortOrder>
    <Type>LabelAttachments</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <OnUpdate>hidden</OnUpdate>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Subject</Description>
    <Name>Subject</Name>
    <Queue>0</Queue>
    <SortOrder>10</SortOrder>
    <Type>LabelSubject</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Name must be 3-15 characters of digits, letters or underscore, beginning with a letter</Hints>
      <OnChange>readonly</OnChange>
      <Pattern>^[A-Za-z]\w{2,14}$</Pattern>
    </Attributes>
    <Description>Login Name</Description>
    <Name>Name</Name>
    <Queue>NewUser</Queue>
    <SortOrder>1</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Password must be at least 6 letters</Hints>
      <Pattern>^.{6}</Pattern>
    </Attributes>
    <Description>Password</Description>
    <Name>Password</Name>
    <Queue>NewUser</Queue>
    <SortOrder>2</SortOrder>
    <Type>FreeformPassword</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <Pattern>^.{6}</Pattern>
    </Attributes>
    <Description>Password (repeat)</Description>
    <Name>PasswordCheck</Name>
    <Queue>NewUser</Queue>
    <SortOrder>3</SortOrder>
    <Type>FreeformPassword</Type>
  </CustomFields>
  <CustomFields>
    <Description>Full Name</Description>
    <Name>RealName</Name>
    <Queue>NewUser</Queue>
    <SortOrder>4</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Email Address</Description>
    <Name>Email</Name>
    <Queue>NewUser</Queue>
    <SortOrder>5</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>Personal Homepage</Description>
    <Name>PersonalHomepage</Name>
    <Queue>NewUser</Queue>
    <SortOrder>6</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>Public Info</Description>
    <Name>Public Info</Name>
    <Queue>NewUser</Queue>
    <SortOrder>7</SortOrder>
    <Type>SelectMultiple</Type>
    <Values>
      <Description>Email Address</Description>
      <Name>Email</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>Real Name</Description>
      <Name>RealName</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Personal Homepage</Description>
      <Name>PersonalHomepage</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>Self Introduction</Description>
      <Name>Intro</Name>
      <SortOrder>4</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Description>About Me</Description>
    <Name>Intro</Name>
    <Queue>NewUser</Queue>
    <SortOrder>8</SortOrder>
    <Type>LabelContent</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Project Name must be at most 40 charaters</Hints>
      <Pattern>^.{1,40}$</Pattern>
    </Attributes>
    <Description>Project Name</Description>
    <Name>ProjectName</Name>
    <Queue>NewProject</Queue>
    <SortOrder>1</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>ID must be 3-15 characters of lower-case letters or digits, beginning with a letter</Hints>
      <OnChange>readonly</OnChange>
      <Pattern>^[a-z][0-9a-z]{2,14}$</Pattern>
    </Attributes>
    <Description>Project ID</Description>
    <Name>UnixName</Name>
    <Queue>NewProject</Queue>
    <SortOrder>2</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <OnChange>hidden</OnChange>
      <OnUpdate>hidden</OnUpdate>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Rationale</Description>
    <Name>Rationale</Name>
    <Queue>NewProject</Queue>
    <SortOrder>3</SortOrder>
    <Type>FreeformMultiple</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Public Description must be at most 255 charaters</Hints>
      <Pattern>^[\d\D]{1,255}$</Pattern>
    </Attributes>
    <Description>Public Description</Description>
    <Name>PublicDescription</Name>
    <Queue>NewProject</Queue>
    <SortOrder>4</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <HTMLAttr>href</HTMLAttr>
      <Hints>Optional; fill in an email address or URL</Hints>
    </Attributes>
    <Description>Contact Info</Description>
    <Name>ContactInfo</Name>
    <Queue>NewProject</Queue>
    <SortOrder>5</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Maturity</Description>
    <Name>Maturity</Name>
    <Queue>NewProject</Queue>
    <SortOrder>6</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>Idea</Description>
      <Name>Idea</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>Pre-Alpha</Description>
      <Name>Pre-Alpha</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Alpha</Description>
      <Name>Alpha</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>Beta</Description>
      <Name>Beta</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>Released</Description>
      <Name>Released</Name>
      <SortOrder>5</SortOrder>
    </Values>
    <Values>
      <Description>Mature</Description>
      <Name>Mature</Name>
      <SortOrder>6</SortOrder>
    </Values>
    <Values>
      <Description>Standard</Description>
      <Name>Standard</Name>
      <SortOrder>7</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <HTMLAttr>onchange=&quot;foundry_license_check(this)&quot;</HTMLAttr>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Code License</Description>
    <Name>License</Name>
    <Queue>NewProject</Queue>
    <SortOrder>7</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>Apache v.1.1</Description>
      <Name>Apache1</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>Apache v.2.0</Description>
      <Name>Apache2</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Artistic</Description>
      <Name>Artistic</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>BSD</Description>
      <Name>BSD</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>Common Public v.1</Description>
      <Name>CPL</Name>
      <SortOrder>5</SortOrder>
    </Values>
    <Values>
      <Description>GNU Public v.2</Description>
      <Name>GPL</Name>
      <SortOrder>6</SortOrder>
    </Values>
    <Values>
      <Description>Lesser GNU Public v.2.1</Description>
      <Name>LGPL</Name>
      <SortOrder>7</SortOrder>
    </Values>
    <Values>
      <Description>MIT</Description>
      <Name>MIT</Name>
      <SortOrder>8</SortOrder>
    </Values>
    <Values>
      <Description>Mozilla Public v.1.1</Description>
      <Name>MPL</Name>
      <SortOrder>9</SortOrder>
    </Values>
    <Values>
      <Description>Qt Public v.1</Description>
      <Name>QPL</Name>
      <SortOrder>10</SortOrder>
    </Values>
    <Values>
      <Description>Zlib/libpng</Description>
      <Name>Zlib</Name>
      <SortOrder>11</SortOrder>
    </Values>
    <Values>
      <Description>Other OSI Approved...</Description>
      <Name>OSI...</Name>
      <SortOrder>12</SortOrder>
    </Values>
    <Values>
      <Description>Public Domain</Description>
      <Name>!PD</Name>
      <SortOrder>13</SortOrder>
    </Values>
    <Values>
      <Description>Project contains no code</Description>
      <Name>!none</Name>
      <SortOrder>14</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
    </Attributes>
    <Description> </Description>
    <Name>LicenseOSI</Name>
    <Queue>NewProject</Queue>
    <SortOrder>8</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>Academic Free License</Description>
      <Name>Academic Free License</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>Apple Public Source License</Description>
      <Name>Apple Public Source License</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Attribution Assurance Licenses</Description>
      <Name>Attribution Assurance Licenses</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>CUA Office Public License Version 1.0</Description>
      <Name>CUA Office Public License Version 1.0</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>EU DataGrid Software License</Description>
      <Name>EU DataGrid Software License</Name>
      <SortOrder>5</SortOrder>
    </Values>
    <Values>
      <Description>Eiffel Forum License</Description>
      <Name>Eiffel Forum License</Name>
      <SortOrder>6</SortOrder>
    </Values>
    <Values>
      <Description>Eiffel Forum License V2.0</Description>
      <Name>Eiffel Forum License V2.0</Name>
      <SortOrder>7</SortOrder>
    </Values>
    <Values>
      <Description>Entessa Public License</Description>
      <Name>Entessa Public License</Name>
      <SortOrder>8</SortOrder>
    </Values>
    <Values>
      <Description>Fair License</Description>
      <Name>Fair License</Name>
      <SortOrder>9</SortOrder>
    </Values>
    <Values>
      <Description>Frameworx License</Description>
      <Name>Frameworx License</Name>
      <SortOrder>10</SortOrder>
    </Values>
    <Values>
      <Description>Lucent Public License (Plan9)</Description>
      <Name>Lucent Public License (Plan9)</Name>
      <SortOrder>11</SortOrder>
    </Values>
    <Values>
      <Description>Lucent Public License Version 1.02</Description>
      <Name>Lucent Public License Version 1.02</Name>
      <SortOrder>12</SortOrder>
    </Values>
    <Values>
      <Description>IBM Public License</Description>
      <Name>IBM Public License</Name>
      <SortOrder>13</SortOrder>
    </Values>
    <Values>
      <Description>Intel Open Source License</Description>
      <Name>Intel Open Source License</Name>
      <SortOrder>14</SortOrder>
    </Values>
    <Values>
      <Description>Historical Permission Notice and Disclaimer</Description>
      <Name>Historical Permission Notice and Disclaimer</Name>
      <SortOrder>15</SortOrder>
    </Values>
    <Values>
      <Description>Jabber Open Source License</Description>
      <Name>Jabber Open Source License</Name>
      <SortOrder>16</SortOrder>
    </Values>
    <Values>
      <Description>MITRE Collaborative Virtual Workspace License (CVW License)</Description>
      <Name>MITRE Collaborative Virtual Workspace License (CVW License)</Name>
      <SortOrder>17</SortOrder>
    </Values>
    <Values>
      <Description>Motosoto License</Description>
      <Name>Motosoto License</Name>
      <SortOrder>18</SortOrder>
    </Values>
    <Values>
      <Description>Mozilla Public License 1.0 (MPL)</Description>
      <Name>Mozilla Public License 1.0 (MPL)</Name>
      <SortOrder>19</SortOrder>
    </Values>
    <Values>
      <Description>Naumen Public License</Description>
      <Name>Naumen Public License</Name>
      <SortOrder>20</SortOrder>
    </Values>
    <Values>
      <Description>Nethack General Public License</Description>
      <Name>Nethack General Public License</Name>
      <SortOrder>21</SortOrder>
    </Values>
    <Values>
      <Description>Nokia Open Source License</Description>
      <Name>Nokia Open Source License</Name>
      <SortOrder>22</SortOrder>
    </Values>
    <Values>
      <Description>OCLC Research Public License 2.0</Description>
      <Name>OCLC Research Public License 2.0</Name>
      <SortOrder>23</SortOrder>
    </Values>
    <Values>
      <Description>Open Group Test Suite License</Description>
      <Name>Open Group Test Suite License</Name>
      <SortOrder>24</SortOrder>
    </Values>
    <Values>
      <Description>Open Software License</Description>
      <Name>Open Software License</Name>
      <SortOrder>25</SortOrder>
    </Values>
    <Values>
      <Description>PHP License</Description>
      <Name>PHP License</Name>
      <SortOrder>26</SortOrder>
    </Values>
    <Values>
      <Description>Python license (CNRI Python License)</Description>
      <Name>Python license (CNRI Python License)</Name>
      <SortOrder>27</SortOrder>
    </Values>
    <Values>
      <Description>Python Software Foundation License</Description>
      <Name>Python Software Foundation License</Name>
      <SortOrder>28</SortOrder>
    </Values>
    <Values>
      <Description>RealNetworks Public Source License V1.0</Description>
      <Name>RealNetworks Public Source License V1.0</Name>
      <SortOrder>29</SortOrder>
    </Values>
    <Values>
      <Description>Reciprocal Public License</Description>
      <Name>Reciprocal Public License</Name>
      <SortOrder>30</SortOrder>
    </Values>
    <Values>
      <Description>Ricoh Source Code Public License</Description>
      <Name>Ricoh Source Code Public License</Name>
      <SortOrder>31</SortOrder>
    </Values>
    <Values>
      <Description>Sleepycat License</Description>
      <Name>Sleepycat License</Name>
      <SortOrder>32</SortOrder>
    </Values>
    <Values>
      <Description>Sun Industry Standards Source License (SISSL)</Description>
      <Name>Sun Industry Standards Source License (SISSL)</Name>
      <SortOrder>33</SortOrder>
    </Values>
    <Values>
      <Description>Sun Public License</Description>
      <Name>Sun Public License</Name>
      <SortOrder>34</SortOrder>
    </Values>
    <Values>
      <Description>Sybase Open Watcom Public License 1.0</Description>
      <Name>Sybase Open Watcom Public License 1.0</Name>
      <SortOrder>35</SortOrder>
    </Values>
    <Values>
      <Description>University of Illinois/NCSA Open Source License</Description>
      <Name>University of Illinois/NCSA Open Source License</Name>
      <SortOrder>36</SortOrder>
    </Values>
    <Values>
      <Description>Vovida Software License v. 1.0</Description>
      <Name>Vovida Software License v. 1.0</Name>
      <SortOrder>37</SortOrder>
    </Values>
    <Values>
      <Description>W3C License</Description>
      <Name>W3C License</Name>
      <SortOrder>38</SortOrder>
    </Values>
    <Values>
      <Description>wxWindows Library License</Description>
      <Name>wxWindows Library License</Name>
      <SortOrder>39</SortOrder>
    </Values>
    <Values>
      <Description>X.Net License</Description>
      <Name>X.Net License</Name>
      <SortOrder>40</SortOrder>
    </Values>
    <Values>
      <Description>Zope Public License</Description>
      <Name>Zope Public License</Name>
      <SortOrder>41</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Description>Other Code Licenses</Description>
    <Name>LicenseOther</Name>
    <Queue>NewProject</Queue>
    <SortOrder>9</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <HTMLAttr>onchange=&quot;foundry_license_check(this)&quot;</HTMLAttr>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Content License</Description>
    <Name>ContentLicense</Name>
    <Queue>NewProject</Queue>
    <SortOrder>10</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>Creative Commons Licenses...</Description>
      <Name>CC...</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>GNU Free Documentation License</Description>
      <Name>GFDL</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Same license as code</Description>
      <Name>code</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>Public Domain</Description>
      <Name>!PD</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>Project contains only code</Description>
      <Name>!none</Name>
      <SortOrder>5</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
    </Attributes>
    <Description> </Description>
    <Name>ContentLicenseCC</Name>
    <Queue>NewProject</Queue>
    <SortOrder>11</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>Attribution</Description>
      <Name>Attribution</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>Attribution-ShareAlike</Description>
      <Name>Attribution-ShareAlike</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Attribution-NoDerivs</Description>
      <Name>Attribution-NoDerivs</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>Attribution-NonCommercial</Description>
      <Name>Attribution-NonCommercial</Name>
      <SortOrder>5</SortOrder>
    </Values>
    <Values>
      <Description>Attribution-NonCommercial-ShareAlike</Description>
      <Name>Attribution-NonCommercial-ShareAlike</Name>
      <SortOrder>6</SortOrder>
    </Values>
    <Values>
      <Description>Attribution-NonCommercial-NoDerivs</Description>
      <Name>Attribution-NonCommercial-NoDerivs</Name>
      <SortOrder>7</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Description>Other Content Licenses</Description>
    <Name>ContentLicenseOther</Name>
    <Queue>NewProject</Queue>
    <SortOrder>12</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Platform</Description>
    <Name>Platform</Name>
    <Queue>NewProject</Queue>
    <SortOrder>13</SortOrder>
    <Type>SelectMultiple</Type>
    <Values>
      <Description>Windows</Description>
      <Name>Windows</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>FreeBSD</Description>
      <Name>FreeBSD</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Linux</Description>
      <Name>Linux</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>Java Environment</Description>
      <Name>Java Environment</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>.NET Environment</Description>
      <Name>.NET Environment</Name>
      <SortOrder>5</SortOrder>
    </Values>
    <Values>
      <Description>MacOS Classic</Description>
      <Name>MacOS Classic</Name>
      <SortOrder>6</SortOrder>
    </Values>
    <Values>
      <Description>MacOSX</Description>
      <Name>MacOSX</Name>
      <SortOrder>6</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Programming Language</Description>
    <Name>ProgrammingLanguage</Name>
    <Queue>NewProject</Queue>
    <SortOrder>14</SortOrder>
    <Type>SelectMultiple</Type>
    <Values>
      <Description>Assembly</Description>
      <Name>Assembly</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>C</Description>
      <Name>C</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>C++</Description>
      <Name>C++</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>Java</Description>
      <Name>Java</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>Perl</Description>
      <Name>Perl</Name>
      <SortOrder>5</SortOrder>
    </Values>
    <Values>
      <Description>PHP</Description>
      <Name>PHP</Name>
      <SortOrder>6</SortOrder>
    </Values>
    <Values>
      <Description>Python</Description>
      <Name>Python</Name>
      <SortOrder>7</SortOrder>
    </Values>
    <Values>
      <Description>Ruby</Description>
      <Name>Ruby</Name>
      <SortOrder>8</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Intended Audience</Description>
    <Name>IntendedAudience</Name>
    <Queue>NewProject</Queue>
    <SortOrder>15</SortOrder>
    <Type>SelectMultiple</Type>
    <Values>
      <Description>General Use</Description>
      <Name>General Use</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>Programmer</Description>
      <Name>Programmer</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>System Administrator</Description>
      <Name>System Administrator</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>Education</Description>
      <Name>Education</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>Researcher</Description>
      <Name>Researcher</Name>
      <SortOrder>5</SortOrder>
    </Values>
    <Values>
      <Description>Other</Description>
      <Name>Other</Name>
      <SortOrder>6</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Project Topic</Description>
    <Name>Topic</Name>
    <Queue>NewProject</Queue>
    <SortOrder>16</SortOrder>
    <Type>SelectMultiple</Type>
    <Values>
      <Description>Embedded-Platform</Description>
      <Name>Embedded-Platform</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>Embedded-Driver</Description>
      <Name>Embedded-Driver</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Embedded-Application</Description>
      <Name>Embedded-Application</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>Embedded-OS</Description>
      <Name>Embedded-OS</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>Embedded-Tools</Description>
      <Name>Embedded-Tools</Name>
      <SortOrder>5</SortOrder>
    </Values>
    <Values>
      <Description>Chinese-InputMethod</Description>
      <Name>Chinese-InputMethod</Name>
      <SortOrder>6</SortOrder>
    </Values>
    <Values>
      <Description>Chinese-Localization</Description>
      <Name>Chinese-Localization</Name>
      <SortOrder>7</SortOrder>
    </Values>
    <Values>
      <Description>Chinese-Utilities</Description>
      <Name>Chinese-Utilities</Name>
      <SortOrder>8</SortOrder>
    </Values>
    <Values>
      <Description>Chinese-LanguageProcessing</Description>
      <Name>Chinese-LanguageProcessing</Name>
      <SortOrder>9</SortOrder>
    </Values>
    <Values>
      <Description>Other-Miscellaneous</Description>
      <Name>Other-Miscellaneous</Name>
      <SortOrder>10</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <OnUpdate>hidden</OnUpdate>
    </Attributes>
    <Description>Topic Suggestion</Description>
    <Name>TopicSuggestion</Name>
    <Queue>NewProject</Queue>
    <SortOrder>17</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <HTMLAttr>href</HTMLAttr>
    </Attributes>
    <Description>Homepage Redirection</Description>
    <Name>RedirectURL</Name>
    <Queue>NewProject</Queue>
    <SortOrder>18</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Version Control System</Description>
    <Name>VCS</Name>
    <Queue>NewProject</Queue>
    <SortOrder>19</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>Subversion(read/write)</Description>
      <Name>svn</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>CVS, Subversion(mirror)</Description>
      <Name>cvs</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Remote, Subversion(mirror)</Description>
      <Name>vcp</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>Remote</Description>
      <Name>none</Name>
      <SortOrder>4</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Pattern>^(?:$|[A-Za-z][-+.A-Za-z0-9]*:)</Pattern>
    </Attributes>
    <Description>Remote Repository</Description>
    <Name>RemoteVCS</Name>
    <Queue>NewProject</Queue>
    <SortOrder>20</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>Name</Description>
    <Name>Name</Name>
    <Queue>LostPassword</Queue>
    <SortOrder>1</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>Email</Description>
    <Name>Email</Name>
    <Queue>LostPassword</Queue>
    <SortOrder>2</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>News Title</Description>
    <Name>NewsTitle</Name>
    <Queue>ProjectNews</Queue>
    <SortOrder>1</SortOrder>
    <Type>LabelSubject</Type>
  </CustomFields>
  <CustomFields>
    <Description>News Content</Description>
    <Name>NewsContent</Name>
    <Queue>ProjectNews</Queue>
    <SortOrder>2</SortOrder>
    <Type>LabelContent</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Primary Authors</Description>
    <Name>CitationAuthors</Name>
    <Queue>ProjectCitations</Queue>
    <SortOrder>1</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Project Title</Description>
    <Name>CitationTitle</Name>
    <Queue>ProjectCitations</Queue>
    <SortOrder>2</SortOrder>
    <Type>LabelSubject</Type>
  </CustomFields>
  <CustomFields>
    <Description>License</Description>
    <Name>CitationLicense</Name>
    <Queue>ProjectCitations</Queue>
    <SortOrder>3</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <HTMLAttr>href</HTMLAttr>
    </Attributes>
    <Description>URL</Description>
    <Name>CitationURL</Name>
    <Queue>ProjectCitations</Queue>
    <SortOrder>4</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>Release Date</Description>
    <Name>CitationDate</Name>
    <Queue>ProjectCitations</Queue>
    <SortOrder>5</SortOrder>
    <Type>FreeformDate</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>To add new releases, please use the 'Release Plans' tool. </Hints>
    </Attributes>
    <Description>Release Version</Description>
    <Name>CitationVersion</Name>
    <Queue>ProjectCitations</Queue>
    <SortOrder>6</SortOrder>
    <Type>SelectVersion</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <OnCreate>hidden</OnCreate>
      <OnUpdate>hidden</OnUpdate>
    </Attributes>
    <Description>Content</Description>
    <Name>CitationContent</Name>
    <Queue>ProjectCitations</Queue>
    <SortOrder>7</SortOrder>
    <Type>LabelContent</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>Mandatory</Hints>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Source</Description>
    <Name>ReferenceSource</Name>
    <Queue>ProjectReferences</Queue>
    <SortOrder>1</SortOrder>
    <Type>LabelContent</Type>
  </CustomFields>
  <CustomFields>
    <Description>Full Name</Description>
    <Name>DownloaderName</Name>
    <Queue>ProjectDownloaders</Queue>
    <SortOrder>1</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>Email</Description>
    <Name>DownloaderEmail</Name>
    <Queue>ProjectDownloaders</Queue>
    <SortOrder>2</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>Purpose of Download</Description>
    <Name>DownloaderPurpose</Name>
    <Queue>ProjectDownloaders</Queue>
    <SortOrder>3</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>Personal Homepage</Description>
    <Name>DownloaderHomepage</Name>
    <Queue>ProjectDownloaders</Queue>
    <SortOrder>4</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>Cited Project Name</Description>
    <Name>DownloaderCitation</Name>
    <Queue>ProjectDownloaders</Queue>
    <SortOrder>5</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>Contact Info</Description>
    <Name>DownloaderContact</Name>
    <Queue>ProjectDownloaders</Queue>
    <SortOrder>6</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>Occupation</Description>
    <Name>DownloaderOccupation</Name>
    <Queue>ProjectDownloaders</Queue>
    <SortOrder>7</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>Computer</Description>
      <Name>Computer</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>Internet</Description>
      <Name>Internet</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>Travel</Description>
      <Name>Travel</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>Finance</Description>
      <Name>Finance</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>Telecommunication</Description>
      <Name>Telecommunication</Name>
      <SortOrder>5</SortOrder>
    </Values>
    <Values>
      <Description>Education</Description>
      <Name>Education</Name>
      <SortOrder>6</SortOrder>
    </Values>
    <Values>
      <Description>Architecture</Description>
      <Name>Architecture</Name>
      <SortOrder>7</SortOrder>
    </Values>
    <Values>
      <Description>Government</Description>
      <Name>Government</Name>
      <SortOrder>8</SortOrder>
    </Values>
    <Values>
      <Description>Design</Description>
      <Name>Design</Name>
      <SortOrder>9</SortOrder>
    </Values>
    <Values>
      <Description>Health</Description>
      <Name>Health</Name>
      <SortOrder>10</SortOrder>
    </Values>
    <Values>
      <Description>Insurance</Description>
      <Name>Insurance</Name>
      <SortOrder>11</SortOrder>
    </Values>
    <Values>
      <Description>Law</Description>
      <Name>Law</Name>
      <SortOrder>12</SortOrder>
    </Values>
    <Values>
      <Description>Media</Description>
      <Name>Media</Name>
      <SortOrder>13</SortOrder>
    </Values>
    <Values>
      <Description>Research</Description>
      <Name>Research</Name>
      <SortOrder>14</SortOrder>
    </Values>
    <Values>
      <Description>Retail</Description>
      <Name>Retail</Name>
      <SortOrder>15</SortOrder>
    </Values>
    <Values>
      <Description>Transportation</Description>
      <Name>Transportation</Name>
      <SortOrder>16</SortOrder>
    </Values>
    <Values>
      <Description>Other</Description>
      <Name>Other</Name>
      <SortOrder>99</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Description>Age</Description>
    <Name>DownloaderAge</Name>
    <Queue>ProjectDownloaders</Queue>
    <SortOrder>8</SortOrder>
    <Type>SelectSingle</Type>
    <Values>
      <Description>19 or below</Description>
      <Name>0-19</Name>
      <SortOrder>1</SortOrder>
    </Values>
    <Values>
      <Description>20-29</Description>
      <Name>20-29</Name>
      <SortOrder>2</SortOrder>
    </Values>
    <Values>
      <Description>30-39</Description>
      <Name>30-39</Name>
      <SortOrder>3</SortOrder>
    </Values>
    <Values>
      <Description>40-49</Description>
      <Name>40-49</Name>
      <SortOrder>4</SortOrder>
    </Values>
    <Values>
      <Description>50-59</Description>
      <Name>50-59</Name>
      <SortOrder>5</SortOrder>
    </Values>
    <Values>
      <Description>60 or above</Description>
      <Name>60-</Name>
      <SortOrder>6</SortOrder>
    </Values>
  </CustomFields>
  <CustomFields>
    <Description>Interests</Description>
    <Name>DownloaderInterests</Name>
    <Queue>ProjectDownloaders</Queue>
    <SortOrder>9</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Description>IT Skills</Description>
    <Name>DownloaderSkills</Name>
    <Queue>ProjectDownloaders</Queue>
    <SortOrder>10</SortOrder>
    <Type>FreeformSingle</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <OnCreate>hidden</OnCreate>
      <OnUpdate>hidden</OnUpdate>
    </Attributes>
    <Description>Subject</Description>
    <Name>ReferenceSubject</Name>
    <Queue>ProjectReferences</Queue>
    <SortOrder>2</SortOrder>
    <Type>LabelSubject</Type>
  </CustomFields>
  <CustomFields>
    <Description>Release Version</Description>
    <Name>Version</Name>
    <Queue>ProjectEvents</Queue>
    <SortOrder>1</SortOrder>
    <Type>SelectVersion</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <HTMLAttr>style=&quot;width: 100%&quot; size=20</HTMLAttr>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Subject</Description>
    <Name>Subject</Name>
    <Queue>ProjectEvents</Queue>
    <SortOrder>2</SortOrder>
    <Type>LabelSubject</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>(eg. 2004/01/01)</Hints>
      <Pattern>^(?:\d{4}\D?\d{2}\D?\d{2})?$</Pattern>
    </Attributes>
    <Description>Starts</Description>
    <Name>EventStarts</Name>
    <Queue>ProjectEvents</Queue>
    <SortOrder>3</SortOrder>
    <Type>FreeformDate</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Hints>(eg. 2004/01/31)</Hints>
      <Pattern>^(?:\d{4}\D?\d{2}\D?\d{2})?$</Pattern>
    </Attributes>
    <Description>Due</Description>
    <Name>EventDue</Name>
    <Queue>ProjectEvents</Queue>
    <SortOrder>4</SortOrder>
    <Type>FreeformDate</Type>
  </CustomFields>
  <CustomFields>
    <Description>Owner</Description>
    <Name>EventOwner</Name>
    <Queue>ProjectEvents</Queue>
    <SortOrder>5</SortOrder>
    <Type>LabelOwner</Type>
  </CustomFields>
  <CustomFields>
    <Attributes>
      <Pattern>.</Pattern>
    </Attributes>
    <Description>Job Title</Description>
    <Name>JobTitle</Name>
    <Queue>ProjectJobs</Queue>
    <SortOrder>1</SortOrder>
    <Type>LabelSubject</Type>
  </CustomFields>
  <CustomFields>
    <Description>Job Description</Description>
    <Name>JobDescription</Name>
    <Queue>ProjectJobs</Queue>
    <SortOrder>2</SortOrder>
    <Type>LabelContent</Type>
  </CustomFields>
  <CustomFields>
    <Description>Required Skills</Description>
    <Name>JobRequirement</Name>
    <Queue>ProjectJobs</Queue>
    <SortOrder>3</SortOrder>
    <Type>FreeformMultiple</Type>
  </CustomFields>
  <CustomFields>
    <Description>Available Until</Description>
    <Name>JobDue</Name>
    <Queue>ProjectJobs</Queue>
    <SortOrder>4</SortOrder>
    <Type>FreeformDate</Type>
  </CustomFields>
  <Queues>
    <Description>Open Foundry System</Description>
    <Disabled>1</Disabled>
    <Name>NewUser</Name>
  </Queues>
  <Queues>
    <Description>Open Foundry System</Description>
    <Disabled>1</Disabled>
    <Name>NewProject</Name>
  </Queues>
  <Queues>
    <Description>Open Foundry System</Description>
    <Disabled>1</Disabled>
    <Name>LostPassword</Name>
  </Queues>
  <Queues>
    <Description>Open Foundry System</Description>
    <Disabled>1</Disabled>
    <Name>MemberChange</Name>
  </Queues>
  <Queues>
    <Description>Open Foundry System</Description>
    <Disabled>1</Disabled>
    <Name>ProjectNews</Name>
  </Queues>
  <Queues>
    <Description>Open Foundry System</Description>
    <Disabled>1</Disabled>
    <Name>ProjectEvents</Name>
  </Queues>
  <Queues>
    <Description>Open Foundry System</Description>
    <Disabled>1</Disabled>
    <Name>ProjectJobs</Name>
  </Queues>
  <Queues>
    <Description>Open Foundry System</Description>
    <Disabled>1</Disabled>
    <Name>ProjectCitations</Name>
  </Queues>
  <Queues>
    <Description>Open Foundry System</Description>
    <Disabled>1</Disabled>
    <Name>ProjectReferences</Name>
  </Queues>
  <Queues>
    <Description>Open Foundry System</Description>
    <Disabled>1</Disabled>
    <Name>ProjectDownloaders</Name>
  </Queues>
  <ScripActions>
    <Argument>Owner,Cc,AdminCc</Argument>
    <Description>Send mail to Owner, Ccs and AdminCcs as a &quot;comment&quot;</Description>
    <ExecModule>NotifyAsComment</ExecModule>
    <Name>Notify Owner, Ccs and AdminCcs as Comment</Name>
  </ScripActions>
  <ScripActions>
    <Argument>Owner,Cc,AdminCc</Argument>
    <Description>Send mail to Owner, Ccs and AdminCcs</Description>
    <ExecModule>Notify</ExecModule>
    <Name>Notify Owner, Ccs and AdminCcs</Name>
  </ScripActions>
  <Scrips>
    <Description>Registration</Description>
    <Queue>NewUser</Queue>
    <ScripAction>Autoreply To Requestors</ScripAction>
    <ScripCondition>On Create</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>Registration</Template>
  </Scrips>
  <Scrips>
    <CustomCommitCode>$self-&gt;TicketObj-&gt;SetStatus('resolved');</CustomCommitCode>
    <CustomPrepareCode>1;</CustomPrepareCode>
    <Description>Resolve on correspond</Description>
    <Queue>NewUser</Queue>
    <ScripAction>User Defined</ScripAction>
    <ScripCondition>On Correspond</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>DefaultApproval</Template>
  </Scrips>
  <Scrips>
    <Description>Process registration</Description>
    <Queue>NewUser</Queue>
    <ScripAction>Autoreply To Requestors</ScripAction>
    <ScripCondition>On Resolve</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>Complete</Template>
  </Scrips>
  <Scrips>
    <CustomCommitCode>my $Ticket = $self-&gt;TicketObj;
my ($Name, $Password, $RealName, $Email)
    = map { eval{$Ticket-&gt;CustomFieldValue($_)} }
        qw(Name Password RealName Email);

my $OrigObj = RT::User-&gt;new($RT::SystemUser);
$OrigObj-&gt;Load($Email);
$OrigObj-&gt;SetEmailAddress('');
my $UserObj = RT::User-&gt;new($RT::SystemUser);
my ($val, $msg) = $UserObj-&gt;Create( Name =&gt; $Name );

if (!$val) {
    # die $msg;
    $UserObj-&gt;Load($Name);
    die $msg unless $UserObj-&gt;Id;
}

$UserObj-&gt;SetPassword($Password);
$UserObj-&gt;SetRealName($RealName || $Name);
$UserObj-&gt;SetEmailAddress($Email);
$UserObj-&gt;SetPrivileged(1);
</CustomCommitCode>
    <CustomPrepareCode>1;</CustomPrepareCode>
    <Description>CreateUser</Description>
    <Queue>NewUser</Queue>
    <ScripAction>User Defined</ScripAction>
    <ScripCondition>On Resolve</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>Blank</Template>
  </Scrips>
  <Scrips>
    <Description>Notification</Description>
    <Queue>NewProject</Queue>
    <ScripAction>Autoreply To Requestors</ScripAction>
    <ScripCondition>On Create</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>Notification</Template>
  </Scrips>
  <Scrips>
    <Description>Default Approval</Description>
    <Queue>NewProject</Queue>
    <ScripAction>Create Tickets</ScripAction>
    <ScripCondition>On Create</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>DefaultApproval</Template>
  </Scrips>
  <Scrips>
    <CustomCommitCode>my $Ticket = $self-&gt;TicketObj;
my $Requestor = $Ticket-&gt;FirstRequestor or die;

my ($Name, $Description)
    = map $Ticket-&gt;CustomFieldValues($_)-&gt;First-&gt;Content,
        ('ProjectName', 'PublicDescription');

my $QueueObj = RT::Queue-&gt;new($RT::SystemUser);

my ($val, $msg) = $QueueObj-&gt;Create(
    Name =&gt; $Name,
    Description =&gt; $Description,
);
$RT::Logger-&gt;info($msg);

if (!$val) {
    # die $msg;
    $QueueObj-&gt;Load($Name);
    die $msg unless $QueueObj-&gt;Id;
}

$QueueObj-&gt;SetOrigin($Ticket-&gt;Id);

my $AdminCc = $QueueObj-&gt;AdminCc;
$RT::Logger-&gt;debug($AdminCc-&gt;AddMember($Requestor-&gt;PrincipalId));

my @Rights = qw(
    AdminCustomFields AdminQueue
    CommentOnTicket CreateTicket
    OwnTicket ReplyToTicket SeeQueue ShowTicket
    ShowTicketComments Watch WatchAsAdminCc
);

foreach my $right (@Rights) {
    my $ace = RT::ACE-&gt;new( $RT::SystemUser );
    $RT::Logger-&gt;debug($ace-&gt;Create(
        RightName       =&gt; $right,
        Object          =&gt; $QueueObj,
        PrincipalType   =&gt; 'Group',
        PrincipalId     =&gt; $AdminCc-&gt;Id,
    ));
}

1;
</CustomCommitCode>
    <CustomPrepareCode>1;</CustomPrepareCode>
    <Description>CreateProject</Description>
    <Queue>NewProject</Queue>
    <ScripAction>User Defined</ScripAction>
    <ScripCondition>On Resolve</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>Blank</Template>
  </Scrips>
  <Scrips>
    <Description>Default Approval</Description>
    <Queue>LostPassword</Queue>
    <ScripAction>Create Tickets</ScripAction>
    <ScripCondition>On Create</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>DefaultApproval</Template>
  </Scrips>
  <Scrips>
    <Description>SendNotification</Description>
    <Queue>LostPassword</Queue>
    <ScripAction>Autoreply To Requestors</ScripAction>
    <ScripCondition>On Create</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>RecoverPassword</Template>
  </Scrips>
  <Scrips>
    <Description>Complete</Description>
    <Queue>NewProject</Queue>
    <ScripAction>Autoreply To Requestors</ScripAction>
    <ScripCondition>On Resolve</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>CreateProject</Template>
  </Scrips>
  <Scrips>
    <CustomIsApplicableCode>$self-&gt;TicketObj-&gt;Type eq 'ticket'     and not grep { $_-&gt;Type eq 'Comment' } @{$self-&gt;TicketObj-&gt;TransactionBatch}; </CustomIsApplicableCode>
    <Description>BatchNotify</Description>
    <Queue>0</Queue>
    <ScripAction>Notify Requestors, Ccs and AdminCcs</ScripAction>
    <ScripCondition>User Defined</ScripCondition>
    <Stage>TransactionBatch</Stage>
    <Template>BatchReply</Template>
  </Scrips>
  <Scrips>
    <CustomIsApplicableCode>$self-&gt;TicketObj-&gt;Type eq 'ticket'
    and grep { $_-&gt;Type eq 'Comment' } @{$self-&gt;TicketObj-&gt;TransactionBatch};
</CustomIsApplicableCode>
    <Description>CommentNotify</Description>
    <Queue>0</Queue>
    <ScripAction>Notify Owner, Ccs and AdminCcs as Comment</ScripAction>
    <ScripCondition>User Defined</ScripCondition>
    <Stage>TransactionBatch</Stage>
    <Template>BatchReply</Template>
  </Scrips>
  <Scrips>
    <Description>MemberChange</Description>
    <Queue>MemberChange</Queue>
    <ScripAction>Notify Owner</ScripAction>
    <ScripCondition>On Resolve</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>MemberChange</Template>
  </Scrips>
  <Scrips>
    <Description>Default Approval</Description>
    <Queue>MemberChange</Queue>
    <ScripAction>Create Tickets</ScripAction>
    <ScripCondition>On Create</ScripCondition>
    <Stage>TransactionCreate</Stage>
    <Template>DefaultApproval</Template>
  </Scrips>
  <Templates>
    <Content>Subject: Confirm Registration

{loc('Thank you for registering on the [_1] web site.', $RT::Organization)}

{loc(&quot;You have an account with username '[_1]' created for you.&quot;,
    $Ticket-&gt;CustomFieldValues('Name')-&gt;First-&gt;Content)}
{loc('In order to complete your registration, visit the following URL:')}

    {$RT::WebBaseURL}/Foundry/Home/Guest/Verify.html?id={$Ticket-&gt;Id}

{loc('Or just reply to this mail, keeping this string in the subject line:')}

    [{$rtname} #{$Ticket-&gt;id}]

                        {loc('Thank you.')}
                        {$RT::Organization}
</Content>
    <Description>Confirm the registration</Description>
    <Name>Registration</Name>
    <Queue>NewUser</Queue>
  </Templates>
  <Templates>
    <Content>Subject: Registration complete

{loc('You are now a registered user on [_1].', $RT::Organization)}

{loc('As a registered user, you can participate fully in the activities on the site:')}
  - {loc('Post messages to the project message forums')}
  - {loc('Post bugs and patches for projects')}
  - {loc('Sign on as a project developer')}
  - {loc('Start your own project!')}

{loc('You should take some time to read through the Site Documentation,')}
{loc('so you may take full advantage of [_1].', $RT::Organization)}

{loc('Please provide us with feedback on ways that we can improve [_1].', $RT::Organization)}

                        {loc('Thank you.')}
                        {$RT::Organization}
</Content>
    <Description>Registration Complete</Description>
    <Name>Complete</Name>
    <Queue>NewUser</Queue>
  </Templates>
  <Templates>
    <Content>Subject: Project Submitted

{loc('Your project has been submitted to the [_1] administrators.', $RT::Organization)}

{loc('Within 72 hours, you will receive notification of further instructions.')}
{loc('There is no need to reply to this message right now.')}

                        {loc('Thank you.')}
                        {$RT::Organization}
</Content>
    <Description>Notify the user of the new project</Description>
    <Name>Notification</Name>
    <Queue>NewProject</Queue>
  </Templates>
  <Templates>
    <Content>===Create-Ticket: BEGIN
### BEGIN ### { require RT::Workflow; %X = () } ###############################
# {eval \{ RT::Workflow::condition($Tickets\{TOP\}, 'BEGIN') \} or die &quot;=$@&quot;} #
###############################################################################
Subject: BEGIN #{$Tickets\{TOP\}-&gt;Id}
Queue: ___Approvals
Type: code
Status: resolved
Content:
&quot;BEGIN #{$Tickets\{TOP\}-&gt;Id}&quot;
ENDOFCONTENT

===Create-Ticket: T1
### CONDITION ### { require RT::Workflow } ####################################
## { eval \{ RT::Workflow::condition($TOP, 'any', '') \} or die &quot;=$@&quot; } #
### ENTRY POINT ### { &quot;\nDepends-On: BEGIN\n&quot; } ###############################
{join('',map{&quot;Depended-On-By: &quot;.( $_ ? ( $X{&quot;T$_&quot;}{$ID}++, &quot;T$_&quot; ) : &quot;TOP&quot; ).$/}do{0,
### NEXT STATE ################################################################

###############################################################################
}).join($/,map&quot;Requestor: $_&quot;,$TOP-&gt;Requestors-&gt;MemberEmailAddresses)}
###############################################################################
Subject: autoresolve
Type: code
IsEntryPoint: 1
Queue: ___Approvals
ConditionSatisfy: any
ActionProcedure: AutoResolve
OwnerClass: owner
Content-Type: text/plain
Content:
require RT::Workflow;
RT::Workflow::action($TOP, 'AutoResolve', '', 0, $obj);

ENDOFCONTENT

</Content>
    <Description>DefaultApproval</Description>
    <Name>DefaultApproval</Name>
    <Queue>NewProject</Queue>
  </Templates>
  <Templates>
    <Content>OpenFoundry.org Terms and Conditions of Use

Before using this website, please read this agreement relating to your use
of this site carefully.

1. ACCEPTANCE OF TERMS

    By using this website, you agree to be bound by these terms and conditions.
    If you do not agree to these terms and conditions, please do not use the
    site.

2. NO UNLAWFUL OR PROHIBITED USE

    By using the OpenFoundry.org website, you warrant to OpenFoundry.org that
    you will not use this website, or any of the content obtained from this
    website, for any purpose that is unlawful or prohibited by these Terms. If
    you violate any of these Terms, your permission to use the OpenFoundry.org
    website automatically terminates.

3. VIOLATIONS OF TERMS

    Please report any violations of the Terms to the OpenFoundry.org Support
    Manager at contact@openfoundry.org.

</Content>
    <Description>Term Of Use</Description>
    <Name>TermOfUse</Name>
    <Queue>NewUser</Queue>
  </Templates>
  <Templates>
    <Content>===Create-Ticket: BEGIN
### BEGIN ### { require RT::Workflow; %X = () } ###############################

# {eval \{ RT::Workflow::condition($Tickets\{TOP\}, 'BEGIN') \} or die &quot;=$@&quot;} #
###############################################################################

Subject: BEGIN #{$Tickets\{TOP\}-&gt;Id}
Queue: ___Approvals

Type: code
Status: resolved

Content:
&quot;BEGIN #{$Tickets\{TOP\}-&gt;Id}&quot;

ENDOFCONTENT
===Create-Ticket: T1

### CONDITION ### { require RT::Workflow } ####################################
## { eval \{ RT::Workflow::condition($TOP, 'any', '') \} or die &quot;=$@&quot; } #

### ENTRY POINT ### { &quot;\nDepends-On: BEGIN\n&quot; } ###############################
{join('',map{&quot;Depended-On-By: &quot;.( $_ ? ( $X{&quot;T$_&quot;}{$ID}++, &quot;T$_&quot; ) : &quot;TOP&quot; ).$/}do{0,

### NEXT STATE ################################################################
###############################################################################

}).join($/,map&quot;Requestor: $_&quot;,$TOP-&gt;Requestors-&gt;MemberEmailAddresses)}
###############################################################################

Subject: autoresolve
Type: code

IsEntryPoint: 1
Queue: ___Approvals

ConditionSatisfy: any
ActionProcedure: AutoResolve

OwnerClass: owner
Content-Type: text/plain

Content:
require RT::Workflow;

RT::Workflow::action($TOP, 'AutoResolve', '');
ENDOFCONTENT

</Content>
    <Description>DefaultApproval</Description>
    <Name>DefaultApproval</Name>
    <Queue>LostPassword</Queue>
  </Templates>
  <Templates>
    <Content>Subject: Reset Password

{loc('Please visit this URL to reset your password on [_1]:', $RT::Organization)}
    { $RT::WebBaseURL }/Foundry/Home/Guest/Recover.html?token={
$Ticket-&gt;Requestors-&gt;UserMembersObj-&gt;First-&gt;RecoverPasswordHash }
{loc('Thank you.')}

</Content>
    <Description>Recover Password</Description>
    <Name>RecoverPassword</Name>
    <Queue>LostPassword</Queue>
  </Templates>
  <Templates>
    <Content>OpenFoundry.org Terms and Conditions of Use

Before using this website, please read this agreement relating to your use
of this site carefully.

1. ACCEPTANCE OF TERMS

    By using this website, you agree to be bound by these terms and conditions.
    If you do not agree to these terms and conditions, please do not use the
    site.

2. NO UNLAWFUL OR PROHIBITED USE

    By using the OpenFoundry.org website, you warrant to OpenFoundry.org that
    you will not use this website, or any of the content obtained from this
    website, for any purpose that is unlawful or prohibited by these Terms. If
    you violate any of these Terms, your permission to use the OpenFoundry.org
    website automatically terminates.

3. VIOLATIONS OF TERMS

    Please report any violations of the Terms to the OpenFoundry.org Support
    Manager at contact@openfoundry.org.

</Content>
    <Description>Term of new project</Description>
    <Name>TermOfProject</Name>
    <Queue>NewProject</Queue>
  </Templates>
  <Templates>
    <Content>Subject: Project Created

{loc('Thank you for choosing [_1].', $RT::Organization)}

{loc('You have now successfully registered a project on [_1].', $RT::Organization)}

                        {loc('Thank you.')}
                        {$RT::Organization}
</Content>
    <Description>Notify user the completion of project</Description>
    <Name>CreateProject</Name>
    <Queue>NewProject</Queue>
  </Templates>
  <Templates>
    <Content>RT-Attach-Message: yes

{
    my $date = $Transaction-&gt;CreatedObj;
    $date-&gt;OriginalUser( $Transaction-&gt;OriginalUser );
    $date-&gt;AsString;
}: {loc('Request [_1] was acted upon.', $Ticket-&gt;id)}
{join(&quot;\n&quot;,

loc('       Queue: [_1]', $Ticket-&gt;QueueObj-&gt;Name),
loc('     Subject: [_1]', $Ticket-&gt;Subject || loc(&quot;(No subject given)&quot;)),

loc('       Owner: [_1]', $Ticket-&gt;OwnerObj-&gt;Name),
loc('  Requestors: [_1]', $Ticket-&gt;RequestorNames),

loc('      Status: [_1]', loc($Ticket-&gt;Status)),
loc(' Ticket &lt;URL: [_1] &gt;', $RT::WebURL.'Foundry/Project/Tracker/Display.html?id='.$Ticket-&gt;id.'&amp;Queue='.$Ticket-&gt;QueueObj-&gt;Id),

loc(&quot;(Contact project admins if you don't want to receive mails in this project.)&quot;),
)

}
{
    my @Batch = grep $_-&gt;BriefDescription, @{$Ticket-&gt;TransactionBatch} or
die;
    foreach my $Transaction (grep {!$_-&gt;ContentObj} @Batch) {
        $OUT .= &quot;* &quot; . $Transaction-&gt;Description . &quot;\n&quot;;
    }
    foreach my $Transaction (grep {$_-&gt;ContentObj} @Batch) {
        $OUT .= &quot;* &quot; . $Transaction-&gt;Description . &quot;\n\n&quot;;
        $OUT .= $Transaction-&gt;ContentObj-&gt;Content . &quot;\n\n&quot;;
    }
}

</Content>
    <Description>Batch Reply</Description>
    <Name>BatchReply</Name>
    <Queue>0</Queue>
  </Templates>
  <Templates>
    <Content>{
    my ($Type, $Role, $QueueId, $Queue) = split(/\s+/, $Ticket-&gt;Subject, 4);

    (($Type eq 'Invite') ? (
	&quot;Subject: Invitation to $RT::Organization\n\n&quot; . loc(
	    &quot;An administrator of '[_1]' has invited you to its staff list.&quot;,
	    $Queue
	) . &quot;\n&quot; . loc(
	    &quot;Your role in the project will be '[_1]'.&quot;, loc(
		($Role =~ /^Admin/) ? 'Admin' : 'Member'
	    )
	) . &quot;\n&quot; . loc(
	    &quot;This invitation will expire in 14 days.&quot;
	) . &quot;\n\n&quot; . loc(
	    &quot;Please visit the following URL to register your account on [_1]:&quot;,
	    $RT::Organization
	) . &quot;\n&quot; . &quot;    $RT::WebBaseURL/Foundry/Home/Guest/Register.html?Email=&quot; . 
	$Ticket-&gt;OwnerObj-&gt;EmailAddress
    ) : (
	&quot;Subject: Project Role Changed\n\n&quot; . loc((
	    ($Type eq 'Add')
		? &quot;An administrator of '[_1]' has added you to its staff list.&quot; :
	    ($Type eq 'Edit')
		? &quot;An administrator of '[_1]' has changed your role in the staff list.&quot; :
	    ($Type eq 'Delete')
		? &quot;An administrator of '[_1]' has removed you from its staff list.&quot; :
	    die &quot;!&quot;
	), $Queue) . &quot;\n&quot; . (
	    $Role ? loc(&quot;Your role in the project is now '[_1]'.&quot;, loc(
			($Role =~ /^Admin/) ? 'Admin' : 'Member'
		    ))
		: loc(&quot;You no longer have staff privileges in the project.&quot;)
	)
    )) . &quot;\n\n&quot; . loc(
	&quot;If you have any questions, please contact '[_1]'.&quot;,
	($Type eq 'Invite') ? $Ticket-&gt;RequestorAddresses : $Ticket-&gt;RequestorNames
    )
}

			{loc(&quot;Thank you.&quot;)}
			{$RT::Organization}
</Content>
    <Description>MemberChange</Description>
    <Name>MemberChange</Name>
    <Queue>MemberChange</Queue>
  </Templates>
  <Templates>
    <Content>===Create-Ticket: BEGIN
### BEGIN ### { require RT::Workflow; %X = () } ###############################

# {eval \{ RT::Workflow::condition($Tickets\{TOP\}, 'BEGIN') \} or die &quot;=$@&quot;} #
###############################################################################

Subject: BEGIN #{$Tickets\{TOP\}-&gt;Id}
Queue: ___Approvals

Type: code
Status: resolved

Content:
&quot;BEGIN #{$Tickets\{TOP\}-&gt;Id}&quot;

ENDOFCONTENT
===Create-Ticket: T1

### CONDITION ### { require RT::Workflow } ####################################
## { eval \{ RT::Workflow::condition($TOP, 'any', '') \} or die &quot;=$@&quot; } #

### ENTRY POINT ### { &quot;\nDepends-On: BEGIN\n&quot; } ###############################
{join('',map{&quot;Depended-On-By: &quot;.( $_ ? ( $X{&quot;T$_&quot;}{$ID}++, &quot;T$_&quot; ) : &quot;TOP&quot; ).$/}do{0,

### NEXT STATE ################################################################
###############################################################################

}).join($/,map&quot;Requestor: $_&quot;,$TOP-&gt;Requestors-&gt;MemberEmailAddresses)}
###############################################################################

Subject: AutoResolve
Type: code

IsEntryPoint: 1
Queue: ___Approvals

ConditionSatisfy: any
ActionProcedure: AutoResolve

OwnerClass: owner
Content-Type: text/plain

Content:
require RT::Workflow;

RT::Workflow::action($TOP, 'AutoResolve', '');
ENDOFCONTENT

</Content>
    <Description>DefaultApproval</Description>
    <Name>DefaultApproval</Name>
    <Queue>MemberChange</Queue>
  </Templates>
  <Users>
    <EmailAddress>guest@example.org</EmailAddress>
    <Name>guest</Name>
    <Privileged>1</Privileged>
  </Users>
</InitialData>
