equal
deleted
inserted
replaced
120 |
120 |
121 def _generate_schema_pot(w, vreg, schema, libconfig=None): |
121 def _generate_schema_pot(w, vreg, schema, libconfig=None): |
122 from copy import deepcopy |
122 from copy import deepcopy |
123 from cubicweb.i18n import add_msg |
123 from cubicweb.i18n import add_msg |
124 from cubicweb.web import uicfg |
124 from cubicweb.web import uicfg |
125 from cubicweb.schema import META_RTYPES, SYSTEM_RTYPES, CONSTRAINTS |
125 from cubicweb.schema import META_RTYPES, WORKFLOW_RTYPES, CONSTRAINTS |
126 no_context_rtypes = META_RTYPES | SYSTEM_RTYPES |
126 no_context_rtypes = META_RTYPES | WORKFLOW_RTYPES |
127 w('# schema pot file, generated on %s\n' |
127 w('# schema pot file, generated on %s\n' |
128 % datetime.now().strftime('%Y-%m-%d %H:%M:%S')) |
128 % datetime.now().strftime('%Y-%m-%d %H:%M:%S')) |
129 w('# \n') |
129 w('# \n') |
130 w('# singular and plural forms for each entity type\n') |
130 w('# singular and plural forms for each entity type\n') |
131 w('\n') |
131 w('\n') |