mottosso / be

minimal directory and environment management system for collaborative creative projects
GNU Lesser General Public License v2.1
47 stars 4 forks source link

BE_TOPICS Validation #50

Open ruchitinfushion opened 5 years ago

ruchitinfushion commented 5 years ago

Is there any way to validate "BE_Topics" ? for prevention of the creation of unwanted data.

For eg

Regex - Allow only certain department if "BE_BINDING"=asset

asset: "{cwd}/{0}/assets/{1}/{2:modeling|lighting|rigging}/private/{user}"

Regex - Allow only 3 digit in shot entity

sequence: "{cwd}/{0}/film/{1}/{2:^\d{3}}/{3}/private/{user}"

And is it ok to disable No development directory found. Create? [Y/n]: option in cli.py file? Because i'm doing folder ingestion via external python script, so if directory doesn't exists for relative "BE_Topics" then it means invalid input in my case.

mottosso commented 5 years ago

Sounds like two good ideas.

And is it ok to disable No development directory found. Create? [Y/n]: option in cli.py file?

Also sounds like a good idea, could you make a separate issue for this?

mottosso commented 5 years ago

How about validating it with a regex, via by setting BE_TOPICS_REGEX=my-regex?

ruchitinfushion commented 5 years ago

Seems like a good idea.