Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| #!/bin/sh | |
| if [ "$#" -lt 1 ]; then | |
| echo -e "$# is Illegal number of parameters.\n" | |
| echo -e "Usage: $0 confluence-installed-dir\n" | |
| echo "Example: $0 /var/atlassian/atlassian-confluence-6.7.0" | |
| exit 1 | |
| fi | |
| CONF_DIR=$1 |
| <!-- @@Formula: | |
| String GenerateChartUrl(String prmRawData, String prmLabelData) | |
| { | |
| String log = ""; | |
| int recentCount = 20; | |
| int scaleScope = 4; | |
| String urlHeader = "https://chart.googleapis.com/chart?"; | |
| String urlCht = "cht=lc"; | |
| String urlChs = "chs=800x320"; |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!