<token> create a randomly generated token in the database
name
token
xml namespace
http://moyaproject.com/db
A string column containing a randomly generated token. Note, that the string is not guaranteed to be unique.
If you want a unique token you will have to implement that logic independently.
Example
< token name= "token" length= "16" unique= "yes" characters= "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" / >
attributes
name
purpose
type
required?
default
choices
characters
Choice of characters to use in token (if set, this overrides other character related attributes).
text
No
digits
Use digits?
boolean
No
yes
length
Maximum length of token
integer
Yes
lowercase
Use lower case characters?
boolean
No
yes
punctuation
Use punctuation?
boolean
No
no
size
Number of randomly generated characters in the token (defaults to same as length)
integer
No
uppercase
Use upper case characters?
boolean
No
no
inherited attributes
name
purpose
type
required?
default
choices
blank
Allow blank?
boolean
No
yes
default
Default value
text
No
formfield
Macro to create a form field, used in admin
text
No
help
Additional help text for use in object forms
text
No
index
Create index?
boolean
No
no
label
Short description of field purpose
text
No
name
Name of the element
text
Yes
null
Allow null?
boolean
No
no
primary
Use as primary key?
boolean
No
unique
Impose unique constraint?
boolean
No
no