Modify ↓
Opened 17 years ago
Closed 17 years ago
#2367 closed defect (worksforme)
Error: Macro ServerDown
Reported by: | Owned by: | Noah Kantrowitz | |
---|---|---|---|
Priority: | high | Component: | ServerDownMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I am getting the following erro with the ServerDown macro:
Error: Macro ServerDown(Server.org, [80 ,[30]]) failed invalid literal for int(): [80
I built the ServerDown macro as follows:
python setup.py bdist_egg
Installed with easy_install:
easy_install ./TracServerDownMacro-1.0-py2.4.egg
Modified the trac.ini
[components] serverdownmacro.* = enable serverdownmacro.macro.serverdownmacro = enabled
Updated the repository
trac-admin /home/trac/project upgrade trac-admin /home/trac/project wiki upgrade
Added the following line to Wiki page:
1. Server.org port 80 [[ServerDown(Server.org, [80 ,[30]])]]
Attachments (0)
Note: See
TracTickets for help on using
tickets.
You need to call it as
[[ServerDown(Server.org, 80 ,30)]]
. In usage examples anything in[]
is optional, so the example is showing the second and third options both have defaults and so are not required.