[Moin-devel] CVS: MoinMoin/macro __init__.py,1.1,1.2

J?rgen Hermann jhermann at users.sourceforge.net
Wed Apr 17 13:02:32 EDT 2002


Update of /cvsroot/moin/MoinMoin/macro
In directory usw-pr-cvs1:/tmp/cvs-serv12084/MoinMoin/macro

Modified Files:
	__init__.py 
Log Message:
Passing request to formatters, short docs for macro interface


Index: __init__.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/macro/__init__.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** __init__.py	25 Nov 2000 16:11:16 -0000	1.1
--- __init__.py	17 Apr 2002 19:54:35 -0000	1.2
***************
*** 5,8 ****
--- 5,19 ----
      All rights reserved, see COPYING for details.
  
+     The canonical interface to macros is their execute() function,
+     which gets passed an instance of the Macro class. Such an instance
+     has the four members parser, formatter, form and request.
+ 
+     Using "form" directly is deprecated and should be replaced
+     by "request.form".
+ 
+     Besides the execute() function, macros can export additional
+     functions to offer services to other macros or actions. A few
+     actually do that, e.g. AttachFile.
+ 
      $Id$
  """





More information about the Moin-devel mailing list