Changeset 267 for ZMS/trunk/ZMSGlobals.py
- Timestamp:
- 03.11.2008 14:37:55 (4 years ago)
- File:
-
- 1 edited
-
ZMS/trunk/ZMSGlobals.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/ZMSGlobals.py
r123 r267 1466 1466 ############################################################################ 1467 1467 # 1468 # PLUGINS 1469 # 1470 ############################################################################ 1471 1472 # -------------------------------------------------------------------------- 1473 # ZMSGlobals.getPlugin: 1474 # -------------------------------------------------------------------------- 1475 def getPlugin( self, path, REQUEST, pars={}): 1476 """ 1477 Executes plugin. 1478 @param path: the plugin path in $ZMS_HOME/plugins/ 1479 @type path: C{string} 1480 @param REQUEST: the triggering request 1481 @type REQUEST: ZPublisher.HTTPRequest 1482 @param pars: the request parameters 1483 @type pars: C{dict} 1484 @return: Result of the execution or error-message 1485 """ 1486 try: 1487 # Set request-parameters. 1488 for k in pars.keys(): 1489 v = REQUEST.get( k, None) 1490 REQUEST.set( k, pars[k]) 1491 pars[k] = v 1492 # Execute plugin. 1493 rtn = self.dt_html( self.localfs_read( self.localfs_package_home()+'/plugins/'+path), REQUEST) 1494 # Restore request-parameters. 1495 for k in pars.keys(): 1496 REQUEST.set( k, pars[k]) 1497 except: 1498 rtn = _globals.writeException( self, '[getPlugin]') 1499 return rtn 1500 1501 1502 ############################################################################ 1503 # 1468 1504 # DATE TIME 1469 1505 #
Note: See TracChangeset
for help on using the changeset viewer.
