Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Project sandbox flag #405

Merged
merged 3 commits into from
May 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions upgrades/pmo/catalog/0.65.2-sandbox.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2016-2019 Zerocracy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to read
the Software only. Permissions is hereby NOT GRANTED to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="xml"/>
<xsl:strip-space elements="*"/>
<xsl:template match="project[not(sandbox)]">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
<xsl:choose>
<xsl:when test="@id = ('CAZPZR9FS', 'C63314D6Z', 'C7JGJ00DP')">
<sandbox>true</sandbox>
</xsl:when>
<xsl:otherwise>
<sandbox>false</sandbox>
</xsl:otherwise>
</xsl:choose>
</xsl:copy>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1 change: 1 addition & 0 deletions xml/pmo/catalog/simple.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ SOFTWARE.
<code>cus_CNAv9ocFDTh4Ww</code>
</recharge>
<alive>false</alive>
<sandbox>true</sandbox>
<prefix>PMO/</prefix>
<publish>false</publish>
</project>
Expand Down
1 change: 1 addition & 0 deletions xsd/pmo/catalog.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ SOFTWARE.
<xs:element name="parent" minOccurs="0" type="projectID"/>
<xs:element name="created" type="xs:dateTime"/>
<xs:element name="alive" type="xs:boolean"/>
<xs:element name="sandbox" minOccurs="0" type="xs:boolean"/>
<xs:element name="recharge" minOccurs="0">
<xs:complexType>
<xs:all>
Expand Down