0

Add validator and definition for beginnings of overlay python glue so that only the right overlays

show up for a specific render
This commit is contained in:
Richard Pastrick
2012-04-09 11:49:03 -07:00
parent 7433f06edb
commit 3ded0cfa9e
2 changed files with 8 additions and 0 deletions

View File

@@ -51,6 +51,13 @@ def validateMarkers(filterlist):
raise ValidationException("%r must be a function"% x)
return filterlist
def validateOverlays(renderlist):
if type(renderlist) != list:
raise ValidationException("Overlay must specify a list of renders")
for x in renderlist:
print x
return renderlist
def validateWorldPath(worldpath):
_, worldpath = checkBadEscape(worldpath)
abs_path = os.path.abspath(os.path.expanduser(worldpath))