Package cubicweb :: Package devtools :: Module devctl
[hide private]
[frames] | no frames]

Module devctl

source code

additional cubicweb-ctl commands and command handlers for cubicweb and cubicweb's cubes development
Classes [hide private]
  DevConfiguration
dummy config to get full library schema and appobjects for a cube or for cubicweb (without a home)
  UpdateCubicWebCatalogCommand
Update i18n catalogs for cubicweb library.
  UpdateCubeCatalogCommand
Update i18n catalogs for cubes. If no cube is specified, update catalogs of all registered cubes.
  NewCubeCommand
Create a new cube.
  ExamineLogCommand
Examine a rql log file.
  GenerateSchema
Generate schema image for the given cube
  GenerateQUnitHTML
Generate a QUnit html file to see test in your browser
Functions [hide private]
 
cleanup_sys_modules(config) source code
 
generate_schema_pot(w, cubedir=None)
generate a pot file with schema specific i18n messages
source code
 
_generate_schema_pot(w, vreg, schema, libconfig=None) source code
 
_iter_vreg_objids(vreg, done) source code
 
cw_languages() source code
 
update_cubes_catalogs(cubes) source code
 
update_cube_catalogs(cubedir) source code
Variables [hide private]
  DEFAULT_POT_HEAD = r'''msgid...
Function Details [hide private]

generate_schema_pot(w, cubedir=None)

source code 

generate a pot file with schema specific i18n messages

notice that relation definitions description and static vocabulary should be marked using '_' and extracted using xgettext


Variables Details [hide private]

DEFAULT_POT_HEAD

Value:
r'''msgid ""
msgstr ""
"Project-Id-Version: cubicweb %s\n"
"PO-Revision-Date: 2008-03-28 18:14+0100\n"
"Last-Translator: Logilab Team <contact@logilab.fr>\n"
"Language-Team: fr <contact@logilab.fr>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
...