#79 Default Plugins

v1.0.0
closed
nobody
None
General
nobody
2015-08-20
2010-07-07
Anonymous
No

Originally created by: sf-overlords

Created by: mramm
Created date: 2010-03-18 01:17:55.239000
Assigned to:nobody

Creating a new project should create a default set of plugins:

  • Wiki
  • Forums
  • SCM
  • Tracker

Discussion

  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by max:
    rebased on current master. pls review mi/79. I need a decision so I could start fixing [#52]

     

    Related

    Tickets: #52

  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by rcopeland:
    The list of installable plugins is available via:

            plugins = [
                (ep.name, ep.load())
                for ep in pkg_resources.iter_entry_points('pyforge') ]
            installable_plugin_names = [ 
                name for (name, app) in plugins
                if app.installable ]
    

    Please use this to populate the list, rather than hard-coded values. Also, please try to use EasyWidgets rather than doing all the form filling/validation by hand. (I am the EasyWidgets owner, so we can clean it up if you need.)

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by max:
    I have to dump the mi/79 work and re-start; too many conflicts trying to rebase on master

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by max:
    Got it working. Three plugins for now: Tracker, Wiki and Discussion.

    Please review my code at mi/79.

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by jbeard:
    i reviewed and it doesn't seem to be working right; the test for registering a new project doesn't pass. here's the error log:

    http://pastebin.com/nQaEN7St

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by max:
    Fixed the test case, pls review again.

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by max:
    I am seeing this strange traceback when attempting to call .install_app on a freshly created Project instance.

    File '/home/max/projects/forge/pyforge/pyforge/controllers/project.py', line 115 in register
      p.install_app(name, name)
    File '/home/max/projects/forge/pyforge/pyforge/model/project.py', line 365 in install_app
      assert self.app_instance(mount_point) is None
    File '/home/max/projects/forge/pyforge/pyforge/model/project.py', line 401 in app_instance
      app_config = self.app_config(mount_point_or_config)
    File '/home/max/projects/forge/pyforge/pyforge/model/project.py', line 413 in app_config
      'options.mount_point':mount_point}).first()
    File '/home/max/projects/Ming/ming/orm/mapped_class.py', line 143 in find
      return self.session.find(self.cls, *args, **kwargs)
    File '/home/max/projects/Ming/ming/orm/ormsession.py', line 105 in find
      ming_cursor = self.impl.find(m.doc_cls, *args, **kwargs)
    File '/home/max/projects/Ming/ming/session.py', line 40 in find
      cursor = self._impl(cls).find(*args, **kwargs)
    AttributeError: 'NoneType' object has no attribute 'find'

    Anyone got a clue?

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by jbeard:
    I think both Gary and I have started seeing this as well on master.

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by max:
    It turns out c.project need to be set for .install_app to work.

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by max:
    Well, I found function register_project() in pyforge/model/project.py. Since it not accessible via UI do I really need to update it? Should I update bootstrap() script instead to pre-populate test projects with default plugins?

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by mramm:
    I think that what we need is a regester_project page, which has a simple form that asks for a few things:

    • project full name
    • project url
    • project code license (default to bsd)
    • checkboxes for apps to install with mount points
      • wiki (wiki)
      • tracker (tickets)
      • forums (forums)
      • scm (dropdown for git, hg, svn)

    scm support is obviously not ready yet, so we should add that later.

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by max:
    Mark,

    Where do I get a list of available code licenses?

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by noostendorp:
    just as an addendum. I would like a checkbox which allows them to register as a "personal project" -- this will change the prefix to the URL so that it is registered under the users space rather than the public project space.

    Mark Ramm-Christensen wrote:

    I think that what we need is a regester_project page, which has a simple form that asks for a few things:

    • project full name
    • project url
    • project code license (default to bsd)
    • checkboxes for apps to install with mount points
      • wiki (wiki)
      • tracker (tickets)
      • forums (forums)
      • scm (dropdown for git, hg, svn)

    scm support is obviously not ready yet, so we should add that later.

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by mramm:

    • status: pending --> open

    • custom_field__size: -->

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by max:
    from Mark:

    I think we should have an url register project which hits the project registration method
    and it should have a space for the full name, the url (aka mount point), and check boxes for each of the apps (all checked by default)

     
  • Rick Copeland - 2010-08-20

    Obsoleted by [#804]

    description has changed
    - status: open --> closed

     

    Related

    Tickets: #804


Log in to post a comment.