Ticket #335: provisioning_getxmlfile.patch

File provisioning_getxmlfile.patch, 673 bytes (added by dreid, at 2008-03-09T04:27:49Z)
  • src/allmydata/provisioning.py

    diff -rN -u old-tahoe/src/allmydata/provisioning.py new-tahoe/src/allmydata/provisioning.py
    old new  
    11
    22from nevow import inevow, loaders, rend, tags as T
    33import math
    4 from allmydata.util import mathutil, sibpath
    5 
    6 def getxmlfile(name):
    7     return loaders.xmlfile(sibpath.sibpath(__file__, "web/%s" % name))
     4from allmydata.util import mathutil
     5from allmydata.web.common import getxmlfile
    86
    97# factorial and binomial copied from
    108# http://mail.python.org/pipermail/python-list/2007-April/435718.html