Opened 9 years ago

Closed 9 years ago

#2367 closed defect (worksforme)

Error: Macro ServerDown

Reported by: david.barnhill@… Owned by: coderanger
Priority: high Component: ServerDownMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11


I am getting the following erro with the ServerDown macro:

Error: Macro ServerDown(, [80 ,[30]]) failed

invalid literal for int(): [80

I built the ServerDown macro as follows:

python bdist_egg

Installed with easy_install:

easy_install ./TracServerDownMacro-1.0-py2.4.egg

Modified the trac.ini

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. port 80   [[ServerDown(, [80 ,[30]])]]

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by coderanger

  • Resolution set to worksforme
  • Status changed from new to closed

You need to call it as [[ServerDown(, 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.

Add Comment

Modify Ticket

as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.