devtools/devctl.py
changeset 5423 e15abfdcce38
parent 5385 b6e250dd7a7d
parent 5421 8167de96c523
child 5426 0d4853a6e5ee
equal deleted inserted replaced
5412:27249e3fee3d 5423:e15abfdcce38
       
     1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
       
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
       
     3 #
       
     4 # This file is part of CubicWeb.
       
     5 #
       
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
       
     7 # terms of the GNU Lesser General Public License as published by the Free
       
     8 # Software Foundation, either version 2.1 of the License, or (at your option)
       
     9 # any later version.
       
    10 #
       
    11 # logilab-common is distributed in the hope that it will be useful, but WITHOUT
       
    12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
       
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
       
    14 # details.
       
    15 #
       
    16 # You should have received a copy of the GNU Lesser General Public License along
       
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
     1 """additional cubicweb-ctl commands and command handlers for cubicweb and cubicweb's
    18 """additional cubicweb-ctl commands and command handlers for cubicweb and cubicweb's
     2 cubes development
    19 cubes development
     3 
    20 
     4 :organization: Logilab
       
     5 :copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
       
     6 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
       
     7 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
       
     8 """
    21 """
     9 __docformat__ = "restructuredtext en"
    22 __docformat__ = "restructuredtext en"
    10 
    23 
    11 # *ctl module should limit the number of import to be imported as quickly as
    24 # *ctl module should limit the number of import to be imported as quickly as
    12 # possible (for cubicweb-ctl reactivity, necessary for instance for usable bash
    25 # possible (for cubicweb-ctl reactivity, necessary for instance for usable bash
   490           }
   503           }
   491          ),
   504          ),
   492         )
   505         )
   493 
   506 
   494     LICENSES = {
   507     LICENSES = {
   495         'LGPL': 'GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses',
   508         'LGPL': '''\
   496         'GPL': 'GNU General Public License, v2.1 - http://www.gnu.org/licenses',
   509 # This program is free software: you can redistribute it and/or modify it under
   497         '': 'closed source'
   510 # the terms of the GNU Lesser General Public License as published by the Free
       
   511 # Software Foundation, either version 2.1 of the License, or (at your option)
       
   512 # any later version.
       
   513 #
       
   514 # This program is distributed in the hope that it will be useful, but WITHOUT
       
   515 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
       
   516 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
       
   517 # details.
       
   518 #
       
   519 # You should have received a copy of the GNU Lesser General Public License along
       
   520 # with this program. If not, see <http://www.gnu.org/licenses/>.
       
   521 ''',
       
   522         'GPL': '''\
       
   523 # This program is free software: you can redistribute it and/or modify it under
       
   524 # the terms of the GNU General Public License as published by the Free Software
       
   525 # Foundation, either version 2.1 of the License, or (at your option) any later
       
   526 # version.
       
   527 #
       
   528 # This program is distributed in the hope that it will be useful, but WITHOUT
       
   529 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
       
   530 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
       
   531 #
       
   532 # You should have received a copy of the GNU General Public License along with
       
   533 # this program. If not, see <http://www.gnu.org/licenses/>.
       
   534 ''',
       
   535         '': '# INSERT LICENSE HERE'
   498         }
   536         }
   499 
   537 
   500     def run(self, args):
   538     def run(self, args):
   501         import re
   539         import re
   502         from logilab.common.shellutils import ASK
   540         from logilab.common.shellutils import ASK