Last active
August 29, 2015 14:01
-
-
Save ivanteoh/1d61697659ffb3fe22bc to your computer and use it in GitHub Desktop.
plomino database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plominodatabase id="demo"> | |
| <design> | |
| <dbsettings version="1.18"> | |
| <AboutDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></AboutDescription> | |
| <UsingDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></UsingDescription> | |
| <IndexAttachments type="Products.Archetypes.Field.BooleanField">False</IndexAttachments> | |
| <FulltextIndex type="Products.Archetypes.Field.BooleanField">True</FulltextIndex> | |
| <IndexInPortal type="Products.Archetypes.Field.BooleanField">False</IndexInPortal> | |
| <debugMode type="Products.Archetypes.Field.BooleanField">False</debugMode> | |
| <CountDocuments type="Products.Archetypes.Field.BooleanField">False</CountDocuments> | |
| <DateTimeFormat type="Products.Archetypes.Field.StringField">%Y-%m-%d</DateTimeFormat> | |
| <StartPage type="Products.Archetypes.Field.StringField">pgDemo</StartPage> | |
| <i18n type="Products.Archetypes.Field.StringField"/> | |
| <DoNotListUsers type="Products.Archetypes.Field.BooleanField">False</DoNotListUsers> | |
| <DoNotReindex type="Products.Archetypes.Field.BooleanField">False</DoNotReindex> | |
| <IsDatabaseTemplate type="Products.Archetypes.Field.BooleanField">False</IsDatabaseTemplate> | |
| <excludeFromNav type="Products.Archetypes.Field.BooleanField">False</excludeFromNav> | |
| <acl AnomynousAccessRight="PlominoReader" AuthenticatedAccessRight="NoAccess"> | |
| <params id="UserRoles"> | |
| <param> | |
| <value><struct> | |
| </struct></value> | |
| </param> | |
| </params> | |
| <params id="SpecificRights"> | |
| <param> | |
| <value><struct> | |
| <member> | |
| <name>specific_deletedocument</name> | |
| <value><string>PlominoAuthor</string></value> | |
| </member> | |
| </struct></value> | |
| </param> | |
| </params> | |
| </acl> | |
| </dbsettings> | |
| <element id="pgDemo" title="Demo" type="PlominoForm"> | |
| <id type="Products.Archetypes.Field.StringField">pgDemo</id> | |
| <onCreateDocument type="Products.Archetypes.Field.TextField"><![CDATA[]]></onCreateDocument> | |
| <onOpenDocument type="Products.Archetypes.Field.TextField"><![CDATA[]]></onOpenDocument> | |
| <beforeSaveDocument type="Products.Archetypes.Field.TextField"><![CDATA[]]></beforeSaveDocument> | |
| <onSaveDocument type="Products.Archetypes.Field.TextField"><![CDATA[]]></onSaveDocument> | |
| <onDeleteDocument type="Products.Archetypes.Field.TextField"><![CDATA[]]></onDeleteDocument> | |
| <onSearch type="Products.Archetypes.Field.TextField"><![CDATA[]]></onSearch> | |
| <beforeCreateDocument type="Products.Archetypes.Field.TextField"><![CDATA[req = getattr(plominoContext, 'REQUEST') | |
| submitted = req.get('submit', None) | |
| if not submitted: | |
| return | |
| db = plominoContext.getParentDatabase() | |
| full_name_field = req.get('full_name', '') | |
| Log('full_name: %s' % full_name_field, 'pgDemo/beforeCreateDocument') | |
| if not(full_name_field and full_name_field.strip()): | |
| db.writeMessageOnPage("Please enter the 'Full Name'.", req) | |
| req.set('full_name', '')]]></beforeCreateDocument> | |
| <FormLayout type="Products.Archetypes.Field.TextField"><![CDATA[ | |
| <p>Full Name <span class="plominoFieldClass">full_name</span></p> | |
| <p>Date <span class="plominoFieldClass">date_birth</span></p> | |
| <p><span class="plominoActionClass">submit</span></p> | |
| ]]></FormLayout> | |
| <FormMethod type="Products.Archetypes.Field.TextField"><![CDATA[POST]]></FormMethod> | |
| <DocumentTitle type="Products.Archetypes.Field.TextField"><![CDATA[]]></DocumentTitle> | |
| <DynamicDocumentTitle type="Products.Archetypes.Field.BooleanField">False</DynamicDocumentTitle> | |
| <StoreDynamicDocumentTitle type="Products.Archetypes.Field.BooleanField">False</StoreDynamicDocumentTitle> | |
| <DocumentId type="Products.Archetypes.Field.TextField"><![CDATA[]]></DocumentId> | |
| <ActionBarPosition type="Products.Archetypes.Field.StringField">TOP</ActionBarPosition> | |
| <HideDefaultActions type="Products.Archetypes.Field.BooleanField">False</HideDefaultActions> | |
| <HideInMenu type="Products.Archetypes.Field.BooleanField">False</HideInMenu> | |
| <isSearchForm type="Products.Archetypes.Field.BooleanField">False</isSearchForm> | |
| <isPage type="Products.Archetypes.Field.BooleanField">True</isPage> | |
| <SearchView type="Products.Archetypes.Field.StringField"/> | |
| <SearchFormula type="Products.Archetypes.Field.TextField"><![CDATA[]]></SearchFormula> | |
| <Position type="Products.Archetypes.Field.IntegerField"/> | |
| <ResourcesJS type="Products.Archetypes.Field.TextField"><![CDATA[]]></ResourcesJS> | |
| <ResourcesCSS type="Products.Archetypes.Field.TextField"><![CDATA[]]></ResourcesCSS> | |
| <excludeFromNav type="Products.Archetypes.Field.BooleanField">False</excludeFromNav> | |
| <elements> | |
| <element id="full_name" title="Full Name" type="PlominoField"> | |
| <id type="Products.Archetypes.Field.StringField">full_name</id> | |
| <FieldType type="Products.Archetypes.Field.StringField">TEXT</FieldType> | |
| <FieldMode type="Products.Archetypes.Field.StringField">EDITABLE</FieldMode> | |
| <Formula type="Products.Archetypes.Field.TextField"><![CDATA[]]></Formula> | |
| <FieldReadTemplate type="Products.Archetypes.Field.StringField"/> | |
| <FieldEditTemplate type="Products.Archetypes.Field.StringField"/> | |
| <Mandatory type="Products.Archetypes.Field.BooleanField">True</Mandatory> | |
| <ValidationFormula type="Products.Archetypes.Field.TextField"><![CDATA[]]></ValidationFormula> | |
| <ToBeIndexed type="Products.Archetypes.Field.BooleanField">False</ToBeIndexed> | |
| <IndexType type="Products.Archetypes.Field.StringField">DEFAULT</IndexType> | |
| <HTMLAttributesFormula type="Products.Archetypes.Field.TextField"><![CDATA[]]></HTMLAttributesFormula> | |
| </element> | |
| <element id="date_birth" title="Date of Birth" type="PlominoField"> | |
| <id type="Products.Archetypes.Field.StringField">date_birth</id> | |
| <FieldType type="Products.Archetypes.Field.StringField">DATETIME</FieldType> | |
| <FieldMode type="Products.Archetypes.Field.StringField">EDITABLE</FieldMode> | |
| <Formula type="Products.Archetypes.Field.TextField"><![CDATA[]]></Formula> | |
| <FieldReadTemplate type="Products.Archetypes.Field.StringField"/> | |
| <FieldEditTemplate type="Products.Archetypes.Field.StringField"/> | |
| <Mandatory type="Products.Archetypes.Field.BooleanField">True</Mandatory> | |
| <ValidationFormula type="Products.Archetypes.Field.TextField"><![CDATA[]]></ValidationFormula> | |
| <ToBeIndexed type="Products.Archetypes.Field.BooleanField">False</ToBeIndexed> | |
| <IndexType type="Products.Archetypes.Field.StringField">DEFAULT</IndexType> | |
| <HTMLAttributesFormula type="Products.Archetypes.Field.TextField"><![CDATA[]]></HTMLAttributesFormula> | |
| </element> | |
| <element id="submit" title="Submit" type="PlominoAction"> | |
| <id type="Products.Archetypes.Field.StringField">submit</id> | |
| <ActionType type="Products.Archetypes.Field.StringField">SAVE</ActionType> | |
| <ActionDisplay type="Products.Archetypes.Field.StringField">SUBMIT</ActionDisplay> | |
| <Content type="Products.Archetypes.Field.TextField"><![CDATA[]]></Content> | |
| <Hidewhen type="Products.Archetypes.Field.TextField"><![CDATA[]]></Hidewhen> | |
| <InActionBar type="Products.Archetypes.Field.BooleanField">False</InActionBar> | |
| </element> | |
| </elements> | |
| </element> | |
| </design> | |
| </plominodatabase> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment