Modify

Opened 10 years ago

Closed 10 years ago

#2367 closed defect (worksforme)

Error: Macro ServerDown

Reported by: david.barnhill@… 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)

Change History (1)

comment:1 Changed 10 years ago by Noah Kantrowitz

Resolution: worksforme
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.