Modify

Opened 7 years ago

Closed 7 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

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)

Change History (1)

comment:1 Changed 7 years ago by coderanger

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

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.

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.