Source

trac-ticketlinks / sample-plugins / Timestamp.py

Diff from to

File sample-plugins/Timestamp.py

 """Inserts the current time (in seconds) into the wiki page."""
 
+revision = "$Rev$"
+url = "$URL$"
+
 #
 # The following shows the code for macro, old-style.
 #
 class TimestampMacro(WikiMacroBase):
     """Inserts the current time (in seconds) into the wiki page."""
 
-    revision = "$Rev$"
-    url = "$URL$"
-
     def expand_macro(self, formatter, name, args):
         t = datetime.now(utc)
         return tag.b(format_datetime(t, '%c'))