goa/goactl.py
branchtls-sprint
changeset 1802 d628defebc17
parent 1432 2c3711d4570b
child 1977 606923dff11b
equal deleted inserted replaced
1801:672acc730ce5 1802:d628defebc17
    34     (roman.__file__.replace('.pyc', '.py'), 'roman.py'),
    34     (roman.__file__.replace('.pyc', '.py'), 'roman.py'),
    35 
    35 
    36     (join(CW_SOFTWARE_ROOT, 'embedded', 'mx'), 'mx'),
    36     (join(CW_SOFTWARE_ROOT, 'embedded', 'mx'), 'mx'),
    37     ('/usr/share/fckeditor/', 'fckeditor'),
    37     ('/usr/share/fckeditor/', 'fckeditor'),
    38 
    38 
    39     (join(CW_SOFTWARE_ROOT, 'web', 'data'), join('cubes', 'shared', 'data')), 
    39     (join(CW_SOFTWARE_ROOT, 'web', 'data'), join('cubes', 'shared', 'data')),
    40     (join(CW_SOFTWARE_ROOT, 'web', 'wdoc'), join('cubes', 'shared', 'wdoc')),
    40     (join(CW_SOFTWARE_ROOT, 'web', 'wdoc'), join('cubes', 'shared', 'wdoc')),
    41     (join(CW_SOFTWARE_ROOT, 'i18n'), join('cubes', 'shared', 'i18n')),
    41     (join(CW_SOFTWARE_ROOT, 'i18n'), join('cubes', 'shared', 'i18n')),
    42     (join(CW_SOFTWARE_ROOT, 'goa', 'tools'), 'tools'),
    42     (join(CW_SOFTWARE_ROOT, 'goa', 'tools'), 'tools'),
    43     (join(CW_SOFTWARE_ROOT, 'goa', 'bin'), 'bin'),
    43     (join(CW_SOFTWARE_ROOT, 'goa', 'bin'), 'bin'),
    44     )
    44     )
    58     'schemaviewer.py',
    58     'schemaviewer.py',
    59     'selectors.py',
    59     'selectors.py',
    60     'utils.py',
    60     'utils.py',
    61     'vregistry.py',
    61     'vregistry.py',
    62     'view.py',
    62     'view.py',
    63     
    63 
    64     'common/mail.py',
    64     'common/mail.py',
    65     'common/migration.py',
    65     'common/migration.py',
    66     'common/mixins.py',
    66     'common/mixins.py',
    67     'common/mttransforms.py',
    67     'common/mttransforms.py',
    68     'common/uilib.py',
    68     'common/uilib.py',
    91     'entities/schemaobjs.py',
    91     'entities/schemaobjs.py',
    92     'entities/wfobjs.py',
    92     'entities/wfobjs.py',
    93 
    93 
    94     'sobjects/__init__.py',
    94     'sobjects/__init__.py',
    95     'sobjects/notification.py',
    95     'sobjects/notification.py',
    96     
    96 
    97 # XXX would be necessary for goa.testlib but require more stuff to be added
    97 # XXX would be necessary for goa.testlib but require more stuff to be added
    98 #     such as server.serverconfig and so on (check devtools.__init__)
    98 #     such as server.serverconfig and so on (check devtools.__init__)
    99 #    'devtools/__init__.py',
    99 #    'devtools/__init__.py',
   100 #    'devtools/fake.py',
   100 #    'devtools/fake.py',
   101     
   101 
   102     'web/__init__.py',
   102     'web/__init__.py',
   103     'web/_exceptions.py',
   103     'web/_exceptions.py',
   104     'web/action.py',
   104     'web/action.py',
   105     'web/application.py',
   105     'web/application.py',
   106     'web/box.py',
   106     'web/box.py',
   137     'web/views/xbel.py',
   137     'web/views/xbel.py',
   138 
   138 
   139     'wsgi/__init__.py',
   139     'wsgi/__init__.py',
   140     'wsgi/handler.py',
   140     'wsgi/handler.py',
   141     'wsgi/request.py',
   141     'wsgi/request.py',
   142     
   142 
   143     'goa/__init__.py',
   143     'goa/__init__.py',
   144     'goa/db.py',
   144     'goa/db.py',
   145     'goa/dbinit.py',
   145     'goa/dbinit.py',
   146     'goa/dbmyams.py',
   146     'goa/dbmyams.py',
   147     'goa/goaconfig.py',
   147     'goa/goaconfig.py',
   148     'goa/goavreg.py',
   148     'goa/goavreg.py',
   149     'goa/gaesource.py',
   149     'goa/gaesource.py',
   150     'goa/rqlinterpreter.py',
   150     'goa/rqlinterpreter.py',
   151     'goa/appobjects/__init__.py',
   151     'goa/appobjects/__init__.py',
   152     'goa/appobjects/components.py', 
   152     'goa/appobjects/components.py',
   153     'goa/appobjects/dbmgmt.py', 
   153     'goa/appobjects/dbmgmt.py',
   154     'goa/appobjects/gauthservice.py', 
   154     'goa/appobjects/gauthservice.py',
   155     'goa/appobjects/sessions.py',
   155     'goa/appobjects/sessions.py',
   156 
   156 
   157     'schemas/bootstrap.py',
   157     'schemas/bootstrap.py',
   158     'schemas/base.py',
   158     'schemas/base.py',
   159     )
   159     )
   176     <application directory>
   176     <application directory>
   177       the path to the appengine application directory
   177       the path to the appengine application directory
   178     """
   178     """
   179     name = 'newgapp'
   179     name = 'newgapp'
   180     arguments = '<application directory>'
   180     arguments = '<application directory>'
   181     
   181 
   182     def run(self, args):
   182     def run(self, args):
   183         if len(args) != 1:
   183         if len(args) != 1:
   184             raise BadCommandUsage("exactly one argument is expected")
   184             raise BadCommandUsage("exactly one argument is expected")
   185         appldir, = args
   185         appldir, = args
   186         appldir = normpath(abspath(appldir))
   186         appldir = normpath(abspath(appldir))
   194             subdirectory = join(appldir, subdirectory)
   194             subdirectory = join(appldir, subdirectory)
   195             if not exists(split(subdirectory)[0]):
   195             if not exists(split(subdirectory)[0]):
   196                 create_dir(split(subdirectory)[0])
   196                 create_dir(split(subdirectory)[0])
   197             create_symlink(directory, join(appldir, subdirectory))
   197             create_symlink(directory, join(appldir, subdirectory))
   198         create_init_file(join(appldir, 'logilab'), 'logilab')
   198         create_init_file(join(appldir, 'logilab'), 'logilab')
   199         # copy supported part of cubicweb 
   199         # copy supported part of cubicweb
   200         create_dir(join(appldir, 'cubicweb'))
   200         create_dir(join(appldir, 'cubicweb'))
   201         for fpath in COPY_CW_FILES:
   201         for fpath in COPY_CW_FILES:
   202             target = join(appldir, 'cubicweb', fpath)
   202             target = join(appldir, 'cubicweb', fpath)
   203             if not exists(split(target)[0]):
   203             if not exists(split(target)[0]):
   204                 create_dir(split(target)[0])
   204                 create_dir(split(target)[0])