|
- from generation.isPipeMany import *
- from generation.isPipeRecent import *
-
- def fieldFormat(fmtMany, fmtPlain, fmtRecent, name, structure):
- fmt = fmtPlain
- if (
- isPipeRecent(name, structure.core) or
- isPipeRecent(name, structure.service)
- ):
- fmt = fmtRecent
-
- if (
- isPipeMany(name, structure.core) or
- isPipeMany(name, structure.service)
- ):
- fmt = fmtMany
- return fmt
|