Menu

#51 Provide API for extending Versa function library

open
None
5
2005-10-28
2005-08-18
Anonymous
No

Currently, whenever I need to define a new extension
function for Versa (which is very often for me), I end
up having to overwrite
Ft/Rdf/Parsers/Versa/__init__.py in order update
g_extFunctions = {}
with the extension functions. For example:

g_extFunctions = {}

from VersaFuXiExtensions import FUNCTIONS
from Ft.Share.ExtensionModules.VersaExtensions import
FUNCTIONS as CIDRVersaFunctions
g_extFunctions.update(CIDRVersaFunctions)
g_extFunctions.update(FUNCTIONS)

This is bad because I can't have seperate software
installations add their own extensions w/out manually
editing that file to account for both *and* if that
file ever changes in the CVS tree those changes would
be overwritten by the installation process. Given that
we have a precedent with our XPath/XSLT implementations
I would think it wouldn't be hard to have a bare bones
mechanism for registering extension functions - or
perhaps the problem is with the specification which
isn't very clear on how this should work.

Discussion

  • Mike Brown

    Mike Brown - 2005-10-28
    • labels: 377967 -->
    • milestone: 417169 -->
    • assigned_to: nobody --> uche
    • summary: Versa has no mechanism for extending it's function library --> Provide API for extending Versa function library
     
  • Mike Brown

    Mike Brown - 2005-10-28

    Logged In: YES
    user_id=371366

    Changed from bug to feature request; retitled

     

Log in to post a comment.

MongoDB Logo MongoDB