~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/interfaces/product.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-12 23:19:34 UTC
  • mfrom: (13014.1.21 project-review-0)
  • Revision ID: launchpad@pqm.canonical.com-20110512231934-1dzt8y74ka86la4l
[r=jcsackett][bug=721454] Project review listing can show enough info
 to be a form.

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
                "hosting or the project has an up-to-date "
390
390
                "subscription.")))
391
391
 
392
 
    license_reviewed = exported(
 
392
    project_reviewed = exported(
393
393
        Bool(
394
394
            title=_('Project reviewed'),
395
395
            description=_("Whether or not this project has been reviewed. "
398
398
 
399
399
    license_approved = exported(
400
400
        Bool(
401
 
            title=_("Project approved"),
 
401
            title=_("License approved"),
402
402
            description=_(
403
403
                "The project is legitimate and its license appears valid. "
404
404
                "Not applicable to 'Other/Proprietary'.")))
845
845
 
846
846
    def get_all_active(eager_load=True):
847
847
        """Get all active products.
848
 
        
 
848
 
849
849
        :param eager_load: If False do not load related objects such as the
850
850
            owner.
851
851
        :return: An iterable of IProduct.
891
891
                   'project', 'homepageurl', 'screenshotsurl',
892
892
                   'downloadurl', 'freshmeatproject', 'wikiurl',
893
893
                   'sourceforgeproject', 'programminglang',
894
 
                   'license_reviewed', 'licenses', 'license_info',
 
894
                   'project_reviewed', 'licenses', 'license_info',
895
895
                   'registrant'])
896
896
    @export_operation_as('new_project')
897
897
    def createProduct(owner, name, displayname, title, summary,
899
899
                      screenshotsurl=None, wikiurl=None,
900
900
                      downloadurl=None, freshmeatproject=None,
901
901
                      sourceforgeproject=None, programminglang=None,
902
 
                      license_reviewed=False, mugshot=None, logo=None,
 
902
                      project_reviewed=False, mugshot=None, logo=None,
903
903
                      icon=None, licenses=None, license_info=None,
904
904
                      registrant=None):
905
905
        """Create and return a brand new Product.
910
910
    @operation_parameters(
911
911
        search_text=TextLine(title=_("Search text")),
912
912
        active=Bool(title=_("Is the project active")),
913
 
        license_reviewed=Bool(title=_("Is the project license reviewed")),
914
 
        licenses = Set(title=_('Licenses'),
 
913
        project_reviewed=Bool(title=_("Is the project license reviewed")),
 
914
        licenses=Set(title=_('Licenses'),
915
915
                       value_type=Choice(vocabulary=License)),
916
916
        license_info_is_empty=Bool(title=_("License info is empty")),
917
917
        has_zero_licenses=Bool(title=_("Has zero licenses")),
930
930
    @export_operation_as('licensing_search')
931
931
    def forReview(search_text=None,
932
932
                  active=None,
933
 
                  license_reviewed=None,
 
933
                  project_reviewed=None,
934
934
                  licenses=None,
935
935
                  license_info_is_empty=None,
936
936
                  has_zero_licenses=None,
1052
1052
        title=_('Active'), values=[True, False],
1053
1053
        required=False, default=True)
1054
1054
 
1055
 
    license_reviewed = Choice(
 
1055
    project_reviewed = Choice(
1056
1056
        title=_('Project Reviewed'), values=[True, False],
1057
1057
        required=False, default=False)
1058
1058