Skip to content

Commit

Permalink
supports @writeonce for config attributes [fix bug 1225205]
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Moore committed Sep 11, 2007
1 parent 0a8ec6a commit 76ba571
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/const.py
Expand Up @@ -57,3 +57,4 @@
USES='uses'
VERSION='version'
VOID='void'
WRITEONCE='writeonce'
2 changes: 2 additions & 0 deletions bin/yuidoc_generate.py
Expand Up @@ -385,6 +385,8 @@ def allprop_sort(x, y):
if const.STATIC in config: configdata[const.STATIC] = const.STATIC
transferToDict( const.FINAL, config, configdata )
if const.FINAL in config: configdata[const.FINAL] = const.READONLY
transferToDict( const.WRITEONCE, config, configdata )
if const.WRITEONCE in config: configdata[const.WRITEONCE] = const.WRITEONCE
configs.append(configdata)

# Methods
Expand Down
2 changes: 1 addition & 1 deletion bin/yuidoc_parse.py
Expand Up @@ -139,7 +139,7 @@ def getClassName(self, classString, namespace):

# tags that do not require a description, used by the tokenizer so that these
# tags can be used above the block description without breaking things
singleTags = "constructor public private protected static final beta experimental"
singleTags = "constructor public private protected static final beta experimental writeonce"

# guess the name and type of a block based upon the code following it
guess_pat = re.compile('\s*?(var|function)?\s*?(\w+)\s*?[=:]\s*?(function)?.*', re.S)
Expand Down
2 changes: 1 addition & 1 deletion template/main.tmpl
Expand Up @@ -399,7 +399,7 @@
#for $config in $configs
<div class="$config.access">
<h4><a name="$config.name">$config.name</a>
<code>- #if $config.access#$config.access #end if##if $config.static#$config.static #end if##if $config.final#$config.final #end if#$config.type</code>
<code>- #if $config.access#$config.access #end if##if $config.static#$config.static #end if##if $config.writeonce#$config.writeonce #end if##if $config.final#$config.final #end if#$config.type</code>
</h4>
<div class="detail">
<div class="description">
Expand Down

0 comments on commit 76ba571

Please sign in to comment.