Commit fa6e44fe authored by Sebastien Robin's avatar Sebastien Robin

added method removeLocalConstraint


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2856 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 28063c49
...@@ -469,6 +469,12 @@ def writeLocalConstraint(class_id, text, create=1): ...@@ -469,6 +469,12 @@ def writeLocalConstraint(class_id, text, create=1):
f = open(path, 'w') f = open(path, 'w')
f.write(text) f.write(text)
def removeLocalConstraint(class_id):
instance_home = getConfiguration().instancehome
path = os.path.join(instance_home, "Constraint")
path = os.path.join(path, "%s.py" % class_id)
os.remove(path)
def getLocalDocumentList(): def getLocalDocumentList():
instance_home = getConfiguration().instancehome instance_home = getConfiguration().instancehome
path = os.path.join(instance_home, "Document") path = os.path.join(instance_home, "Document")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment