Example #1
0
 def __init__(self, project_name=None, root_dir=os.getcwd(), modules=[], **kwargs):
     ProjectCreator.__init__(self, project_name, root_dir, modules, **kwargs)
     self.log = logging.getLogger('DjangoCreator')
     # add Django
     django_found = False
     for m in self._modules:
         if m.find('django') > -1:
             django_found = True
     if not django_found:
         self._modules.append('django')
Example #2
0
 def __init__(self,
              project_name=None,
              root_dir=os.getcwd(),
              modules=[],
              **kwargs):
     ProjectCreator.__init__(self, project_name, root_dir, modules,
                             **kwargs)
     self.log = logging.getLogger('DjangoCreator')
     # add Django
     django_found = False
     for m in self._modules:
         if m.find('django') > -1:
             django_found = True
     if not django_found:
         self._modules.append('django')
Example #3
0
    def __init__(self, project_name=None, root_dir=os.getcwd(), modules=[], **kwargs):
        """
        Handles creating Flask projects

        :keyword project_name: Name of project to create or edit
        :keyword root_dir: Base directory where projects are stored
        :keyword modules: List of Python modules to install into virtualenv (uses PIP)

        """
        ProjectCreator.__init__(self, project_name, root_dir, modules, **kwargs)
        self.log = logging.getLogger('FlaskCreator')
        # add Flask
        flask_found = False
        for m in self._modules:
            if m.find('flask') > -1:
                flask_found = True
        if not flask_found:
            self._modules.append('flask')
Example #4
0
    def __init__(self,
                 project_name=None,
                 root_dir=os.getcwd(),
                 modules=[],
                 **kwargs):
        """
        Handles creating Flask projects

        :keyword project_name: Name of project to create or edit
        :keyword root_dir: Base directory where projects are stored
        :keyword modules: List of Python modules to install into virtualenv (uses PIP)

        """
        ProjectCreator.__init__(self, project_name, root_dir, modules,
                                **kwargs)
        self.log = logging.getLogger('FlaskCreator')
        # add Flask
        flask_found = False
        for m in self._modules:
            if m.find('flask') > -1:
                flask_found = True
        if not flask_found:
            self._modules.append('flask')