per cube message
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 28 Jul 2009 11:05:07 +0200
changeset 2527 e60db6312aa0
parent 2526 40e41eb34a7d
child 2528 6ae5d8082b39
per cube message
devtools/devctl.py
--- a/devtools/devctl.py	Tue Jul 28 11:04:41 2009 +0200
+++ b/devtools/devctl.py	Tue Jul 28 11:05:07 2009 +0200
@@ -116,6 +116,7 @@
     w('# singular and plural forms for each entity type\n')
     w('\n')
     if libconfig is not None:
+        print 'lib conf cubes', libconfig.cubes()
         libschema = libconfig.load_schema(remove_unused_rtypes=False)
         entities = [e for e in schema.entities() if not e in libschema]
     else:
@@ -327,8 +328,8 @@
 
 
 def update_cubes_catalogs(cubes):
-    toedit = []
     for cubedir in cubes:
+        toedit = []
         if not isdir(cubedir):
             print '-> ignoring %s that is not a directory.' % cubedir
             continue
@@ -337,12 +338,14 @@
         except Exception:
             import traceback
             traceback.print_exc()
-            print '-> Error while updating catalogs for cube', cubedir
-    # instructions pour la suite
-    print '-> regenerated this cube\'s .po catalogs.'
-    print '\nYou can now edit the following files:'
-    print '* ' + '\n* '.join(toedit)
-    print 'when you are done, run "cubicweb-ctl i18ninstance yourinstance".'
+            print '-> error while updating catalogs for cube', cubedir
+        else:
+            # instructions pour la suite
+            print '-> regenerated .po catalogs for cube %s.' % cubedir
+            print '\nYou can now edit the following files:'
+            print '* ' + '\n* '.join(toedit)
+            print ('When you are done, run "cubicweb-ctl i18ninstance '
+                   '<yourinstance>" to see changes in your instances.')
 
 def update_cube_catalogs(cubedir):
     import shutil